Implementation of CVPR2019 paper - Photo Wake-Up: 3D Character Animation from a Single Photo
The original project website (and paper): https://grail.cs.washington.edu/projects/wakeup/
Many thanks to the original authors contributions!
The implementation of section 4.1. Mesh Warping, Rigging, & Skinning
of the original paper is complete. With an input including human of front view and without self-occlusion, a 3D-model that matches the boundary of the input human area could be constructed. Texture, animation and background could be added using Maya2019.
The implementation of section 4.2 Self-occlusion
is not completed. Folder smpl_seg
includes the per-vertex label of smpl model (based on https://github.com/ZhengZerong/SmplLabeling), and codes in folder labelmap
could be used to generate and warp body label map. However, those final steps to deal with self-occlusion are not implemented in this project.
- Find a proper input image. The position of the human needs to nearly be at the center, and the human should not include self-occlusion. Use the modified
SPIN
: https://github.com/yczhang-seu/SPIN to generate the cropped input (larger input will be cropped to 224* 224), the depth maps and the smpl models. - Generate masks of the cropped input image and smpl models, this could be manually done by Adobe Photoshop.
- Put the masks and depth maps in folder
data
. Modify the dirs inmain.py
, then run the code. To check if the contours are matched properly, usepc.dispCorres()
, and if the matching is not good enough, increase the last param ofpc.dpBoundarymatch()
(e.g. from 32 to 64). - Check the model in folder
output
. The obj file could be displayed and modified in Maya2019. To change the thickness of the model, change the related param inoutputvert()
. If you want to generate a new model, please delete the old one first. - Use Maya2019 to add texture and background, make animation, etc.
As a beginner project in python, the result is far from perfect. The generated models are quite coarse, and further manual adjustments are needed in most cases. If you have any suggestions to make this project better, please let me know!