meituan / YOLOv6

YOLOv6: a single-stage object detection framework dedicated to industrial applications.
GNU General Public License v3.0
5.62k stars 1.02k forks source link

error when exporting to openvino #997

Open tino926 opened 6 months ago

tino926 commented 6 months ago

Before Asking

Search before asking

Question

I got error when I tried to export a model to openvino model.

this is the command:

python ./deploy/OpenVINO/export_openvino.py --weight weights/yolov6n.pt --img 480 --batch 1

thie is the error message:

...
Starting to export OpenVINO...
usage: main.py [options]
main.py: error: unrecognized arguments: --data_type FP32
OpenVINO export failure: Command '['mo', '--input_model', 'weights/yolov6n.onnx', '--output_dir', 'weights/yolov6n_openvino', '--data_type', 'FP32']' returned non-zero exit status 2.

I followed this page to install Openvino. Maybe yolov6 rely on an older openvino?

Additional

No response

LuLu2kANG commented 5 months ago

SO you can change your openvino version

tino926 commented 5 months ago

@LuLu2kANG, yes I can do that. In the meantime, it would be great if there is a suggested version number in this repo.

knoppmyth commented 1 month ago

@tino926 If you want to use OpenVino 2024, take a look at PR1054. Tested fine for export fp32 and fp16.