sobel-operator-pytorch
sobel-operator-pytorch copied to clipboard
Add epsilon
Hi, thanks for the code. you need to add to the sqrt, small number epsilon. Otherwise you will get in the backpropogation nan values. https://github.com/chaddy1004/sobel-operator-pytorch/blob/eca741aafbcef9d2639acedca10b09bbfa100e09/model.py#L20