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

Facing Issue with yolo to onnx conversion with pre-trained yolov3-tiny model. #608

Open
NaveenVSeeWise opened this issue Apr 12, 2024 · 0 comments

Comments

@NaveenVSeeWise
Copy link

NaveenVSeeWise commented Apr 12, 2024

I tried to follow and run the YOLO to ONNX conversion script, which is mentioned in the repository. However, I encountered an error, and I have provided more details below. Thank you!

Python version --> Python 2.7.17
Onnx version --> onnx==1.9.0
numpy version --> numpy==1.19.4

Error:

python3 yolo_to_onnx.py -m yolov3-tiny-288
Parsing DarkNet cfg file...
Building ONNX graph...
Traceback (most recent call last):
  File "yolo_to_onnx.py", line 1065, in <module>
    main()
  File "yolo_to_onnx.py", line 1053, in main
    verbose=True)
  File "yolo_to_onnx.py", line 590, in build_onnx_graph
    params)
  File "yolo_to_onnx.py", line 414, in load_resize_scales
    name, TensorProto.FLOAT, shape, data)
  File "/home/nano/.local/lib/python3.6/site-packages/onnx/helper.py", line 254, in make_tensor
    getattr(tensor, field).extend(vals)
TypeError: 1.0 has type numpy.float32, but expected one of: int, long, float
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant