Okay @mike.moloch @muellerzr I’ve figured out what the problem is. The Pillow package removed the Resampling
enum (as well as other enums) at some point, I’m guessing possibly around 7.1.2. These enums were reintroduced in an MR for 9.1.0 (you can view the pull request here).
So the solution in Colab is to preface the fastai vision import with:
!pip install Pillow=9.1.0
This will require a runtime restart, which is quite annoying, but if you run PIL.__version__
and it’s on 9.1.0 the imports should work. Maybe just confirm on your side that I’m correct, then I can mark this as the solution. Thanks to you both!