Open 1246886181 opened 3 years ago
已解决但是出现了新的问题。
Class Images Targets P R mAP@.5 mAP@.5:.95: 0%| | 0/11 [00:00<?, ?it/s]/home/tongyu/develop-project/yolodet-pytorch-master/yolodet/models/heads/base.py:330: UserWarning: This overload of nonzero is deprecated:
nonzero()
Consider using one of the following signatures instead:
nonzero(*, bool as_tuple) (Triggered internally at /opt/conda/conda-bld/pytorch_1595629431274/work/torch/csrc/utils/python_arg_parser.cpp:766.)
i, j = (x[:, 5:] > conf_thres).nonzero().t()
Class Images Targets P R mAP@.5 mAP@.5:.95: 0%| | 0/11 [00:00<?, ?it/s]
Traceback (most recent call last):
File "tools/train.py", line 144, in
你好,我也遇到了同样的问题,请问你现在解决了吗?
我找到了,确实是yolov4_coco_100e.py中bbox那行的上一句的None后面没有逗号的原因。
Traceback (most recent call last): File "tools/train.py", line 144, in
main()
File "tools/train.py", line 69, in main
cfg = Config.fromfile(args.config)
File "/home/tongyu/develop-project/yolodet-pytorch-master/yolodet/utils/config.py", line 174, in fromfile
cfg_dict, cfg_text = Config._file2dict(filename)
File "/home/tongyu/develop-project/yolodet-pytorch-master/yolodet/utils/config.py", line 113, in _file2dict
mod = import_module('_tempconfig')
File "/home/tongyu/.conda/envs/yolodet/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 665, in _load_unlocked
File "", line 674, in exec_module
File "", line 781, in get_code
File "", line 741, in source_to_code
File "", line 219, in _call_with_frames_removed
File "/tmp/tmpwcunctkd/_tempconfig.py", line 37
bbox_loss=dict(type='IOU_Loss', iou_type='GIOU',loss_weight=0.05),
^
SyntaxError: invalid syntax