eriklindernoren / PyTorch-YOLOv3

Minimal PyTorch implementation of YOLOv3
GNU General Public License v3.0
7.32k stars 2.63k forks source link

not enough values to unpack (expected 2, got 1) #303

Open Alexyitx opened 5 years ago

Alexyitx commented 5 years ago

python3 train.py --data_config config/yolov3-tiny.cfg --pretrained_weights weights/yolov3-tiny.weights

Traceback (most recent call last): File "train.py", line 50, in data_config = parse_data_config(opt.data_config) File "/home/ubuntu/myfile/project/Pytorch_YoloV3/PyTorch-YOLOv3/utils/parse_config.py", line 34, in parse_data_config key, value = line.split('=') ValueError: not enough values to unpack (expected 2, got 1)

ghost commented 5 years ago

Check your config file. If you have lines commented with ; semicolon just replaced them with #

shashankvkt commented 5 years ago

data_config should be coco.data and not yolov3-tiny.cfg