LGM icon indicating copy to clipboard operation
LGM copied to clipboard

Straight planes get dents when converting to mesh

Open jclarkk opened this issue 1 year ago • 2 comments

It seems that when I run the convery.py on an asset that has straight planes I encounter dents such as this: image

Any idea how we might be able to overcome this?

Thanks!

jclarkk avatar Feb 18 '24 08:02 jclarkk

It seems restoring laplacian_smooth_loss has helped a lot but still not perfect.

Current results: image

Here is how I restored it: loss_mse = F.mse_loss(image_pred, image_gt) + 0.1 * F.mse_loss(alpha_pred, alpha_gt) loss_lap = laplacian_smooth_loss(self.v + self.deform, self.f) loss_normal = normal_consistency(self.v + self.deform, self.f) loss_offsets = (self.deform ** 2).sum(-1).mean() loss = loss_mse + 0.001 * loss_normal + 0.1 * loss_offsets * loss_lap * 0.01

jclarkk avatar Feb 18 '24 15:02 jclarkk

@jclarkk Thanks for the information!

ashawkey avatar Feb 19 '24 01:02 ashawkey