Hello, I recently tried to add depth KL scatter loss to my own project, and found the core code corresponding to this section was then found to be here https://github.com/dunbar12138/DSNeRF/blob/d9deb70ac1464348aebbe5e32fc98aeca1920f70/loss.py#L87
But in my actual use I found a problem that the weights will often be 0
So when calculating the loss, if you put the weights directly into the log function, this can easily result in results with inf
But I looked at the code and found that there was nothing to prevent this situation
So I would like to ask guys if anyone has encountered this situation, and I think a very small number can be added to the weights to prevent this as follows:
Hello, I recently tried to add depth KL scatter loss to my own project, and found the core code corresponding to this section was then found to be here https://github.com/dunbar12138/DSNeRF/blob/d9deb70ac1464348aebbe5e32fc98aeca1920f70/loss.py#L87 But in my actual use I found a problem that the weights will often be 0 So when calculating the loss, if you put the weights directly into the log function, this can easily result in results with inf But I looked at the code and found that there was nothing to prevent this situation
So I would like to ask guys if anyone has encountered this situation, and I think a very small number can be added to the weights to prevent this as follows:
Sorry for disturbing you and hope to receive an answer, thans a lot (^▽^) !