bennyguo / instant-nsr-pl

Neural Surface reconstruction based on Instant-NGP. Efficient and customizable boilerplate for your research projects. Train NeuS in 10min!
MIT License
857 stars 84 forks source link

ZeroDivisionError: division by zero #129

Open david-samer opened 7 months ago

david-samer commented 7 months ago

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
david-samer commented 7 months ago

print statements output for tracing :

Screenshot 2024-04-07 051803
weihan1 commented 4 months ago

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?

songsenIng commented 2 months ago

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