- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Intel Guru,
Hi, I have tried OpenVino, and it is awesome.
I'm having another question.
My input model size is [1,3, height, width]
I just tried, and it seems it does support variable input size.
However:
Using the mo.py, though the warming still mentioned that it is still strongly suggested to use static input size.
The results are different with original ONNX format.
Anyone can help?
Here is the model link:
and the command is :
$python mo.py --input_model model.onnx --output_dir ~/Downloads
Tony
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The key is: results are different.
Even the dimension
from 48*80*606
to: 30*40*606
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @TonyWong ,
From the Model Optimizer, you can feed the input shape by using --input_shape parameter.
Example: python mo.py --input_model model.onnx --output_dir ~/Downloads --input_shape [1,3,227,227]
Note that the order of dimension depends on the framework input layout of the model.
For instance:
1. Caffe model: [N,C,H,W]
2. Tensorflow model: [N,H,W,C]
Model Optimizer requires [N,C,H,W] layout and would perform the necessary transformation to the model. The shape should not contain undefined dimensions such as (? or -1).
Depending on your model, you need to consider these:
1. When to specify input shape
2. When to reverse input channel
Hope this helps!
Sincerely,
Iffa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Greetings,
Intel will no longer monitor this thread since we have provided a solution. If you need any additional information from Intel, please submit a new question.
Sincerely,
Iffa
![](/skins/images/D3C0B914909A6564BBB97F4AD1ED1973/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page