From a21471c2ec777b4e185fd14952ed80a96497fc18 Mon Sep 17 00:00:00 2001 From: Chuan-Zheng Lee Date: Sat, 24 Jul 2021 14:22:26 +1200 Subject: [PATCH] Lock Pillow to version 8.2.0 There's currently a bug that interferes with the .to_tensor() function in torch. see: https://github.com/pytorch/pytorch/issues/61125#issuecomment-872624273 and: https://github.com/python-pillow/Pillow/pull/5572 --- requirements.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/requirements.txt b/requirements.txt index 0d0420f..2296bd3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,6 +4,11 @@ numpy coloredlogs psutil +# Override Pillow version until a bug is fixed +# see: https://github.com/pytorch/pytorch/issues/61125#issuecomment-872624273 +# and: https://github.com/python-pillow/Pillow/pull/5572 +pillow==8.2.0 + # these packages are only needed to run the Jupyter notebooks jupyterlab matplotlib