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

模型是yolov5哪个版本跑出的 ultralytics / yolov5 #8

Open
zkailinzhang opened this issue Sep 2, 2021 · 3 comments
Open

模型是yolov5哪个版本跑出的 ultralytics / yolov5 #8

zkailinzhang opened this issue Sep 2, 2021 · 3 comments

Comments

@zkailinzhang
Copy link

你好,你的代码跑通了,模型是yolov5哪个版本。
ultralytics/yolov5-5.0的模型能跑吗,需要改代码吗

@zkailinzhang zkailinzhang changed the title 模型是yolov5-x 哪个版本跑出的 ultralytics / yolov5 模型是yolov5哪个版本跑出的 ultralytics / yolov5 Sep 2, 2021
@JiaPai12138
Copy link

4.0

@WuJiang1996
Copy link

不是的把?我用v4.0的权重转成onna,然后推理,就报下面的错
Traceback (most recent call last):
File ".\main_yolov5.py", line 119, in
dets = yolonet.detect(srcimg)
File ".\main_yolov5.py", line 101, in detect
outs[row_ind:row_ind+length, 0:2] = (outs[row_ind:row_ind+length, 0:2] * 2. - 0.5 + np.tile(self.grid[i],(self.na, 1))) * int(self.stride[i])
ValueError: operands could not be broadcast together with shapes (1,2,80,80,85) (19200,2)

@hpc203
Copy link
Owner

hpc203 commented Mar 1, 2022

这个仓库的代码有些旧了,最近我发布了使用opencv部署yolov5-v6.1的程序,源码地址是:
https://github.com/hpc203/yolov5-v6.1-opencv-onnxrun
可以用这个新的,里面讲解了如何转换生成onnx文件

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

4 participants