Skip to content

Commit

Permalink
Lowering max render_factor since free Colabs now have lower resources…
Browse files Browse the repository at this point in the history
… available (doh!)
  • Loading branch information
jantic committed Apr 22, 2020
1 parent 6960013 commit 8cd9825
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
9 changes: 3 additions & 6 deletions ImageColorizerColab.ipynb
Expand Up @@ -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\"). "
]
},
{
Expand All @@ -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",
Expand All @@ -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))"
]
},
Expand Down
9 changes: 3 additions & 6 deletions ImageColorizerColabStable.ipynb
Expand Up @@ -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\"). "
]
},
{
Expand All @@ -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",
Expand All @@ -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))"
]
},
Expand Down
8 changes: 3 additions & 5 deletions VideoColorizerColab.ipynb
Expand Up @@ -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."
]
},
{
Expand All @@ -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",
Expand All @@ -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))"
]
},
Expand Down

0 comments on commit 8cd9825

Please sign in to comment.