-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docs] yolort and yolov5 version matching problem #377
Comments
We support version 3.1, 4.0 and 6.0 released by ultralytics/yolov5. And actually the version 5.0 models released by yolov5 is same with 4.0, so we can just set We have also added the function of matching versions to CLI tool python3 tools/export_model.py --checkpoint_path model.pt --size_divisible 32 --version r4.0 Maybe we should add this tips at the docs, and contributions are welcome here. |
Hi @zhiqwang |
Hi @Deronjey , Which platform do you want to deploy to currently? |
baidu kunlun K100 |
Hi @Deronjey , you can try the following scripts to export the ONNX models: from yolort.relay.trt_graphsurgeon import YOLOTRTGraphSurgeon
checkpoint_path = "yolov5s.pt"
yolo_gs = YOLOTRTGraphSurgeon(checkpoint_path, enable_dynamic=False)
onnx_export_path = "yolov5s_wo_nms.onnx"
yolo_gs.save(onnx_export_path) And seems that we should install python3 -m pip install onnx_graphsurgeon --index-url https://pypi.ngc.nvidia.com |
I used following commad to export the ONNX models, and I use the 5.0 tag of ultralytics/yolov5 to train the model.pt. It raises an AttributeError: conv object has no attribute weight. How can I do for this error?
Originally posted by @Deronjey in #159 (comment)
The text was updated successfully, but these errors were encountered: