Fix iter
This commit is contained in:
parent
649045ea60
commit
f38216f43d
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
@ -688,6 +688,7 @@ 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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue