Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nerfacc
Commits
27a318da
Commit
27a318da
authored
Dec 01, 2023
by
Ruilong Li
Browse files
black format
parent
ec22f12c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
docs/source/conf.py
docs/source/conf.py
+4
-1
examples/train_ngp_nerf_prop.py
examples/train_ngp_nerf_prop.py
+6
-1
examples/utils.py
examples/utils.py
+0
-1
No files found.
docs/source/conf.py
View file @
27a318da
...
@@ -54,7 +54,10 @@ html_theme_options = {
...
@@ -54,7 +54,10 @@ html_theme_options = {
# dropdown menu containing a list of links.
# dropdown menu containing a list of links.
"menu"
:
[
"menu"
:
[
# A link
# A link
{
"name"
:
"GitHub"
,
"url"
:
"https://github.com/nerfstudio-project/nerfacc"
},
{
"name"
:
"GitHub"
,
"url"
:
"https://github.com/nerfstudio-project/nerfacc"
,
},
# A dropdown menu
# A dropdown menu
# {
# {
# "name": "Projects",
# "name": "Projects",
...
...
examples/train_ngp_nerf_prop.py
View file @
27a318da
...
@@ -276,7 +276,12 @@ for step in range(max_steps + 1):
...
@@ -276,7 +276,12 @@ for step in range(max_steps + 1):
pixels
=
data
[
"pixels"
]
pixels
=
data
[
"pixels"
]
# rendering
# rendering
rgb
,
acc
,
depth
,
_
,
=
render_image_with_propnet
(
(
rgb
,
acc
,
depth
,
_
,
)
=
render_image_with_propnet
(
radiance_field
,
radiance_field
,
proposal_networks
,
proposal_networks
,
estimator
,
estimator
,
...
...
examples/utils.py
View file @
27a318da
...
@@ -329,7 +329,6 @@ def render_image_with_occgrid_test(
...
@@ -329,7 +329,6 @@ def render_image_with_occgrid_test(
opc_thre
=
1
-
early_stop_eps
opc_thre
=
1
-
early_stop_eps
while
iter_samples
<
max_samples
:
while
iter_samples
<
max_samples
:
n_alive
=
ray_mask
.
sum
().
item
()
n_alive
=
ray_mask
.
sum
().
item
()
if
n_alive
==
0
:
if
n_alive
==
0
:
break
break
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment