Closed Note-Liu closed 3 years ago
执行python3 train.py --data data/train.data --batch-size 8 --cfg cfg/yolov3-mobilenet/yolov3-mobilenet-coco3.cfg --resume 报错: File "train.py", line 497, in train print('%g epochs completed in %.3f hours.\n' % (epoch - start_epoch + 1, (time.time() - t0) / 3600)) UnboundLocalError: local variable 'epoch' referenced before assignment 请问是命令行写错了吗?
执行python3 train.py --data data/train.data --batch-size 8 --cfg cfg/yolov3-mobilenet/yolov3-mobilenet-coco3.cfg --resume 报错: File "train.py", line 497, in train print('%g epochs completed in %.3f hours.\n' % (epoch - start_epoch + 1, (time.time() - t0) / 3600)) UnboundLocalError: local variable 'epoch' referenced before assignment 请问是命令行写错了吗?