Hi, thanks for your job about GAN's work!
I met a value error when I was running your code on my Mac:
ValueError: Cannot feed value of shape (0,) for Tensor u'Placeholder:0', which has shape '(?, 64, 64, 3)'
This error happened when I called dcgan.train(sample_dir), and the whole log is below:
Traceback (most recent call last):
File "/Users/gilgamesh/Desktop/Learning material/GAN_Theories/dcgan.py", line 108, in
dcgan.train(sample_dir)
File "/Users/gilgamesh/Desktop/Learning material/GAN_Theories/dcgan.py", line 62, in train
feed_dict={self.X: X_b, self.z: sample_z(batch_size, self.z_dim), self.learning_rate: learning_rate}
File "/usr/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 789, in run
run_metadata_ptr)
File "/usr/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 975, in _run
% (np_val.shape, subfeed_t.name, str(subfeed_t.get_shape())))
ValueError: Cannot feed value of shape (0,) for Tensor u'Placeholder:0', which has shape '(?, 64, 64, 3)'
Thanks a lot!