Undefined 'disps'
ZhaoyangZh opened this issue · 3 comments
Lines 200 to 207 in 085ae25
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:
Lines 372 to 375 in 085ae25
Any ideas on this issue? Thanks in advance.
The depths/disps bug is fixed in #30.
The entropy error seems unrelated to that. Can you please elaborate on the error message you get? Maybe also look at the weights
tensor when the exception is caught in the except
loop.
I met the same question when training, and the error message is:
ValueError: Expected parameter probs of distribution Categorical to satisfy the constraint Simplex(), but found invalid values
update: seems like it happens when sampled points' weights along a ray all equal to zero. just use .entropy as a function rather than through Categorical.entropy
I find weights. sum (-1, keepdim=True)>=1 caused the entropy() to fail.just normalize the weights could solve the problem.