kristijanbartol / GarMentor

[Work in Progress] Estimating clothing parameters from in-the-wild images.
MIT License
3 stars 0 forks source link

Render TailorNet meshes on RGB images for synthetic training #20

Closed kristijanbartol closed 2 years ago

kristijanbartol commented 2 years ago

Subtasks

Detected problems

Solution (see #30)

To move clothes on top of the body, the interpenetration solver function can be used. However, it is non-trivial to do this update as the function is written in NumPy, as well as the underlying code that uses psbody package. Therefore, the whole synthetic data generation code needs to be rewritten in NumPy (and the original TailorNet's SMPL4Garment class can be used instead of TorchSMPL4Garment, which is addressed in a separate issue #30 .

kristijanbartol commented 2 years ago

Comments on the problem 1 (clothes not on top of the body):

Note: the issue concluded in the "Solution" part of the original comment.

kristijanbartol commented 2 years ago

Reopen: It turns out that mesh rendering and offline data pre-generation are not that related, so it's still relevant to have this issue opened separately. In particular, the problem is indeed in the rendering part, which might be solved by using a different rendering technique (check POSA!).

kristijanbartol commented 2 years ago

Closing: Using trimesh + pyrender (see renderers/surreal_renderer.py).