/jokerise

Why so serious?

Primary LanguagePython

Jokerise with CycleGAN

Not sure if Joker face would look good on you for Halloween? Try jokeriser!

Jokerise finds your face with facenet_pytorch and translate your face to a Joker's using a generator trained with CycleGAN.

Getting Started

There is a another repository which implements this project as a web service.

You can also jokerise your photo in the web service

Install

$ git clone https://github.com/junkwhinger/jokerise.git
$ cd jokerise
$ pip install -e . # python version >= 3.6

How to jokerise

# image
$ ./demo.py --input samples/joaquin.jpg

# video
$ ./demo.py --input samples/joaquin.mp4

# webcam
$ ./demo.py --webcam

# wanna see original & tranlsated version side by side?
$ ./demo.py --webcam --show-original

Note

  • Works well on Ubuntu 18.04 LTS and OSX environment.
    • Not sure about other platforms.
  • Python version >= 3.6

CycleGAN Training Details

  • Dataset
    • Joaquin Phoenix's and Heath Ledger's joker faces from Google (300 images)
    • Randomly selected faces from CelebA dataset (300 images)
  • Preprocessing
  • Training details
    • image size: 3x128x128
    • number of residual blocks: 6
    • epochs: 200

Have Fun!

Reference