multiyolov5 icon indicating copy to clipboard operation
multiyolov5 copied to clipboard

训练时遇到问题,提示如下

Open zzff-sys opened this issue 2 years ago • 1 comments

❔Question

作者你好,请问我在训练的时候train_custom.py的时候出现错误File "train_custom.py", line 641, in train(hyp, opt, device, tb_writer) File "train_custom.py", line 463, in train f.write(s + '%10.4g' * 7 % results + '\n') # append metrics, val_loss UnboundLocalError: local variable 's' referenced before assignment

Additional context

zzff-sys avatar Oct 22 '22 13:10 zzff-sys

你把batch_size改小一点就行了,因为这个训练集数据少,batch_size默认为16

hfutwqs avatar Nov 08 '22 02:11 hfutwqs

谢谢了,确实是这个问题,问题解决 @hfutwqs

zzff-sys avatar Nov 16 '22 07:11 zzff-sys

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jan 05 '23 01:01 github-actions[bot]