Assume input images are 128x128 (including segmentations) and extract layers from the backbone ResNet50.
While calculating the loss values with Flux.dice_coeff_loss function, I got this error: “ERROR: MethodError: objects of type NTuple{4, Int64} are not callable.” Why did I get the error, and what does it mean?
ERROR: MethodError: objects of type NTuple{4, Int64} are not callable
Stacktrace:
[1] macro expansion
@ ~/.julia/packages/Zygote/ytjqm/src/compiler/interface2.jl:0 [inlined]
[2] _pullback(ctx::Zygote.Context, f::NTuple{4, Int64}, args::Array{Float32, 4})
@ Zygote ~/.julia/packages/Zygote/ytjqm/src/compiler/interface2.jl:9
[3] macro expansion
@ ~/.julia/packages/Flux/18YZE/src/layers/basic.jl:53 [inlined]
[4] _pullback
@ ~/.julia/packages/Flux/18YZE/src/layers/basic.jl:53 [inlined]