Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Straight planes get dents when converting to mesh #20

Open
jclarkk opened this issue Feb 18, 2024 · 2 comments
Open

Straight planes get dents when converting to mesh #20

jclarkk opened this issue Feb 18, 2024 · 2 comments

Comments

@jclarkk
Copy link

jclarkk commented Feb 18, 2024

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
Copy link
Author

jclarkk commented Feb 18, 2024

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

@ashawkey
Copy link
Collaborator

@jclarkk Thanks for the information!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants