YOLOU icon indicating copy to clipboard operation
YOLOU copied to clipboard

yolov7 train error

Open coderonion opened this issue 2 years ago • 5 comments

Screenshot 2022-07-30 10:12:59

Screenshot 2022-07-30 10:12:17

coderonion avatar Jul 30 '22 02:07 coderonion

Starting training for 100 epochs...

 Epoch   gpu_mem       box       obj       cls    labels  img_size

0%| | 0/190 [00:05<?, ?it/s] Traceback (most recent call last): File "/home/hanrenkun/F/test/YOLOU-main/train.py", line 771, in main(opt) File "/home/hanrenkun/F/test/YOLOU-main/train.py", line 669, in main train(opt.hyp, opt, device, callbacks) File "/home/hanrenkun/F/test/YOLOU-main/train.py", line 449, in train loss, loss_items = compute_loss(pred, targets.to(device)) TypeError: call() missing 1 required positional argument: 'imgs'

abcc235 avatar Aug 01 '22 07:08 abcc235

If You want to train Yolov7, You need set use_aux as True.

---- Replied Message ---- | From | @.> | | Date | 7/30/2022 10:14 | | To | @.> | | Cc | @.***> | | Subject | [jizhishutong/YOLOU] yolov7 train error (Issue #14) |

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

jizhishutong avatar Aug 01 '22 07:08 jizhishutong

If You want to train Yolov7, You need set use_aux as True.

---- Replied Message ---- | From | @.> | | Date | 8/1/2022 15:09 | | To | @.> | | Cc | @.***> | | Subject | Re: [jizhishutong/YOLOU] yolov7 train error (Issue #14) |

Starting training for 100 epochs...

Epoch gpu_mem box obj cls labels img_size

0%| | 0/190 [00:05<?, ?it/s] Traceback (most recent call last): File "/home/hanrenkun/F/test/YOLOU-main/train.py", line 771, in main(opt) File "/home/hanrenkun/F/test/YOLOU-main/train.py", line 669, in main train(opt.hyp, opt, device, callbacks) File "/home/hanrenkun/F/test/YOLOU-main/train.py", line 449, in train loss, loss_items = compute_loss(pred, targets.to(device)) TypeError: call() missing 1 required positional argument: 'imgs'

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

jizhishutong avatar Aug 01 '22 07:08 jizhishutong

image Epoch gpu_mem box obj cls labels img_size 0%| | 0/190 [00:06<?, ?it/s] Traceback (most recent call last): File "/home/hanrenkun/F/test/YOLOU-main/train.py", line 771, in main(opt) File "/home/hanrenkun/F/test/YOLOU-main/train.py", line 669, in main train(opt.hyp, opt, device, callbacks) File "/home/hanrenkun/F/test/YOLOU-main/train.py", line 447, in train loss, loss_items = compute_loss(pred, targets.to(device), imgs) # init loss class File "/home/hanrenkun/F/test/YOLOU-main/utils/loss.py", line 1000, in call pi_aux = p[i + self.nl] IndexError: list index out of range

Excuse me why

abcc235 avatar Aug 01 '22 07:08 abcc235

image Epoch gpu_mem box obj cls labels img_size 0%| | 0/190 [00:06<?, ?it/s] Traceback (most recent call last): File "/home/hanrenkun/F/test/YOLOU-main/train.py", line 771, in main(opt) File "/home/hanrenkun/F/test/YOLOU-main/train.py", line 669, in main train(opt.hyp, opt, device, callbacks) File "/home/hanrenkun/F/test/YOLOU-main/train.py", line 447, in train loss, loss_items = compute_loss(pred, targets.to(device), imgs) # init loss class File "/home/hanrenkun/F/test/YOLOU-main/utils/loss.py", line 1000, in call pi_aux = p[i + self.nl] IndexError: list index out of range

Excuse me why

excuse me, Have you fixed the problem?

dbzqyyy avatar Aug 06 '22 03:08 dbzqyyy