fabiotosi92 / NeRF-Supervised-Deep-Stereo

A novel paradigm for collecting and generating stereo training data using neural rendering
https://nerfstereo.github.io/
MIT License
349 stars 19 forks source link

How to calculate AO? #24

Closed Liyunfengabc closed 1 year ago

Liyunfengabc commented 1 year ago

Thanks for your great work, I would like to know how to calculate AO, can you provide the formula please? The formula provided in your paper is wrong. The confidence map obtained by the formula provided in the paper is almost all 1.

fabiotosi92 commented 1 year ago

We have calculated the Ambient Occlusion (AO) using the (Instant-NGP framework) by configuring testbed.render_mode = ngp.AO. Furthermore, if you wish to utilize our dataset, please be informed that these AO maps are readily accessible.

Liyunfengabc commented 1 year ago

Thank you for your reply. I want to use the method you proposed in the paper to make datasets for other scenes. I use nerf studio to calculate AO. I use the formula you proposed in the paper to calculate AO, but the AO obtained is almost all 1. I want to know if there is something wrong with the formula in your paper.

mattpoggi commented 1 year ago

Hi, yes, it seems there's a typo in the equation. According to https://github.com/NVlabs/instant-ngp/blob/master/src/testbed_nerf.cu, an extra alpha is missing

Liyunfengabc commented 1 year ago

Hi, Could you please provide me with the correct formula for calculating AO?

Sparsh913 commented 10 months ago

Hi @Liyunfengabc Were you able to figure it out?