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

ValueError: Sample larger than population or is negative in omniglot #63

Open
Curry30h opened this issue Oct 2, 2019 · 2 comments
Open

Comments

@Curry30h
Copy link

Curry30h commented Oct 2, 2019

No description provided.

@mushroompyq
Copy link

I also get this question.I wonder if you have solved it.And tell me how to do.Looking forward to your reply,thank you. @Curry30h

@ed830418
Copy link

@Curry30h @mushroompyq
utils.py line 16

sampler = lambda x: random.sample(x, nb_samples)
change to:
sampler = lambda x: random.sample(x, nb_samples if len(x) > nb_samples else len(x))

Hope this information will help you.

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

3 participants