Skip to content

Instantly share code, notes, and snippets.

@sailfish009
Created January 16, 2020 09:12
Show Gist options
  • Select an option

  • Save sailfish009/171e7670abada84efe34fce4731f0987 to your computer and use it in GitHub Desktop.

Select an option

Save sailfish009/171e7670abada84efe34fce4731f0987 to your computer and use it in GitHub Desktop.
# PILLOW_VERSION has been removed. Use __version__ instead. (7.0.0)
sudo vim /usr/local/lib/python3.6/dist-packages/torchvision/transforms/functional.py +5
from PIL import Image, ImageOps, ImageEnhance, __version__
sudo vim /usr/local/lib/python3.6/dist-packages/torchvision/transforms/functional.py +789
kwargs = {"fillcolor": fillcolor} if __version__[0] >= '5' else {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment