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

RGB loss calculation #33

Closed
SherlockSunset opened this issue Feb 10, 2022 · 1 comment
Closed

RGB loss calculation #33

SherlockSunset opened this issue Feb 10, 2022 · 1 comment

Comments

@SherlockSunset
Copy link

SherlockSunset commented Feb 10, 2022

Hi, just going through the rgb loss calculation part. For my understanding, it seems the highlighted part should be: l_1 loss divided by the float((object_mask).sum()), which means averge the valid number of pixels instead of also considering the pixels outside of the object mask. Hope someone can correct me if there is anything wrong, thanks.
rgb_loss

@SherlockSunset
Copy link
Author

Just found out that there are two cases:
one is for the fixed ground truth cameras, the mask of the image already correctly cover the captured object's valid region, for our rendering loss, we only need to care about those valid region, instead of average over the whole image size.
Another case is for the noisy camera initializations, the mask of the image may not fully cover the captured object's valid region, which means we need to apply loss over the whole image size.

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

1 participant