roatienza / Deep-Learning-Experiments

Videos, notes and experiments to understand deep learning
MIT License
1.1k stars 760 forks source link

Adviсe about keras GAN #8

Closed hadaev8 closed 6 years ago

hadaev8 commented 6 years ago

I'm trying on the basis of your example make a generator of color images. But missing something with the color dimension. And get error: number of input channels does not match corresponding dimension of filter, 1 != 3

Code https://pastebin.com/TAm21NJg

roatienza commented 6 years ago

You may have to modify the number of channels output of the generator from 1 to 3.

self.G.add(Conv2DTranspose(1, 5, padding='same'))