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
52512811
Commit
52512811
authored
Nov 12, 2022
by
Ruilong Li
Browse files
training works just slow
parent
2e7ad6e0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
examples/train_ngp_nerf_proposal.py
examples/train_ngp_nerf_proposal.py
+2
-2
nerfacc/ray_marching.py
nerfacc/ray_marching.py
+1
-1
No files found.
examples/train_ngp_nerf_proposal.py
View file @
52512811
...
...
@@ -204,7 +204,7 @@ if __name__ == "__main__":
subject_id
=
args
.
scene
,
root_fp
=
data_root_fp
,
split
=
args
.
train_split
,
num_rays
=
target_sample_batch_size
//
render_n_samples
,
num_rays
=
target_sample_batch_size
//
32
,
**
train_dataset_kwargs
,
)
...
...
@@ -262,7 +262,7 @@ if __name__ == "__main__":
hidden_dim
=
16
,
max_res
=
64
,
geo_feat_dim
=
0
,
n_levels
=
5
,
n_levels
=
2
,
log2_hashmap_size
=
17
,
),
# NGPradianceField(
...
...
nerfacc/ray_marching.py
View file @
52512811
...
...
@@ -195,7 +195,7 @@ def ray_marching(
if
proposal_nets
is
not
None
:
proposal_sample_list
=
[]
# resample with proposal nets
for
net
,
num_samples
in
zip
(
proposal_nets
,
[
48
]):
for
net
,
num_samples
in
zip
(
proposal_nets
,
[
32
]):
ray_indices
=
unpack_info
(
packed_info
)
with
torch
.
enable_grad
():
sigmas
=
sigma_fn
(
t_starts
,
t_ends
,
ray_indices
.
long
(),
net
=
net
)
...
...
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