Skip to content
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

Ubuntu 20.04环境下,在使用自己训练的yolov5s模型进行自动标注时会终止程序,并在命令行中出现以下错误: #491

Closed
casualdays opened this issue Jul 2, 2024 · 2 comments
Labels
Fixed question Further information is requested

Comments

@casualdays
Copy link

Traceback (most recent call last): File "/home//xiaohf/medicine/X-AnyLabeling/anylabeling/views/labeling/widgets/canvas.py", line 1077, in paintEvent shape.paint(p)
File "/home/xiaohf/medicine/X-AnyLabeling/anylabeling/views/labeling/shape.py", line 195, in paint assert len(self.points) in [1, 2, 4] AssertionError

@casualdays
Copy link
Author

已解决,使用官方export .py转换一个新的ONNX模型即可使用。

参考命令:
python3 export.py --weights ./yolov5s.pt --img 640 --batch 1 --include=onnx

@CVHub520 CVHub520 added the question Further information is requested label Jul 2, 2024
@CVHub520
Copy link
Owner

CVHub520 commented Jul 2, 2024

Great! I'm glad to hear you resolved the issue by converting the model to ONNX format using the official export.py script.
Your solution will be helpful for others who may encounter a similar problem. If you have any more questions or need further assistance, feel free to ask. Happy annotating!

@CVHub520 CVHub520 added the Fixed label Aug 8, 2024
@CVHub520 CVHub520 closed this as completed Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants