Skip to content

Commit

Permalink
Fix iter
Browse files Browse the repository at this point in the history
  • Loading branch information
yenchenlin committed Apr 24, 2020
1 parent 649045e commit f38216f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions run_nerf.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def create_nerf(args):
print('Reloading from', ckpt_path)
ckpt = torch.load(ckpt_path)

start = ckpt['global_step'] + 1
start = ckpt['global_step']
optimizer.load_state_dict(ckpt['optimizer_state_dict'])

# Load model
Expand Down Expand Up @@ -687,7 +687,8 @@ def train():

# Summary writers
# writer = SummaryWriter(os.path.join(basedir, 'summaries', expname))


start = start + 1
for i in trange(start, N_iters):
time0 = time.time()

Expand Down

0 comments on commit f38216f

Please sign in to comment.