Definition

Conditional GAN (cGAN) is an extension of GAN that allows for the generating of data with specific attributes or conditions. In a standard GAN, the generator only takes random noise, while in a cGAN, the generator receives additional information to guide the generation process.

Architecture

The generator learns to create samples that match the given condition, and the discriminator learns to distinguish between real and fake samples, considering the condition.

Objective Function

The objective function of cGAN is defined as where:

  • is the generator’s output given noise and condition
  • is the discriminator’s output given input and condition
  • is the condition
  • is the distribution of the input data
  • is the distribution of noise