DCGAN on Anime Face

Generative adversial networks also called GANs are used to generate images by taking a random-uniform noise as an input. The networks consists of two main parts: Generator -> Takes the noise as input and generates images Discriminator -> Guesses if the image is generated by generator or if the image came from the training data. Generator The generator takes a random uniform noise($z$) also called latent vector, as input and outputs an image, let’s say $x$....

July 6, 2023 · 4 min · Sicilian

Softmax

Softmax takes an N-dimensional vector as input and outputs an N-dimensional vector of probabilities which sums up to 1. It is a generalised version of logistic regression but with multi classes instead of two classes hence it can be used for multi-class classification. Softmax equation: $$A = \frac{e^z}{\Sigma e^z}$$ The ground truth value for a softmax function is a one-hot encoded vector. Cross-entropy loss Cross entropy loss can be derived from the below expression....

June 9, 2023 · 3 min · Sicilian