Skip to content

Latest commit

 

History

History
121 lines (87 loc) · 5.15 KB

readme.md

File metadata and controls

121 lines (87 loc) · 5.15 KB

Dataset Preparation

Caricature Dataset

caricature_overview

Download

Please download the raw data from WebCaricature.

Unzip the downloaded WebCaricature.zip, which is in the following folder structure:

WebCaricature
|--EvaluationProtocols
|--FacialPoints
   <landmarks of the caricatures>
|--Filenames
|--OriginalImages
   <raw photo and caricature images>
|--Readme.txt

Face Alignment

python align_caricature_data.py

Face Super-Resolution

  • Upsample the aligned images to 1024*1024 by applying waifu2x twice.
  • We use waifu2x-converter-cpp.exe and the super resolution parameters:
.\waifu2x-converter-cpp --noise-level 1 -i Path_To_256_Images --scale-ratio 2 -r 1 -o Path_To_512_Images -g 1 -a 0
.\waifu2x-converter-cpp --noise-level 1 -i Path_To_512_Images --scale-ratio 2 -r 1 -o Path_To_1024_Images -g 1 -a 0

Anime Dataset

anime_overview

Download

Please download the raw images from Danbooru Portraits.

Face Alignment

python align_anime_data.py

Face Super-Resolution

  • Upsample the aligned images to 1024*1024 by applying waifu2x.
  • We use waifu2x-converter-cpp.exe and the super resolution parameters:
.\waifu2x-converter-cpp --noise-level 1 -i Path_To_512_Images --scale-ratio 2 -r 1 -o Path_To_1024_Images -g 1 -a 0

Build Your Own Dataset

We use face detection and face alignment to automatically collect artistic face images from cartoon moives like Arcane.

Suitable for artistic portraits that look like real human faces.

Download

Please download the source moive.

Please download the face detection model:

wget http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2
bzip2 -dk shape_predictor_68_face_landmarks.dat.bz2

Face Detection and Alignment

python find_face_in_video.py

Face Super-Resolution

  • Upsample the images to 1024*1024 by applying waifu2x.
  • We use waifu2x-converter-cpp.exe and the super resolution parameters:
.\waifu2x-converter-cpp --noise-level 1 -i Path_To_512_Images --scale-ratio 2 -r 1 -o Path_To_1024_Images -g 1 -a 0

Optional Post-Processing

  • Mannually filter wrong detections and low-quality ones.
  • Use PhotoShop to remove motion blurs in movies.
  • Adjust color and tone of the dark images.

Useful Resources

  • arcane.txt: filenames of our filtered 100 arcane face images.
    • E.g., the filename 1_016_04488.jpg means the 16th detected faces, the 4488th frames of the Arcane Episode 1.
  • pixar.txt: YouTube video links where we collected Pixar face images.