Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix broken
ImageRescaleWrapper
due to PIL's resize()
change.
PIL 10.4.0's `Image.resize()` behavior causes a breakage in `ImageRescaleWrapper` due to the way numpy arrays are compared. In particular, in 10.3.0 the `size` argument was cast to a `tuple`, but not in 10.4.0 (see [changes](python-pillow/Pillow@10.3.0...10.4.0)). This has since been [reinstated](python-pillow/Pillow@936012e), but it did not make it to the 10.4.0 release. We can still change our code though, so we now simply pass a `tuple` instead of an `np.array`. PiperOrigin-RevId: 651877307
- Loading branch information