hbertiche / NeuralClothSim

Other
188 stars 17 forks source link

How to train multiple clothes simultaneously #18

Open xqyd opened 5 months ago

xqyd commented 5 months ago

Hi, Great jobs for your paper and code! I have one simple question: How to edit the smpl.json file so I can train the tshirt and the pants together?

Since these two obj files are located in the same folder, and multi-layered clothing simulation is a must for many applications, I want to know how to do it in your current code. Thanks!

hbertiche commented 4 months ago

Hi, thanks for your interest in my work!

To train multiple garments at once, the easiest solution is to merge them into a single mesh in an OBJ file. Note cloth-to-cloth interactions are not modeled in this approach, but it is possible to do it. To see how, you can look to a similar work of mine, PBNS (https://github.com/hbertiche/PBNS). Briefly, the idea is that collision loss is applied to garments iteratively, from inner-most to outer-most, with previous layers considered as part of the body (collider).