ImageTransformations.jl icon indicating copy to clipboard operation
ImageTransformations.jl copied to clipboard

Support for autodiff in warping?

Open rakshith95 opened this issue 1 year ago • 0 comments

Hello, I use the warp function as part of my loss function for which I need to compute a Jacobian. I've tried ForwardDiff, and Zygote, and both seem to throw errors during the warp call.

In the case of ForwardDiff, I get a stack overflow error, and in the case of Zygote, I get the following:

ERROR: MethodError: no method matching iterate(::Nothing)
Closest candidates are:
  iterate(::Union{LinRange, StepRangeLen}) at range.jl:872
  iterate(::Union{LinRange, StepRangeLen}, ::Integer) at range.jl:872
  iterate(::T) where T<:Union{Base.KeySet{<:Any, <:Dict}, Base.ValueIterator{<:Dict}} at dict.jl:712

Do you have any ideas on what I can do to get warp working with autodiff?

rakshith95 avatar Feb 06 '23 12:02 rakshith95