Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

AttributeError: 'list' object has no attribute 'device' #51

Open
xqk666 opened this issue Feb 24, 2024 · 4 comments
Open

AttributeError: 'list' object has no attribute 'device' #51

xqk666 opened this issue Feb 24, 2024 · 4 comments

Comments

@xqk666
Copy link

xqk666 commented Feb 24, 2024

https://blog.csdn.net/weixin_41717861/article/details/136261437

@WongKinYiu
Copy link
Owner

#11 (comment)

The first prediction is from aux branch, so choose second prediction.

@Jaykumaran
Copy link

For list device not found ,under utils->general.py change line 903 as
prediction = prediction[0][1]
for yolov9-c.pt or yolov9-e.pt.
However for yolov9-c-converted you can run repo without any change

@cvYouTian
Copy link

For list device not found ,under utils->general.py change line 903 as prediction = prediction[0][1] for yolov9-c.pt or yolov9-e.pt. However for yolov9-c-converted you can run repo without any change

It is very effective, thanks!

cvYouTian added a commit to cvYouTian/yolov9 that referenced this issue Mar 25, 2024
@Huo-Yukang
Copy link

For list device not found ,under utils->general.py change line 903 as prediction = prediction[0][1] for yolov9-c.pt or yolov9-e.pt. However for yolov9-c-converted you can run repo without any change

After I changed it like this, why is it still the same error?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants