Skip to content
BIASED

StarGAN: one generator for many domains

Block 1 of 8~2 min

From two domains to many

CycleGAN: unpaired image-to-image translation learned to move images between two domains without paired examples. It used two generators, one per direction, two discriminators, and a cycle-consistency loss that sends an image there and back and asks it to return unchanged. That covers one pair of domains.

A domain here is a set of images that share a label: black hair, blond hair, smiling faces, angry faces. A face dataset such as CelebA carries many such labels, and we want to move a face between any two of them. Pairwise CycleGAN needs a separate generator for every ordered pair of domains: black → blond is one network, blond → black another.

Each of those generators sees only the images of its own two domains. Yet they all have to learn the same things about faces: where the eyes are, how skin looks under light, what must not change when the hair does.

StarGAN (Choi et al., 2018) trains one generator for all directions. It takes an image of any domain and the label cc of the domain we want:

x  ↦  G(x,c).x \;\mapsto\; G(x, c).

The output should look like a real image of domain cc and keep everything about xx that the label does not mention. The name comes from the picture: the domains sit at the tips of a star, with one generator in the middle.

Answers are saved on the server and tied to this browser until you sign in.