|
disps = np.stack(disps, 0) |
|
if gt_imgs is not None and render_factor==0: |
|
avg_psnr = sum(psnrs)/len(psnrs) |
|
print("Avg PSNR over Test set: ", avg_psnr) |
|
with open(os.path.join(savedir, "test_psnrs_avg{:0.2f}.pkl".format(avg_psnr)), "wb") as fp: |
|
pickle.dump(psnrs, fp) |
|
|
|
return rgbs, disps |
Variable disps is undefined here, do you mean depths? I tried to replace disps with depths and run python run_nerf.py --config configs/chair.txt --finest_res 512 --log2_hashmap_size 19 --lrate 0.01 --lrate_decay 10, but got exception at the entropy calculation:
|
try: |
|
entropy = Categorical(probs = torch.cat([weights, 1.0-weights.sum(-1, keepdim=True)+1e-6], dim=-1)).entropy() |
|
except: |
|
pdb.set_trace() |
Any ideas on this issue? Thanks in advance.
HashNeRF-pytorch/run_nerf.py
Lines 200 to 207 in 085ae25
Variable
dispsis undefined here, do you meandepths? I tried to replacedispswithdepthsand runpython run_nerf.py --config configs/chair.txt --finest_res 512 --log2_hashmap_size 19 --lrate 0.01 --lrate_decay 10, but got exception at the entropy calculation:HashNeRF-pytorch/run_nerf.py
Lines 372 to 375 in 085ae25
Any ideas on this issue? Thanks in advance.