Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nerf-pytorch
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songxinkai
nerf-pytorch
Commits
f38216f4
Commit
f38216f4
authored
Apr 24, 2020
by
Yen-Chen Lin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix iter
parent
649045ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
run_nerf.py
+3
-2
No files found.
run_nerf.py
View file @
f38216f4
...
@@ -224,7 +224,7 @@ def create_nerf(args):
...
@@ -224,7 +224,7 @@ def create_nerf(args):
print
(
'Reloading from'
,
ckpt_path
)
print
(
'Reloading from'
,
ckpt_path
)
ckpt
=
torch
.
load
(
ckpt_path
)
ckpt
=
torch
.
load
(
ckpt_path
)
start
=
ckpt
[
'global_step'
]
+
1
start
=
ckpt
[
'global_step'
]
optimizer
.
load_state_dict
(
ckpt
[
'optimizer_state_dict'
])
optimizer
.
load_state_dict
(
ckpt
[
'optimizer_state_dict'
])
# Load model
# Load model
...
@@ -687,7 +687,8 @@ def train():
...
@@ -687,7 +687,8 @@ def train():
# Summary writers
# Summary writers
# writer = SummaryWriter(os.path.join(basedir, 'summaries', expname))
# writer = SummaryWriter(os.path.join(basedir, 'summaries', expname))
start
=
start
+
1
for
i
in
trange
(
start
,
N_iters
):
for
i
in
trange
(
start
,
N_iters
):
time0
=
time
.
time
()
time0
=
time
.
time
()
...
...
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