Closed guoyejun closed 4 years ago
Hi @guoyejun, It is not model downloader problem by itself, probably it is problem in installed dependecies version for Model Optimazer.
Which networkx
version do you use?
@guoyejun I think solution described here can help you https://github.com/opencv/dldt/issues/294
thanks @eaidova . It is resovled.
and I want to generate int8 model, so add --data_type int8, but met the following issue. mo.py: error: argument --data_type: invalid choice: 'int8' (choose from 'FP16', 'FP32', 'half', 'float')
could you share how to generate int8 model? thanks.
@guoyejun conversion to int8 is more complicated operation than switching between fp32 -> fp16, required some estimation to perform this operation with minimal accuracy drop. There is another tool in openvino2019.2 which help to do it - calibration_tool http://docs.openvinotoolkit.org/2019_R2/_inference_engine_tools_calibration_tool_README.html
thanks @eaidova . It is resovled.
and I want to generate int8 model, so add --data_type int8, but met the following issue. mo.py: error: argument --data_type: invalid choice: 'int8' (choose from 'FP16', 'FP32', 'half', 'float')
could you share how to generate int8 model? thanks.
You may want to see this to use the ca
thanks @eaidova . It is resovled.
and I want to generate int8 model, so add --data_type int8, but met the following issue. mo.py: error: argument --data_type: invalid choice: 'int8' (choose from 'FP16', 'FP32', 'half', 'float')
could you share how to generate int8 model? thanks.
The mo.py currently does not support int8. You need to use the calibration tool mentioned by eaidova to perform the int8 quantization. You can use the simplified mode to estimate the performance first and use the standard mode for real application.
thanks
Hi,
I'm using OpenVINO 2019 R2 version which could not be upgraded now, and I can get the mobilenet-ssd in caffe format (mobilenet-ssd.caffemodel and mobilenet-ssd.prototxt) via downloader.py with command line: python3 downloader.py --name mobilenet-ssd -o /mypath/ --num_attempts 5 --cache_dir /work/tmp/omzcache/
Then I tried to convert the caffe model into OpenVINO format with mo.py (part of openvino 2019 r2 release), but failed, see error message below.
Is there an openvino 2019 r2 format that I can download directly? thanks.
(the command line options are referenced from https://github.com/opencv/open_model_zoo/blob/2019_R2/tools/downloader/list_topologies.yml#L388) yguo18@yguo18-skl-u1604:/work/ml/openvino_work/dldt/model-optimizer$ python mo.py --framework=caffe --data_type=FP32 --input_shape=[1,3,300,300] --input=data --mean_values=data[127.5,127.5,127.5] --scale_values=data[127.50223128904757] --output=/work/media/mediastack/gva/benchmark/models/object_detection/common/mobilenet-ssd/ --input_model=/work/media/mediastack/gva/benchmark/models/object_detection/common/mobilenet-ssd/caffe/mobilenet-ssd.caffemodel --input_proto=/work/media/mediastack/gva/benchmark/models/object_detection/common/mobilenet-ssd/caffe/mobilenet-ssd.prototxt Model Optimizer arguments: Common parameters:
[ ERROR ] ---------------- END OF BUG REPORT -------------- [ ERROR ] -------------------------------------------------