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 stuck at zero #20

Open
iernstig opened this issue Jul 28, 2021 · 3 comments
Open

rgb_loss stuck at zero #20

iernstig opened this issue Jul 28, 2021 · 3 comments

Comments

@iernstig
Copy link

Hi! Thank you for the great work, I'm trying to get system to work on my own images, but am facing some difficulties. I obtain the position information using an aruco board on which I place my object. Now, the algorithm moves past the ray-tracing step properly, but then the algorithm outputs an rgb-loss of "0.0". Did anyone encounter something similar? I am very grateful for any type of response :)

@za-cheng
Copy link

za-cheng commented Aug 2, 2021

Hi,

Were you able to solve this problem? I came across the same issue with rgb_loss always evaluates to 0 on other images. More specifically, the network_object_mask in rgb loss function seems always zero everywhere.

In preparing the images I arranged them in DTU style with images and masks. And populated cameras.npz with world-to-image projection matrix and object-to-world scale_mat, with the object coordinates confined in a unit sphere.

Edit: I just realised I had used the wrong coordinate system for camera projection. After correcting this the rgb_loss becomes non-zero.

@qinzhibao123
Copy link

@za-cheng
Hi! How did you finally solve this problem? What is the correct coordinate system for camera projection? How do I get the initial world_mat in cameras.npz?

@JasonW-00
Copy link

Hi,

Were you able to solve this problem? I came across the same issue with rgb_loss always evaluates to 0 on other images. More specifically, the network_object_mask in rgb loss function seems always zero everywhere.

In preparing the images I arranged them in DTU style with images and masks. And populated cameras.npz with world-to-image projection matrix and object-to-world scale_mat, with the object coordinates confined in a unit sphere.

Edit: I just realised I had used the wrong coordinate system for camera projection. After correcting this the rgb_loss becomes non-zero.

Hi!Could you tell me in detail which part of your negligence caused the calculation to be incorrect? I also faced the same problem and it bothered me for a long time

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

4 participants