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
- Specify the file path to caricature.txt in Line 6 of align_caricature_data.py.
- Specify the folder path to the FacialPoints of WebCaricature in Line 7 of align_caricature_data.py.
- Specify the folder path to the OriginalImages of WebCaricature in Line 8 of align_caricature_data.py.
- Specify the folder path to save the aligned images in Line 9 of align_caricature_data.py.
- Run the script align_caricature_data.py to produce 199 aligned 256*256 caricature face images.
python align_caricature_data.py
- 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
Please download the raw images from Danbooru Portraits.
- Specify the file path to anime.txt in Line 6 of align_anime_data.py.
- Specify the folder path to the Danbooru Portrait Dataset in Line 7 of align_anime_data.py.
- Specify the folder path to save the aligned images in Line 8 of align_anime_data.py.
- Run the script align_anime_data.py to produces 174 aligned 512*512 anime face images.
python align_anime_data.py
- 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
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.
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
- Specify the file name of the images to be saved in Line 15 of find_face_in_video.py.
- Specify the file path to the moive in Line 16 of find_face_in_video.py.
- Specify the folder path to save the found face images in Line 17 of find_face_in_video.py.
- Specify the model path to the downloaded shape_predictor_68_face_landmarks.dat in Line 18 of find_face_in_video.py.
- Specify the length of the black letterboxing of the moive in Line 19 of find_face_in_video.py.
- Run the script find_face_in_video.py to find and crop aligned 512*512 face images.
python find_face_in_video.py
- 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
- Mannually filter wrong detections and low-quality ones.
- Use PhotoShop to remove motion blurs in movies.
- Adjust color and tone of the dark images.
- 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.
- E.g., the filename
- pixar.txt: YouTube video links where we collected Pixar face images.