Giter Site home page Giter Site logo

textured_smplx's Introduction

Build textured 3D body model with two images

Example front and back images:
drawing drawing
The generated texture for SMPL and SMPLX model:
drawing drawing
The rendered result:
drawing

Requirement

Optional requirement

Demo

We have an exmple data in data/obj1. The front iamge is data/obj1/images/P01125-150055.jpg and the back image is data/obj1/images/P01125-150146.jpg.

To generate the texture for SMPL model, just run: python demo.py data/obj1 P01125-150055.jpg P01125-150146.jpg smpl To generate the texture for SMPLX model, just run: python demo.py data/obj1 P01125-150055.jpg P01125-150146.jpg smplx

You'll find the results in data/obj1

Using your own data

step1: prepare your image data

example can be find in ./data/obj1/images

step2: openpose pose detection

For Linux users, you need to complie openpose following the instruction here, and for windows users, you can used the windows portable demo.
openpose.bin --display 0 --render_pose 1 --image_dir ./data/obj1/images --write_json ./data/obj1/keypoints --write_images ./data/obj1/pose_images --hand --face

step3: fit smpl/smplx model

Please follow the instruction here
An example command is: python smplifyx/main.py --config cfg_files/fit_smplx.yaml --data_folder ./data/obj1 --output_folder ./data/obj1/smplx --visualize=True --model_folder models --vposer_ckpt vposer_v1_0
Please copy the output data to ./data/obj1/smplx or ./data/obj1/smpl

step4(optional): get PGN segmentation

Please follow the instruction here
Please copy the output data to ./data/obj1/PGN

step4: texture generation

run python demo.py data_path front_img back_img smplx

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.