Open arbenede opened 3 years ago
It does not happen for me. What is your Julia version and all your package versions?
But I think you may have also omitted the final call?
A similar issue is https://github.com/JuliaMath/Interpolations.jl/issues/430
@SomTambe has some recent experimental work in DiffImages.jl to bring Zygote support to warp
, which might also be worth a try.
Ah, mostly I think we need https://github.com/JuliaGraphics/ColorTypes.jl/issues/131#issuecomment-824544538
I am trying to use ForwardDiff to compute the gradient of a cost function defined as the Sum of Square Differences (SSD) between two images with respect to the parameters of an image transformation. In the code shown below, one of the images has been translated by a small amount. This is basically just a toy problem that I designed to understand if ForwardDiff.jl and ImageTransformations.jl play well together. Eventually, I will compute derivatives relative the parameters of different image warps. Notice that I do not want to compute gradients of the pixel intensities, but, say, the 2x2 Jacobian of the translation, like:
I’m getting this error:
Any ideas?