"torchvision/git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "42aa9b263eaea3553369ff39268cfe295c7a57b0"
Commit 1e8f3427 authored by Ruilong Li's avatar Ruilong Li
Browse files

add comment

parent b3a141aa
...@@ -113,6 +113,7 @@ if __name__ == "__main__": ...@@ -113,6 +113,7 @@ if __name__ == "__main__":
occupancy values with shape (N, 1). occupancy values with shape (N, 1).
""" """
density_after_activation = radiance_field.query_density(x) density_after_activation = radiance_field.query_density(x)
# those two are similar when density is small.
# occupancy = 1.0 - torch.exp(-density_after_activation * render_step_size) # occupancy = 1.0 - torch.exp(-density_after_activation * render_step_size)
occupancy = density_after_activation * render_step_size occupancy = density_after_activation * render_step_size
return occupancy return occupancy
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment