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

list index out of range #14

Open
Rzerooooo opened this issue May 14, 2024 · 1 comment
Open

list index out of range #14

Rzerooooo opened this issue May 14, 2024 · 1 comment

Comments

@Rzerooooo
Copy link

在跑第50個epco中出現以下錯誤

Traceback (most recent call last):
File "C:\contest\AICUP_Baseline_BoT-SORT-main\yolov7\train.py", line 613, in
train(hyp, opt, device, tb_writer)
File "C:\contest\AICUP_Baseline_BoT-SORT-main\yolov7\train.py", line 366, in train
loss, loss_items = compute_loss_ota(pred, targets.to(device), imgs) # loss scaled by batch_size
File "./yolov7\utils\loss.py", line 585, in call
bs, as_, gjs, gis, targets, anchors = self.build_targets(p, targets, imgs)
File "./yolov7\utils\loss.py", line 677, in build_targets
b, a, gj, gi = indices[i]
IndexError: list index out of range

@Rzerooooo Rzerooooo changed the title Fine-tune YOLOv7 for AICUP list index out of range May 14, 2024
@ricky-696
Copy link
Owner

你應該是預訓練權重放錯了,p5模型用train.py,p6模型要用train_aux.py訓練,這我在Readme上也有詳細說明。

這種問題Google搜尋一下就有答案了: WongKinYiu/yolov7#1349

如果你真的是權重放錯,那發Issue前,自己是不是要先Survey一下?

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

2 participants