xiaowei-hu / CycleGAN-tensorflow

Tensorflow implementation for learning an image-to-image translation without input-output pairs. https://arxiv.org/pdf/1703.10593.pdf
715 stars 294 forks source link

Fixes a bug when using non-default image sizes #22

Open askorelas opened 6 years ago

askorelas commented 6 years ago

Came across a bug when using smaller picture sizes than 256. The function load_train_data method wasn't given the picture shape that the network was built with, which resulted in incompatible tensor shapes.

Deeplearning20 commented 6 years ago

@askorelas Hello, I changed my picture to 256*256. But there is a problem, how did you solve it?Thanks very much! ValueError: Cannot feed value of shape (0,) for Tensor 'real_A_and_B_images:0', which has shape '(?, 256, 256, 6)' image

star0w commented 3 years ago

@askorelas Hello, I changed my picture to 256*256. But there is a problem, how did you solve it?Thanks very much! ValueError: Cannot feed value of shape (0,) for Tensor 'real_A_and_B_images:0', which has shape '(?, 256, 256, 6)' image

hello! have u solved this problem?