Open Raijin003 opened 4 years ago
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
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