|
@@ -2,7 +2,7 @@
|
|
|
"cells": [
|
|
|
{
|
|
|
"cell_type": "code",
|
|
|
- "execution_count": null,
|
|
|
+ "execution_count": 1,
|
|
|
"metadata": {},
|
|
|
"outputs": [],
|
|
|
"source": [
|
|
@@ -12,7 +12,7 @@
|
|
|
},
|
|
|
{
|
|
|
"cell_type": "code",
|
|
|
- "execution_count": null,
|
|
|
+ "execution_count": 2,
|
|
|
"metadata": {},
|
|
|
"outputs": [],
|
|
|
"source": [
|
|
@@ -23,7 +23,7 @@
|
|
|
},
|
|
|
{
|
|
|
"cell_type": "code",
|
|
|
- "execution_count": null,
|
|
|
+ "execution_count": 3,
|
|
|
"metadata": {},
|
|
|
"outputs": [],
|
|
|
"source": [
|
|
@@ -42,23 +42,73 @@
|
|
|
"#Complete list here: https://rg3.github.io/youtube-dl/supportedsites.html. \n",
|
|
|
"#NOTE: Make source_url None to just read from file at ./video/source/[file_name] directly without modification\n",
|
|
|
"source_url= 'https://twitter.com/silentmoviegifs/status/1112256563182489600'\n",
|
|
|
+ "#source_url=None\n",
|
|
|
"file_name = 'TheHighSign1921.mp4'"
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
"cell_type": "code",
|
|
|
- "execution_count": null,
|
|
|
+ "execution_count": 4,
|
|
|
"metadata": {},
|
|
|
- "outputs": [],
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "name": "stderr",
|
|
|
+ "output_type": "stream",
|
|
|
+ "text": [
|
|
|
+ "/media/jason/Projects/Deep Learning/DeOldifyV2/DeOldify/fastai/data_block.py:426: UserWarning: Your training set is empty. If this is by design, pass `ignore_empty=True` to remove this warning.\n",
|
|
|
+ " warn(\"Your training set is empty. If this is by design, pass `ignore_empty=True` to remove this warning.\")\n",
|
|
|
+ "/media/jason/Projects/Deep Learning/DeOldifyV2/DeOldify/fastai/data_block.py:429: UserWarning: Your validation set is empty. If this is by design, use `no_split()`\n",
|
|
|
+ " or pass `ignore_empty=True` when labelling to remove this warning.\n",
|
|
|
+ " or pass `ignore_empty=True` when labelling to remove this warning.\"\"\")\n"
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ],
|
|
|
"source": [
|
|
|
"colorizer = get_video_colorizer(render_factor=render_factor)"
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
"cell_type": "code",
|
|
|
- "execution_count": null,
|
|
|
+ "execution_count": 5,
|
|
|
"metadata": {},
|
|
|
- "outputs": [],
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "data": {
|
|
|
+ "text/html": [
|
|
|
+ "\n",
|
|
|
+ " <div>\n",
|
|
|
+ " <style>\n",
|
|
|
+ " /* Turns off some styling */\n",
|
|
|
+ " progress {\n",
|
|
|
+ " /* gets rid of default border in Firefox and Opera. */\n",
|
|
|
+ " border: none;\n",
|
|
|
+ " /* Needs to be in here for Safari polyfill so background images work as expected. */\n",
|
|
|
+ " background-size: auto;\n",
|
|
|
+ " }\n",
|
|
|
+ " .progress-bar-interrupted, .progress-bar-interrupted::-webkit-progress-bar {\n",
|
|
|
+ " background: #F44336;\n",
|
|
|
+ " }\n",
|
|
|
+ " </style>\n",
|
|
|
+ " <progress value='92' class='' max='92', style='width:300px; height:20px; vertical-align: middle;'></progress>\n",
|
|
|
+ " 100.00% [92/92 00:13<00:00]\n",
|
|
|
+ " </div>\n",
|
|
|
+ " "
|
|
|
+ ],
|
|
|
+ "text/plain": [
|
|
|
+ "<IPython.core.display.HTML object>"
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "metadata": {},
|
|
|
+ "output_type": "display_data"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "stdout",
|
|
|
+ "output_type": "stream",
|
|
|
+ "text": [
|
|
|
+ "Video created here: video/result/TheHighSign1921.mp4\n"
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ],
|
|
|
"source": [
|
|
|
"if source_url is not None:\n",
|
|
|
" colorizer.colorize_from_url(source_url, file_name)\n",
|