Can't figure out how to apply texture
BukuBukuChagma opened this issue · 1 comments
First was amazing repo. Thanks for the work!
I was able to run everything on a quite new python 3.11 env lol.
TailorNet works perfect. When I run with my own betas, it outputs a body mesh and a pred_gar mesh. Awesome
Read your replies in other issues that we can apply texture from MGN dataset. Went to that repo and downloaded their dataset 1. Datasets contains different folder in each folder there is some kind of garment obj/registration.pkl file/multi_gar.jpg/registered.jpg/smpl_registered.obj/scan.obj/scan.npy. The texture file contain whole texture for body/and garment. Also there are no uv file that texture cordinates. From what I can understand I can translate the uv cordinates from one obj file to other using trimesh library. But for that the mesh should be of same style right? Lets say on tailornet 1 use style 000 how to find the garment of same style in dataset? How to apply that texture img? i want texture just fo the cloth not the whole body.
Nvm my bad. I figured this out.
Using Mesh Library you can copy the vt, ft from the template garment_class that MGN has provided in their dataset. Once you have vt and ft assigned on your garment that tailornet output, you use texture_map files named "multi_tex.jpg) inside MGN dataset on your garment and it will work.