jzhangbs / MVSDF

Learning Signed Distance Field for Multi-view Surface Reconstruction
MIT License
136 stars 9 forks source link

Gradients of the feature consistency loss #9

Closed morsingher closed 2 years ago

morsingher commented 2 years ago

Hi, thanks for releasing this work.

I have a question about equation 7 in your paper, where you derive the gradients of the feature consistency loss with respect to network parameters. Why is it necessary to compute them explicitly? Intuitively, I would think that PyTorch autograd will figure them out automatically and in your code I couldn't find the corresponding explicit computation. If I missed it, can you point me to the correct line?

Thank you in advance!

jzhangbs commented 2 years ago

Hi @morsingher, yes in current implementation the gradients are automatically computed by PyTorch. The analysis in the paper is given to show why the feature consistency loss can affect the geometry.

And optionally we can use Sobel operator to calculate the image gradient which possibly improves the robustness. In this case we need to explicitly calculate the gradients.

morsingher commented 2 years ago

Thanks for the quick answer, closing this as my doubt is cleared :)