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

Unable to process data from flickr_logos_27_dataset\flickr_logos_27_dataset_cropped_augmented_images\Lift\train.pickle #17

Open
seevoid opened this issue Nov 23, 2017 · 0 comments

Comments

@seevoid
Copy link

seevoid commented Nov 23, 2017

Hello !

I've tried to use this wonderful program to detect my own logos. For now i have just two logos wich represent a lift and an escalator. I change the files "flickr_logos_27_dataset_training_set_annotation.txt" and "flickr_logos_27_dataset_query_set_annotation.txt" to match with my samples. I also modified the python's file to set the number of classes to 2.

The crop_and_aug.py works well but when i launch gen_train_valid_test.py, after processes all the classes, I got the following error :
"Unable to process data from flickr_logos_27_dataset\flickr_logos_27_dataset_cropped_augmented_images\Lift\train.pickle : could not broadcast input array from shape (576,32,64,3) into shape (2500,32,64,3)
Traceback (most recent call last):
File "gen_train_valid_test.py", line 192, in
main()
File "gen_train_valid_test.py", line 178, in main
train_datasets, TRAIN_SIZE, VALID_SIZE)
File "gen_train_valid_test.py", line 123, in merge_datasets
valid_dataset[start_v:end_v, :, :, :] = valid_logo
ValueError: could not broadcast input array from shape (576,32,64,3) into shape (2500,32,64,3)"

I would be greatful if you know how i can solve this issue :) Thanks !

[ EDIT 24/11/2017]
After few hours looking for the origin of the issue, and i found that it come from my edit on the "flickr_logos_27_dataset_training_set_annotation.txt", and i don't really how to fill it properly.
Do you know a simple way to easily make your own dataset ?

Regards
Seevoid

@seevoid seevoid changed the title could not broadcast input array from shape (576,32,64,3) into shape (2500,32,64,3) Unable to process data from flickr_logos_27_dataset\flickr_logos_27_dataset_cropped_augmented_images\Lift\train.pickle Nov 23, 2017
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

1 participant