gsurma / image_generator

DCGAN image generator šŸ–¼ļø.
https://gsurma.github.io
MIT License
216 stars 82 forks source link

"ValueError: Sample larger than population or is negative" #1

Closed ghost closed 5 years ago

ghost commented 5 years ago

Hello,

Really nice work! I get a bug when trying to start Training your model:

"ValueError: Sample larger than population or is negative"

Please could you help? Thanks in advance

gsurma commented 5 years ago

Hi,

My first guess is that len(input_images) < BATCH_SIZE. First of all you have to make sure that you have images in the INPUT_DATA_DIR. Then you have to verify if they are properly passed to input_images.

ghost commented 5 years ago

Ok thanks! Iā€™ll have a look at it tomorrow. Iā€™m importing the pictures from Google Drive. Iā€™ll keep you up to date.

--

*Mikel Arbiza.- {ComunicaciĆ³n Creativa}. āœ† 670270854 / ā˜ž www.mikelarbiza.nethttp://www.mikelarbiza.net/

El 13 feb 2019, a las 17:36, Greg notifications@github.com<mailto:notifications@github.com> escribiĆ³:

Hi,

My first guess is that len(input_images) < BATCH_SIZE. First of all you have to make sure that you have images in the INPUT_DATA_DIR. Then you have to verify if they are properly passed to input_images.

ā€” You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/gsurma/image_generator/issues/1#issuecomment-463270286, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AruraJEzePx2KDMUZjyiQEEV-yY6n1mBks5vND8RgaJpZM4a5M8v.