Pytorch-yolov3: ValueError: not enough values to unpack (expected 3, got 0)

Created on 15 Mar 2020  ·  5Comments  ·  Source: eriklindernoren/PyTorch-YOLOv3

hello
when i train, and it occur error as below:

File "/media/cendelian/新加卷/CV/Project/PyTorch-YOLOv3/test.py", line 53, in evaluate
true_positives, pred_scores, pred_labels = [np.concatenate(x, 0) for x in list(zip(*sample_metrics))]
ValueError: not enough values to unpack (expected 3, got 0)

could you help me

Most helpful comment

It seems the model is not trained well at first epoch. You can change the option evaluation_interval to 10 and train.py line 152 1 to 5. Then have a try.
@construct-care
Do you mean this train.py line 152 ?
if epoch % opt.evaluation_interval == 0: ?

Yes. Sorry. 0 to 5. You can have a try.

All 5 comments

It seems the model is not trained well at first epoch. You can change the option evaluation_interval to 10 and train.py line 152 1 to 5. Then have a try.

hello
when i train, and it occur error as below:

*_File "/media/cendelian/新加卷/CV/Project/PyTorch-YOLOv3/test.py", line 53, in evaluate true_positives, pred_scores, pred_labels = [np.concatenate(x, 0) for x in list(zip(_sample_metrics))] ValueError: not enough values to unpack (expected 3, got 0)__

could you help me

I also discovered same problem

It seems the model is not trained well at first epoch. You can change the option evaluation_interval to 10 and train.py line 152 1 to 5. Then have a try.

@construct-care
Do you mean this train.py line 152 ?
if epoch % opt.evaluation_interval == 0: ?

Try to check this #222 @cendelian

It seems the model is not trained well at first epoch. You can change the option evaluation_interval to 10 and train.py line 152 1 to 5. Then have a try.
@construct-care
Do you mean this train.py line 152 ?
if epoch % opt.evaluation_interval == 0: ?

Yes. Sorry. 0 to 5. You can have a try.

Was this page helpful?
0 / 5 - 0 ratings