-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: need more than 1 value to unpack #37
Comments
What version of keras are you running ?
|
|
You can try this PR, or install keras 2.0.8. I suspect that will help with your issue. |
Thanks, when i reinstall keras 2.0.8. that error was disappeared. |
If you load a model in your notebook then training isn't necessary. |
Yes, i load a model "resnet50_coco_best_v1.0.0.h5". create a generator for testing datatest_generator = keras_retinanet.preprocessing.coco.CocoIterator( |
What is the structure of your COCO dataset? It should be:
|
Yeah. it works. thank you. |
Hello, when i run 'Run detection on example' section in "ResNet50RetinaNet - COCO 2017.ipynb", i encounter this error, what's wrong whit it?
ValueError Traceback (most recent call last)
in ()
----> 1 image_batch, outputs = next(test_generator)
2 image = image_batch[0, ...].copy()
3 image -= min(image.flatten())
4 image /= max(image.flatten())
5 image *= 255
/home/wh/.local/lib/python2.7/site-packages/keras_retinanet/preprocessing/coco.pyc in next(self)
138 # lock indexing to prevent race conditions
139 with self.lock:
--> 140 selection, _, batch_size = next(self.index_generator)
141
142 assert(batch_size == 1), "Currently only batch_size=1 is allowed."
ValueError: need more than 1 value to unpack
The text was updated successfully, but these errors were encountered: