WongKinYiu / PyTorch_YOLOv4

PyTorch implementation of YOLOv4
1.87k stars 585 forks source link

FileNotFoundError: [Errno 2] No such file or directory: '.cfg' #353

Open guyuetian1213 opened 3 years ago

guyuetian1213 commented 3 years ago

Traceback (most recent call last): File "D:/pytorch-yolo/yovov4/PyTorch_YOLOv4-master/train.py", line 438, in train(hyp, opt, device, tb_writer) File "D:/pytorch-yolo/yovov4/PyTorch_YOLOv4-master/train.py", line 65, in train model = Darknet(opt.cfg).to(device) # create File "D:\pytorch-yolo\yovov4\PyTorch_YOLOv4-master\models\models.py", line 280, in init self.module_defs = parse_model_cfg(cfg) File "D:\pytorch-yolo\yovov4\PyTorch_YOLOv4-master\utils\parse_config.py", line 13, in parse_model_cfg with open(path, 'r') as f: FileNotFoundError: [Errno 2] No such file or directory: '.cfg' I meet this issue,can you heip me fix it?

Unequaled804 commented 2 years ago

Same issue when resume training. Did you fix it?

myarchivedaccount commented 2 years ago

add your config in this line opt.cfg, opt.weights, opt.resume = './cfg/yolov4.cfg', ckpt, True. It works for me

Grutschus commented 2 years ago

378

Lee123abc commented 1 year ago

Same issue when resume training. Did you fix it?