Skip to content
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

error to train VOC2007 #33

Closed
jwnsu opened this issue Nov 1, 2017 · 3 comments
Closed

error to train VOC2007 #33

jwnsu opened this issue Nov 1, 2017 · 3 comments

Comments

@jwnsu
Copy link

jwnsu commented Nov 1, 2017

Pulled latest codes, saw following error during training (ubuntu 16.04/keras2.0.8/tensorflow 1.2):
"File "/home/ai/krn/keras_retinanet/preprocessing/pascal_voc.py", line 149, in load_image
regression_targets = np.append(regression_targets, np.expand_dims(labels, axis=1), axis=1)
File "/home/dsu/tf/local/lib/python2.7/site-packages/numpy/lib/function_base.py", line 5152, in append
return concatenate((arr, values), axis=axis)
ValueError: all the input arrays must have same number of dimensions".

Earlier, saw error: "
File "/home/ai/krn/keras_retinanet/preprocessing/pascal_voc.py", line 148, in load_image
labels, regression_targets = anchor_targets(image, boxes_batch[0])
TypeError: anchor_targets() takes at least 3 arguments (2 given)", which was resolved by adding 3rd-parameter len(self.classes).

@hgaiser
Copy link
Contributor

hgaiser commented Nov 1, 2017

Thanks for reporting this issue! Seems Pascal training wasn't kept up to date. Should be fixed by commit d52ee11 .

@hgaiser hgaiser closed this as completed Nov 1, 2017
@jwnsu
Copy link
Author

jwnsu commented Nov 1, 2017

need to fix next 2 lines as well (simply copy from coco.py, the issues will go away.)

@hgaiser
Copy link
Contributor

hgaiser commented Nov 1, 2017

Thanks, I'll make those changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants