Sfoglia il codice sorgente

One more fix/hack then I think this Colab pillow nightmare is over!

Jason Antic 6 anni fa
parent
commit
97451dfd7b
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      DeOldify_colab.ipynb

+ 2 - 2
DeOldify_colab.ipynb

@@ -258,7 +258,7 @@
    "metadata": {},
    "outputs": [],
    "source": [
-    "!pip install Pillow==4.0.0"
+    "!pip install Pillow==4.1.1"
    ]
   },
   {
@@ -425,7 +425,7 @@
     "from pathlib import Path\n",
     "from itertools import repeat\n",
     "from google.colab import drive\n",
-    "from PIL import Image\n",
+    "from IPython.display import Image\n",
     "import tensorboardX\n",
     "torch.cuda.set_device(0)\n",
     "plt.style.use('dark_background')\n",