Преглед на файлове

Lowering max render_factor since free Colabs now have lower resources available (doh!)

Jason Antic преди 5 години
родител
ревизия
8cd98250f6
променени са 3 файла, в които са добавени 9 реда и са изтрити 17 реда
  1. 3 6
      ImageColorizerColab.ipynb
  2. 3 6
      ImageColorizerColabStable.ipynb
  3. 3 5
      VideoColorizerColab.ipynb

+ 3 - 6
ImageColorizerColab.ipynb

@@ -207,10 +207,7 @@
     "\n",
     "## Pro Tips\n",
     "\n",
-    "You can evaluate how well the image is rendered at each render_factor by using the code at the bottom (that cell under \"See how well render_factor values perform on a frame here\"). \n",
-    "\n",
-    "## Troubleshooting\n",
-    "If you get a 'CUDA out of memory' error, you probably have the render_factor too high."
+    "You can evaluate how well the image is rendered at each render_factor by using the code at the bottom (that cell under \"See how well render_factor values perform on a frame here\"). "
    ]
   },
   {
@@ -230,7 +227,7 @@
    "outputs": [],
    "source": [
     "source_url = '' #@param {type:\"string\"}\n",
-    "render_factor = 35  #@param {type: \"slider\", min: 7, max: 45}\n",
+    "render_factor = 35  #@param {type: \"slider\", min: 7, max: 40}\n",
     "watermarked = True #@param {type:\"boolean\"}\n",
     "\n",
     "if source_url is not None and source_url !='':\n",
@@ -253,7 +250,7 @@
    "metadata": {},
    "outputs": [],
    "source": [
-    "for i in range(10,45,2):\n",
+    "for i in range(10,40,2):\n",
     "    colorizer.plot_transformed_image('test_images/image.png', render_factor=i, display_render_factor=True, figsize=(8,8))"
    ]
   },

+ 3 - 6
ImageColorizerColabStable.ipynb

@@ -209,10 +209,7 @@
     "\n",
     "## Pro Tips\n",
     "\n",
-    "You can evaluate how well the image is rendered at each render_factor by using the code at the bottom (that cell under \"See how well render_factor values perform on a frame here\"). \n",
-    "\n",
-    "## Troubleshooting\n",
-    "If you get a 'CUDA out of memory' error, you probably have the render_factor too high."
+    "You can evaluate how well the image is rendered at each render_factor by using the code at the bottom (that cell under \"See how well render_factor values perform on a frame here\"). "
    ]
   },
   {
@@ -232,7 +229,7 @@
    "outputs": [],
    "source": [
     "source_url = '' #@param {type:\"string\"}\n",
-    "render_factor = 35  #@param {type: \"slider\", min: 7, max: 45}\n",
+    "render_factor = 35  #@param {type: \"slider\", min: 7, max: 40}\n",
     "watermarked = True #@param {type:\"boolean\"}\n",
     "\n",
     "if source_url is not None and source_url !='':\n",
@@ -255,7 +252,7 @@
    "metadata": {},
    "outputs": [],
    "source": [
-    "for i in range(10,45,2):\n",
+    "for i in range(10,40,2):\n",
     "    colorizer.plot_transformed_image('test_images/image.png', render_factor=i, display_render_factor=True, figsize=(8,8))"
    ]
   },

+ 3 - 5
VideoColorizerColab.ipynb

@@ -220,9 +220,7 @@
     "2. If you don't see the 'DeOldify' folder, click \"Refresh\"\n",
     "3. By default, rendered video will be in /DeOldify/video/result/\n",
     "\n",
-    "If a video you downloaded doesn't play, it's probably because the cell didn't complete processing and the video is in a half-finished state.\n",
-    "\n",
-    "If you get a 'CUDA out of memory' error, you probably have the render_factor too high. The max is 44 on 11GB video cards."
+    "If a video you downloaded doesn't play, it's probably because the cell didn't complete processing and the video is in a half-finished state."
    ]
   },
   {
@@ -242,7 +240,7 @@
    "outputs": [],
    "source": [
     "source_url = '' #@param {type:\"string\"}\n",
-    "render_factor = 21  #@param {type: \"slider\", min: 5, max: 45}\n",
+    "render_factor = 21  #@param {type: \"slider\", min: 5, max: 40}\n",
     "watermarked = True #@param {type:\"boolean\"}\n",
     "\n",
     "if source_url is not None and source_url !='':\n",
@@ -265,7 +263,7 @@
    "metadata": {},
    "outputs": [],
    "source": [
-    "for i in range(10,45,2):\n",
+    "for i in range(10,40,2):\n",
     "    colorizer.vis.plot_transformed_image('video/bwframes/video/00001.jpg', render_factor=i, display_render_factor=True, figsize=(8,8))"
    ]
   },