pix2surf icon indicating copy to clipboard operation
pix2surf copied to clipboard

How to generate texturemaps for other types of garment?

Open lonelypicker opened this issue 4 years ago • 5 comments

Hi, Thanks for your great work! I want to generate texturemaps for other types of garment, would it be possible to use this public code? And, how to generate vt_ft_file.pkl for other garment types?

lonelypicker avatar Jun 03 '20 02:06 lonelypicker

It should be possible to define a custom garment template using SMPL vertices. To generate vts and fts, we used blender. Please check :https://en.wikibooks.org/wiki/Blender_3D:_Noob_to_Pro/UV_Map_Basics

You will also need to generate face maps and barycentric coordinate maps - fmaps and bmaps.

miraymen avatar Jun 03 '20 09:06 miraymen

Sorry to bother you again. How to generate fmaps and bmaps? Are these trained by other networks? And it seems that cam_file.pkl used in prep_data only provide the position of the camara, how to determine the value in cam_file.pkl?

lonelypicker avatar Jun 04 '20 01:06 lonelypicker

fmaps and bmaps can be generated using openDR without network training. The values in the cam_fil.pkl are hyper-parameters chosen using randomized grid search. These are values for which the obtained silhouette overlaps with texture silhouettes to a substantial degree.

miraymen avatar Jun 15 '20 08:06 miraymen

Thank you very much! Your response helps me a lot!

lonelypicker avatar Jun 18 '20 06:06 lonelypicker

@lonelypicker @aymenmir1 Thanks for your discussions. And how to do it? Any scripts can post?-

donghaoye avatar Jun 22 '20 12:06 donghaoye