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

Bug 001 #3

Closed
koji opened this issue Oct 6, 2018 · 3 comments
Closed

Bug 001 #3

koji opened this issue Oct 6, 2018 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@koji
Copy link
Owner

koji commented Oct 6, 2018

ValueError: Sample larger than population or is negative

@koji koji added the bug Something isn't working label Oct 6, 2018
@koji koji self-assigned this Oct 6, 2018
@koji
Copy link
Owner Author

koji commented Oct 6, 2018

Currently support .png
add .jpg

@koji
Copy link
Owner Author

koji commented Oct 8, 2018

easyGAN 0.4

@koji koji closed this as completed Oct 8, 2018
@Ianmcmill
Copy link

Still get this error with easygan 0.4

Traceback (most recent call last):
  File "/home/castle/.local/bin/easygan", line 6, in <module>
    easygan.main()
  File "/home/castle/.local/lib/python3.6/site-packages/easygan/__init__.py", line 265, in main
    run_DCGAN(folder, batch, fileformat)
  File "/home/castle/.local/lib/python3.6/site-packages/easygan/__init__.py", line 202, in run_DCGAN
    batch_image = image_batch(filePath, batch_size, fileformat)
  File "/home/castle/.local/lib/python3.6/site-packages/easygan/__init__.py", line 150, in image_batch
    files = random.sample(files, int(batchSize))
  File "/usr/local/lib/python3.6/random.py", line 317, in sample
    raise ValueError("Sample larger than population or is negative")
ValueError: Sample larger than population or is negative

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants