Hi asidsunrise ,
Got it. I'm not 100% sure here either. So I think @GergelySzabolcs could likely help. So in the meantime, here is a script that one of our community members (geax, Pierre Mangeot) wrote for converting the input resolution of models in OpenVINO. It doesn't work for all models, so I'm not sure if it will work here:
His notes/examples:
Example:
python reshape_openvino_model.py -m models/human-pose-estimation-0001.xml -r 128x228
Loading network files:
models/human-pose-estimation-0001.xml
models/human-pose-estimation-0001.bin
reshape_openvino_model.py:27: DeprecationWarning: Reading network using constructor is deprecated. Please, use IECore.read_network() method instead
net = IENetwork(model=model_xml, weights=model_bin)
Input blob: data - shape: [1, 3, 256, 456]
Output blob: Mconv7_stage2_L1 - shape: [1, 38, 32, 57]
Output blob: Mconv7_stage2_L2 - shape: [1, 19, 32, 57]
Reshapping to 128x224
Input blob: data - new shape: [1, 3, 128, 224]
Output blob: Mconv7_stage2_L1 - new shape: [1, 38, 16, 28]
Output blob: Mconv7_stage2_L2 - new shape: [1, 19, 16, 28]
Saving reshaped model in models/human-pose-estimation-0001_128x224.xml and models/human-pose-estimation-0001_128x224.bin
The script should probably be adapted for other models than human-pose-estimation-0001, in particular for models that have more than one inputs 😀
@GergelySzabolcs will likely have more pertinent advice than me here though. :-)
-Brandon