huangyangyi / TeCH

[3DV 2024] Official repo of "TeCH: Text-guided Reconstruction of Lifelike Clothed Humans"

Home Page:https://huangyangyi.github.io/TeCH/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

weird geometry & texture on leg

ZunDuJiaDu opened this issue · comments

image
Anyone met the same weird geometry and texture on the leg?

I guess this is caused by the mismatch of SMPLX model and provided images. Do you have suggestions?

Yes, this can happen when SMPL-X estimates are inaccurate. You can try passing a extra loss mask to mask out all the normal regularization loss and reconstruction losses in the incorrect area, in this part of the code

TeCH/core/lib/trainer.py

Lines 242 to 246 in 5efe7d6

if self.cfg.data.loss_mask is not None:
self.loss_mask = np.array(Image.open(self.cfg.data.loss_mask).resize(self.input_image.shape[1:]))[..., -1] / 255
self.loss_mask_norm = np.array(Image.open(self.cfg.data.loss_mask).resize((512, 512)))[..., -1] / 255
self.loss_mask = torch.tensor(self.loss_mask, dtype=torch.float).to(self.device).unsqueeze(0) * self.input_mask
self.loss_mask_norm = torch.tensor(self.loss_mask_norm, dtype=torch.float).to(self.device).unsqueeze(0) * self.normal_mask

[Origin image]
image

[Mesh]
image

Thank you so much.
I want an outstretched leg on mesh. But, I got a folded leg like image.
Any suggestion for this error?

The SMPL-X pose estimation method (PIXIE) we use often encounter such problem, you can try to replace the smplx estimation with Pymaf-x or other more advanced methods