I’m using Kornia library in order to use some useful functions for my experiments.
However, I get always the same error when I try to compute the image generated by canny filters with another very similar (a simple MSE by PyTorch function).
I looked the code inside Kornia function (canny filter) and I noticed that the required_gradient attribute is empty.
I’m sure to feed a tensor image with gradient set True.
I’m new on Kornia and I will appreciate so much any useful suggestions…
Thanks a lot!
required_gradient is not a tensor attribute, so you might want to replace it with
requires_grad and make sure it’s set to
in principle the canny operator should work with back propagation