For now, why don't we throw a deprecation warning in ImageToTensor with instructions how to get HWC in the future using (fixed) ImageToTensor + PermuteDims?
However, a release including this PR could be considered breaking since it might break users' existing data preprocessing pipelines.
As discussed in https://github.com/FluxML/DataAugmentation.jl/pull/89#issuecomment-1986872309, this PR modifies
ImageToTensor
to returnWHC
arrays instead ofHWC
by default, making it out-of-the box compatible with Flux and Metalhead.jl.@darsnack's previous suggestion was:
However, a release including this PR could be considered breaking since it might break users' existing data preprocessing pipelines.
Related issues: