Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to generate the 3D texture #5

Closed
jianwang-mpi opened this issue Jul 11, 2018 · 2 comments
Closed

How to generate the 3D texture #5

jianwang-mpi opened this issue Jul 11, 2018 · 2 comments

Comments

@jianwang-mpi
Copy link

I am wondering how to map the texture from the texture image to the 3D mesh. I tried to run render.py. However, because I do not have 3D models and corresponding parameter pkl files, I cannot run render.py.

Could you please provide some example input of render.py and help me learn the generation of 3D texture?

@jianwang-mpi
Copy link
Author

jianwang-mpi commented Jul 12, 2018

I ran bodyfit.py in the 3dfit directory and generated 3D body parameter. Then I called render.py to generate 3D mesh with segmentation:

python render.py 0001.jpg --segmented

however, the result is like this:
image

Here is the original image and model parameters:
3dfit.zip

@classner
Copy link
Owner

Thanks for reporting this! This was due to a change in the UV map used. Since for several reasons I have to stick with the current version, I fixed this (just pushed to master) by rendering the 31 part segment mesh. If you want to use the six segments only, there's a function to convert them in this file: https://github.com/classner/up/blob/master/up_tools/model.py#L298 (the link points to the specification of the six segments, the function is 'regions_to_classes').

Let me know if this works for you. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants