Просмотр исходного кода

Another attempt at pillow fix on colab notebook

Jason Antic 6 лет назад
Родитель
Сommit
8f5f3437bf
1 измененных файлов с 4 добавлено и 13 удалено
  1. 4 13
      DeOldify_colab.ipynb

+ 4 - 13
DeOldify_colab.ipynb

@@ -32,15 +32,6 @@
     "NEW: You can now load your files from you own Drive, check the last cell of the notebook for more information."
    ]
   },
-  {
-   "cell_type": "code",
-   "execution_count": null,
-   "metadata": {},
-   "outputs": [],
-   "source": [
-    "!pip install -Iv Pillow==5.3.0"
-   ]
-  },
   {
    "cell_type": "code",
    "execution_count": null,
@@ -127,7 +118,7 @@
     "pandocfilters>=1.4.2\n",
     "pexpect>=4.2.1\n",
     "pickleshare>=0.7.4\n",
-    "Pillow>=5.3.0\n",
+    "Pillow>=4.0.0\n",
     "prompt-toolkit>=1.0.15\n",
     "Pygments>=2.2.0\n",
     "pyparsing>=2.2.0\n",
@@ -594,7 +585,7 @@
    },
    "outputs": [],
    "source": [
-    "vis.plot_transformed_image('family_TV.jpg', netG, tfms=x_tfms, sz=500)"
+    "vis.plot_transformed_image('family_TV.jpg', netG, tfms=x_tfms, sz=450)"
    ]
   },
   {
@@ -638,7 +629,7 @@
    },
    "outputs": [],
    "source": [
-    "vis.plot_transformed_image('Dorothy.jpg', netG, tfms=x_tfms, sz=500)"
+    "vis.plot_transformed_image('Dorothy.jpg', netG, tfms=x_tfms, sz=450)"
    ]
   },
   {
@@ -682,7 +673,7 @@
    },
    "outputs": [],
    "source": [
-    "vis.plot_transformed_image('butch_and_sundance.jpg', netG, tfms=x_tfms, sz=500)"
+    "vis.plot_transformed_image('butch_and_sundance.jpg', netG, tfms=x_tfms, sz=450)"
    ]
   },
   {