-
-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pre-trained model tutorials don't permute image height and width channels #275
Comments
This is a tricky one because interop requirements pull us in conflicting directions. You've identified how Julia image libraries expect What can't be worked around is interop on pretrained weights. Those come from Python libraries, and Python libraries are using |
This confused me a bit. I thought all Metalhead models expect |
To clarify, data stored as In practice, some models may be able to work with |
Ok, then maybe I didn't clarify my issue well enough:
This could be addressed by adding a call to |
Thanks, it wasn't clear to me whether the "bugfix" being proposed was simply a docs tweak or something larger. |
The doc page on Working with pre-trained models from Metalhead uses DataAugmentations to crop and normalize an image, however DataAugmentations.jl creates arrays of shape
HWC
instead of theWHCN
format required by Flux.jl.Related issue: FluxML/DataAugmentation.jl#56 (comment)
The text was updated successfully, but these errors were encountered: