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

At Readme of YOLOv3, Value types of original image size need to be float #671

Open
susumu-iino opened this issue Aug 29, 2024 · 0 comments · May be fixed by #672
Open

At Readme of YOLOv3, Value types of original image size need to be float #671

susumu-iino opened this issue Aug 29, 2024 · 0 comments · May be fixed by #672
Labels

Comments

@susumu-iino
Copy link

Bug Report

Which model does this pertain to?

YoloV3

Describe the bug

Each of hosted models(YOLOv3, YOLOv3-12, YOLOv3-12-int8) need the original image size as the second input.
These Onnx Models expect float values for the second input, but the preprocessing steps sets it as dtype=np.int32, this causes asserting by type error.
It need to be np.float32 or 'float32' for the parameter dtype on this last line, same as Tiny Yolov3.

I will make a pull request for this issue soon.

Reproduction instructions

System Information

OS Platform and Distribution:
Windows 11 22H2

ONNX version:
not needed for reproducing this issue

Backend/Runtime version:
onnxruntime 1.18.0
numpy 1.26.0

@susumu-iino susumu-iino linked a pull request Aug 29, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant