Giter Site home page Giter Site logo

kuboshizuma / uvtextureconverter Goto Github PK

View Code? Open in Web Editor NEW
167.0 6.0 22.0 16.39 MB

To convert atlas texuture (defined in Densepose) to normal texture (defined in SMPL), and vice versa.

License: MIT License

Python 2.51% Jupyter Notebook 97.45% Dockerfile 0.04%
atlastexture normaltexture densepose

uvtextureconverter's Introduction

About Me

Qiita Works

My Qiita posts My Qiita contributions My Qiita followers

Paper Reading at Deep Learning JP

GitHub Summary

GitHub stars

uvtextureconverter's People

Contributors

kuboshizuma avatar shiba6v avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

uvtextureconverter's Issues

How to get IUV ?

Hello, the results are impressive and I would like to try create_uv_texture_from_image_by_using_densepose.ipynb with other images, but how to get the corresponding IUV.png?
Thanks in advance for your answer

About Atlas2Normal conversion

Thanks for your code!

I have a few questions about the function to convert atlas texture to normal texture.

  1. There are three extra data files that need to be loaded in advance, including config/UV_Processed.mat, config/normal_faces.pickle, and config/normal.pickle. What are these files, and what kinds of data these files contain, respectively?

  2. If the input size of the atlas texture and mask is [24, part_size, part_size, 3] and [24, part_size, part_size], respectively, and the output normal texture size is, say 512x512, thus, the Atlas2Normal function is actually trying to convert the part-based UV coordinates (defined in SMPL model) into a full-body version of UV coordinates. Is that correct? If so, how to get such correspondence between part-based UV coordinates and the full-body version of UV coordinates? Is there any mapping functions or index to find where the location should be in the outputted normal textures?

  3. I have noticed that, in the initialization function of Atlas2Norm, the function tries to load another data file, namely, mapping_relations/atlas2normal_{atlas_size}_{normal_size}.pickle, which has been calculated when performing the first time of atlas2normal texture conversion. Does it mean the mapping function from atlas texture with atlas_size to normal texture with normal_size is actually fixed?

P.S. I have got some hints about the UV_Processed.mat data file from facebookresearch/DensePose#146 (comment). But still do not know the data stored in the other extra files? Would you please help me to understand the whole process, and how to use these extra data to perform Atlas2Normal conversion?

Thanks a lot! :)

How can it work without the 'I' information?

Hello, thanks for a such a great repository!

I have one question, how can the create_uv_texture_from_image_by_using_densepose.py script work without the part information? If I understand correctly, the original IUV formulation generates outputs two type of data: the UV coordinates of each body part (of range 0,1), and the body part (of range 1-24) that specifies a what body part (or island of the UV map) each pixel corresponds.

My question is, the script create_uv_texture_from_image_by_using_densepose.py only requires a .jpg with the dense correspondences but in that file there is not information about the body part (what is originally refers to I in the DensePose formulation). I don't see how it can manage to produce the final texture. Could you share some details? I looked at the source code but couldn't find the underlaying logic.

Thanks!

two vital errors when using this project.

When using this project, i met two vital errors when trying to visualize the human mesh. First, the type check code. The additional command type make it impossible to input the PIL.Image.
elif isinstance(im, type(Image)) and isinstance(iuv, type(Image)): im = im iuv = iuv
Second, why the iuv should be multiply 255? This behaviour cause huge confusion.

How to reduce unmapped pixels?

The generated texture contains many unmapped pixels, is there any way to deal with these pixels?
I'm not sure it's dense pose problem or resolution problem.
view_1

Is there a way to generate texture from image to smpl 10 parts style UV map?

こんにちは, kuboshizuma-sama,
Thanks for your nice work!
It's really wonderful and cool!
I noticed that your developed API can convert image to densepose 24 parts texture UV map, and then do atlas2normal translate to 10 parts UV map style.
I would like to ask if there is a function that can convert image to 10 part UV texture directly since I found the 2-step conversion consumes too much time( atlas2normal runs about 20 sec in my case).

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.