yolov9 icon indicating copy to clipboard operation
yolov9 copied to clipboard

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

Open xqk666 opened this issue 1 year ago • 4 comments

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

xqk666 avatar Feb 24 '24 08:02 xqk666

https://github.com/WongKinYiu/yolov9/issues/11#issuecomment-1960627261

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

WongKinYiu avatar Feb 24 '24 08:02 WongKinYiu

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

Jaykumaran avatar Mar 01 '24 12:03 Jaykumaran

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 avatar Mar 25 '24 06:03 cvYouTian

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?

Huo-Yukang avatar Apr 21 '24 12:04 Huo-Yukang