concept input in category GAN
appears as: inputs, input, input, n input, inputs, The input

This is an excerpt from Manning's book GANs in Action: Deep learning with Generative Adversarial Networks.
Training dataset— The dataset of real examples that we want the Generator to learn to emulate with near-perfect quality. In this case, the dataset consists of images of handwritten digits. This dataset serves as input (x) to the Discriminator network.
Number of training hacks with commentary
- Normalizing the inputs
- Penalizing the gradients
- Training the Discriminator more
- Avoiding sparse gradients
- Changing to soft and noisy labels
Normalizing the images to be between –1 and 1 is still typically a good idea according to almost every machine learning resource, including Chintala’s list. We generally normalize because of the easier tractability of computations, as is the case with the rest of machine learning. Given this restriction on the inputs, it is a good idea to restrict your Generator’s final output with, for example, a tanh activation function.
Listing 6.4. Pixel-wise feature normalization
def pixelwise_feat_norm(inputs, **kwargs): ''' Uses pixelwise feature normalization as proposed by Krizhevsky et at. 2012. Returns the input normalized :inputs : Keras / TF Layers ''' normalization_constant = K.backend.sqrt(K.backend.mean( inputs**2, axis=-1, keepdims=True) + 1.0e-8) return inputs / normalization_constant