Skip to content

Generating images of "catdog" using conditional GAN

Notifications You must be signed in to change notification settings

suin00h/catdog-by-cgan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generative Models Techs Status

Main Image

About

This personal project synthesize animal images via Conditional-GAN, extended generative adversarial network.

During the training process, the label is additionally given to the generator as input and the discriminator determines its class. Then, we can manipulate the generator's input during the sampling process to get the desired class.

The project's goal is to check whether we can sample the synthesized animal images by giving multi-labeled input to the generator.

Dataset

Animal Faces-HQ(AFHQ)

Introduced by Choi et al. in StarGAN v2: Diverse Image Synthesis for Multiple Domains.

AFHQ is a dataset of animal faces consisting of 15,000 high-quality images at 512 × 512 resolution.
The dataset includes three domains of cat, dog, and wildlife, each providing 5000 images.
All images are vertically and horizontally aligned to have the eyes at the center.

Download dataset

kaggle datasets download -d andrewmvd/animal-faces -p ./dataset/ --unzip

Dataset Directory

dataset
|-- afhq
|   |-- train
|   |   |-- cat
|   |   |   |-- flickr_cat_000002.jpg
|   |   |   |-- ...
|   |   |-- dog
|   |   |-- wild
|   |-- val
|   |   |-- cat
|   |   |-- ...

Model Architecture

TBU

Results

Epochs: 10

Image 10

Epochs: 100

Image 100

Epochs: 500

Cat Dog Catdog

TODO

  • Reconstruct overall architecture
  • .ipynb -> .py

About

Generating images of "catdog" using conditional GAN

Topics

Resources

Stars

Watchers

Forks

Languages