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 #7

Open
Raijin003 opened this issue Sep 12, 2020 · 0 comments
Open

ValueError #7

Raijin003 opened this issue Sep 12, 2020 · 0 comments

Comments

@Raijin003
Copy link

Raijin003 commented Sep 12, 2020

Hello, I'm new on github. I want to develop a DCGAN for image generation. Someone can help me?

**input_images = np.asarray([np.asarray(Image.open(file).resize((IMAGE_SIZE, IMAGE_SIZE))) for file in glob(INPUT_DATA_DIR + '*')])
print ("Input: " + str(input_images.shape))

np.random.shuffle(input_images)

sample_images = random.sample(list(input_images), SAMPLES_TO_SHOW)
show_samples(sample_images, OUTPUT_DIR + "inputs", 0)

with tf.Graph().as_default():
train(get_batches(input_images), input_images.shape)**

I get this error:

ValueError: Sample larger than population or is negative

-Thanks

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