bennyguo/instant-nsr-pl

ZeroDivisionError: division by zero

david-samer opened this issue · 3 comments

While running any of the training DTU commands i get a dividing by zero error in the neus.py file

# train NeuS on DTU without mask
python launch.py --config configs/neus-dtu.yaml --gpu 0 --train
# train NeuS on DTU with mask
python launch.py --config configs/neus-dtu-wmask.yaml --gpu 0 --train
# train NeuS on DTU with mask using tricks from Neuralangelo (experimental)
python launch.py --config configs/neuralangelo-dtu-wmask.yaml --gpu 0 --train
Screenshot 2024-04-07 051058

print statements output for tracing :
Screenshot 2024-04-07 051803

this occurs when there are no points being sampled during ray marching. you probably need to investigate training - have u tried visualizing the rendered images during validation?

Hello, I also encountered the same problem, may I ask you to solve it?