Keras-GAN-Animeface-Character icon indicating copy to clipboard operation
Keras-GAN-Animeface-Character copied to clipboard

Minibatch discrimination missing bias term

Open HitLuca opened this issue 7 years ago • 1 comments

The minibatch discrimination proposed here indicates that a bias term is added before concatenating the kernels to the main input. As I'm not 100% sure which implementation is the correct one, I would suggest to check and improve your code accordingly, with an update in the build method

self.b = self.add_weight(shape=(self.nb_kernels,),
                         initializer=keras.initializers.zeros(),
                         name='bias',
                         regularizer=self.W_regularizer,
                         trainable=True,
                         constraint=self.W_constraint)

and in the call method

minibatch_features += self.b

HitLuca avatar May 30 '18 12:05 HitLuca

Thank you for the proposal. I might add this as well: https://github.com/atiyo/unbounded_gan

forcecore avatar May 31 '18 10:05 forcecore