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

Issues with sample larger than population #17

Open
salimoha opened this issue Feb 3, 2018 · 1 comment
Open

Issues with sample larger than population #17

salimoha opened this issue Feb 3, 2018 · 1 comment

Comments

@salimoha
Copy link

salimoha commented Feb 3, 2018

I was trying to adapt your MANN code for detection of other types of images which are not black and white. During the training process, I get the error: raise ValueError("Sample larger than population or is negative")

Please advise. Thanks

@tristandeleu
Copy link
Owner

This error looks like a numpy error, and it's unclear where it could come from. If you want to adapt the code with RGB images, you can create a generator like OmniglotGenerator for your own dataset. The only thing to notice is that the images in an episode are flattened. You also have to change the input_size when you call the model to something like 20 * 20 * 3 if you have 20x20 RGB images (this is the size of each flattened image in an episode).

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