Giter VIP home page Giter VIP logo

yc-photowakeup's Introduction

yc-PhotoWakeUp

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.

Examples




How to use

  1. 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.
  2. Generate masks of the cropped input image and smpl models, this could be manually done by Adobe Photoshop.
  3. Put the masks and depth maps in folder data. Modify the dirs in main.py, then run the code. To check if the contours are matched properly, use pc.dispCorres(), and if the matching is not good enough, increase the last param of pc.dpBoundarymatch() (e.g. from 32 to 64).
  4. 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 in outputvert(). If you want to generate a new model, please delete the old one first.
  5. Use Maya2019 to add texture and background, make animation, etc.

Please note

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!

yc-photowakeup's People

Contributors

yczhang-seu avatar

Watchers

 avatar  avatar

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.