question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ValueError: not enough values to unpack (expected 4, got 3)

See original GitHub issue

I use this command: python .\train.py -c .\config.json but gives the following error. I did not change anything.

Using TensorFlow backend.
valid_annot_folder not exists. Spliting the trainining set.
Seen labels:    {}

Given labels:   ['raccoon']
Some labels have no annotations! Please revise the list of labels in the config.json.
Traceback (most recent call last):
  File ".\train.py", line 280, in <module>
    _main_(args)
  File ".\train.py", line 182, in _main_
    config['model']['labels']
ValueError: not enough values to unpack (expected 4, got 3)

I changed config.json with config_raccoon.json file by renaming it as config.json to use.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
smilexu1982commented, Dec 11, 2019

delete your ‘.pkl’ file

0reactions
animikhaichcommented, Feb 8, 2020

I am able to successfully run using the same dataset,see the output I am getting below valid_annot_folder not exists. Splitting the training set. Seen labels: {‘raccoon’: 217} Given labels: [‘raccoon’] Training on: [‘raccoon’] You can run the code in a IDE like spyder adn debug to see what is causing issue I have created colab notebook which you can check. It runs fine only issue is I am getting memory error which is due to colab not allocating sufficient memory . It runs fine on Kaggle Kernal https://colab.research.google.com/drive/1ZxKLmeN-EzB2QCaORX3pBr5AvPuJ-YVd#scrollTo=idsJ6njALsGr

I am having the same problem but I can’t understand your solution can you explain it please?

Please refer to this: https://github.com/experiencor/keras-yolo3/issues/243#issuecomment-583768111

Read more comments on GitHub >

github_iconTop Results From Across the Web

ValueError: not enough values to unpack (expected 4, got 1)
I would like to understand why I am getting the error and how to fix it. from sys import argv script, first, second,...
Read more >
ValueError: not enough values to unpack (expected 4, got 2)
I have written this code fig, (axis1, axis2,axis3, axis4)=plt.subplots(2,2,figsize=(10,4)) and I am getting this error ValueError: not enough ...
Read more >
Python ValueError: not enough values to unpack Solution
The “ValueError: not enough values to unpack” error is raised when you try to unpack more values from an iterable object than those...
Read more >
ValueError: not enough values to unpack ... - Python Forum
while trying to execute the program I got the error mention in the subject. kindly help me in this, I am new to...
Read more >
not enough values to unpack (expected 3 got 0) · Issue #7131 ...
Question Error reported when using train.py to train own dataset. Valueerror: not enough values to unpack (expected 3 got 0) The label...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found