Giter Club home page Giter Club logo

idolgan's Introduction

IdolGAN [adoːkẽꜜɴ]

thumbnail

Overview

IdolGAN project is inspired by our pure passion which is restoring our favorite K-pop idols to high quality images. So we googled about it. But many SR models like Topaz can't generate an image we are satisfied with. We think models trained by FFHQ or Celeb-A never restore our favorite idols to high quality properly. Therefore, we gather many high-quality K-pop Idol images from the internet. The most important part is the face. The satisfactory thershold of face image quality is higher than the other parts of human images (etc. arm, legs, or feet). So we collect about 6,000 K-pop girl group images at least 512*512 size, even the face alone! We build these images to a dataset called KID-F).

In this repo, we will archive our journey to restore perfect high quality K-pop idol face images. We finished our first step which is proving our hypothesis: fat pops and wrinkled old women in FFHQ, Celeb-A, etc can't generate our beautiful idol's face. ❤️

We used HiFaceGAN and KID-F Dataset.

Usage

Environment

for HiFaceGAN

  • Ubuntu
  • PyTorch 1.0+
  • CUDA 10.1
  • python packages: opencv-python, tqdm,
  • Data augmentation tool: imgaug
  • Face Recognition Toolkit for evaluation
  • tqdm to make you less anxious when testing :)
  • cv2

for crop.py

  • cv2
  • mediapipe
  • tqdm

for degrad.py

  • cv2
  • tqdm

Checkpoint

We provide Model Checkpoint which trained from KID-F Dataset. We used train_dataset of KID-F for training, which takes 2 days on a single GTX 1080 Ti. We upload the checkpoint on our Google Drive.

Configurations

The configurations is stored in options/config_hifacegan.py in HiFaceGAN You need to edit train&test dataset root, each(train/test) option name, and netG to 'lipspade' for using KID-F dataset.

Evaluation

We used PSNR, SSIM, FID, LPIPS, IDD for evaluation.

Benchmark

We compared HiFaceGAN's performance of KID-F test images with 5 metrics (PSNR, SSIM, FID, LPIPS, IDD). Column FFHQ is metrics calculated from pretrained model (HiFaceGAN) with FFHQ Downloaded from HiFaceGAN. Column Idol Dataset (Ours) calculated from HiFaceGAN trained with KID-F.

The metrics is calculated from KID-F test images (total 300 images, all 512*512 resolution) inference of each model and original images.

FFHQ Idol Dataset (Ours)
PSNR↑ 31.82 32.49
SSIM↑ 0.72 0.758
LPIPS↓ 0.151 0.109
FID↓ 0.574 0.159
IDD↓ 0.00637 0.00496

Result

KID-F Test Images Result

test_0 test_1 test_2 test_3

Real-world Images Result

real_world_0 real_world_1 real_world_2 real_world_3

Next Level

  • Restore videos, not only images.
  • Fine-tuning SR model to one particular idol.
  • Restore other parts of idol. (like body, clothes, etc.)
  • Restore background at stages or tv shows.

Contacts

If you have any questions, opinions or advices, please feel free to contact to [email protected]

Citation

@notyet{
  title = {},
  author = {Dongkyu Kim, Donggeon Han, Hyunwook Kwon, Dain Jeong, Cheol H. Jeong},
  month = {August},
  year = {2022}
}

idolgan's People

Contributors

vkehfdl1 avatar eastsidegunn avatar

Stargazers

SeungYeon Hong avatar Kwon, Hyun-wook avatar Ramón Jesús Gómez Carmona avatar SeongjaeMoon avatar Junhyeok Choi avatar HYUN PARK avatar  avatar In-young Cho (조인영) avatar  avatar Jonghee Lee avatar Taeyoung Kim avatar minsing-jin avatar

Watchers

Hyeonjae.kim avatar

idolgan's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.