yolov9
yolov9 copied to clipboard
IndexError: list index out of range
Traceback (most recent call last):
File "D:\yolov9-main\train.py", line 634, in
how should i fix it ? pls
hello,I think you should using the moudel named 'yolov9-c.pt' or 'yolov9-e.pt' instead of 'gelan-xx.pt'
Hi.
What were you doing? Which weight are you using? Which arguments did you run the script with?
I was training my model yesterday and I discovered that I need to use train_dual.py with certain weights, such as gelan-c and yolov9-converted.
Maybe that is your issue. Try running train_dual.py with your arguments.
Have a great day.
hello,I think you should using the moudel named 'yolov9-c.pt' or 'yolov9-e.pt' instead of 'gelan-xx.pt'
thanks
Hi.
What were you doing? Which weight are you using? Which arguments did you run the script with?
I was training my model yesterday and I discovered that I need to use train_dual.py with certain weights, such as gelan-c and yolov9-converted.
Maybe that is your issue. Try running train_dual.py with your arguments.
Have a great day.
thanks
running train_dual.py not error, but the map always zero!!that's why?
我也遇到了相同的问题,请问您解决了吗?
Maybe you can try to modify the copy_paste
parameter in hyp.scratch-high.yaml
to 0.0.
I solved the problem by this method.
thank u,i will try again :)
https://github.com/WongKinYiu/yolov9/pull/13/files its wroked,may you can try.
with dt[2]:
preds = preds[0][1] if isinstance(preds[0], list) else preds[0]#add
WoW,thank u very much,it work~
https://github.com/WongKinYiu/yolov9/pull/13/files 它的工作原理,你可以尝试一下。
with dt[2]: preds = preds[0][1] if isinstance(preds[0], list) else preds[0]#add
Where to add it?
https://github.com/WongKinYiu/yolov9/pull/13/files 它的工作原理,你可以尝试一下。
with dt[2]: preds = preds[0][1] if isinstance(preds[0], list) else preds[0]#add
Where to add it?
detect.py
But I had a problem when I was training.
---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年05月21日 19:29 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [WongKinYiu/yolov9] IndexError: list index out of range (Issue #157) |
https://github.com/WongKinYiu/yolov9/pull/13/files 它的工作原理,你可以尝试一下。
with dt[2]: preds = preds[0][1] if isinstance(preds[0], list) else preds[0]#add
Where to add it?
detect.py
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
try add it to val.py.
---Original--- From: @.> Date: Tue, May 21, 2024 18:32 PM To: @.>; Cc: @.@.>; Subject: Re: [WongKinYiu/yolov9] IndexError: list index out of range (Issue#157)
But I had a problem when I was training.
---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年05月21日 19:29 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [WongKinYiu/yolov9] IndexError: list index out of range (Issue #157) |
https://github.com/WongKinYiu/yolov9/pull/13/files 它的工作原理,你可以尝试一下。
with dt[2]: preds = preds[0][1] if isinstance(preds[0], list) else preds[0]#add
Where to add it?
detect.py
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.> — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.>
Didn't find a place to add in val.py
---- Replied Message ---- | From | @.> | | Date | 05/21/2024 19:40 | | To | @.> | | Cc | @.>@.> | | Subject | Re: [WongKinYiu/yolov9] IndexError: list index out of range (Issue #157) |
try add it to val.py.
---Original--- From: @.> Date: Tue, May 21, 2024 18:32 PM To: @.>; Cc: @.@.>; Subject: Re: [WongKinYiu/yolov9] IndexError: list index out of range (Issue#157)
But I had a problem when I was training.
---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年05月21日 19:29 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [WongKinYiu/yolov9] IndexError: list index out of range (Issue #157) |
https://github.com/WongKinYiu/yolov9/pull/13/files 它的工作原理,你可以尝试一下。
with dt[2]: preds = preds[0][1] if isinstance(preds[0], list) else preds[0]#add
Where to add it?
detect.py
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.> — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.>
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
before nms
---Original--- From: @.> Date: Tue, May 21, 2024 18:46 PM To: @.>; Cc: @.@.>; Subject: Re: [WongKinYiu/yolov9] IndexError: list index out of range (Issue#157)
Didn't find a place to add in val.py
---- Replied Message ---- | From | @.> | | Date | 05/21/2024 19:40 | | To | @.> | | Cc | @.>@.> | | Subject | Re: [WongKinYiu/yolov9] IndexError: list index out of range (Issue #157) |
try add it to val.py.
---Original--- From: @.> Date: Tue, May 21, 2024 18:32 PM To: @.>; Cc: @.@.>; Subject: Re: [WongKinYiu/yolov9] IndexError: list index out of range (Issue#157)
But I had a problem when I was training.
---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年05月21日 19:29 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [WongKinYiu/yolov9] IndexError: list index out of range (Issue #157) |
https://github.com/WongKinYiu/yolov9/pull/13/files 它的工作原理,你可以尝试一下。
with dt[2]: preds = preds[0][1] if isinstance(preds[0], list) else preds[0]#add
Where to add it?
detect.py
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.> — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.>
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.> — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.>
ok, I will try. Thanks.
---- Replied Message ---- | From | @.> | | Date | 05/21/2024 19:54 | | To | @.> | | Cc | @.>@.> | | Subject | Re: [WongKinYiu/yolov9] IndexError: list index out of range (Issue #157) |
before nms
---Original--- From: @.> Date: Tue, May 21, 2024 18:46 PM To: @.>; Cc: @.@.>; Subject: Re: [WongKinYiu/yolov9] IndexError: list index out of range (Issue#157)
Didn't find a place to add in val.py
---- Replied Message ---- | From | @.> | | Date | 05/21/2024 19:40 | | To | @.> | | Cc | @.>@.> | | Subject | Re: [WongKinYiu/yolov9] IndexError: list index out of range (Issue #157) |
try add it to val.py.
---Original--- From: @.> Date: Tue, May 21, 2024 18:32 PM To: @.>; Cc: @.@.>; Subject: Re: [WongKinYiu/yolov9] IndexError: list index out of range (Issue#157)
But I had a problem when I was training.
---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年05月21日 19:29 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [WongKinYiu/yolov9] IndexError: list index out of range (Issue #157) |
https://github.com/WongKinYiu/yolov9/pull/13/files 它的工作原理,你可以尝试一下。
with dt[2]: preds = preds[0][1] if isinstance(preds[0], list) else preds[0]#add
Where to add it?
detect.py
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.> — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.>
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.> — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.>
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>