Widget initialize deoldify

Hello, I am trying to run a local copy of DeOldify. I have everything setup, but my widgets are not rendering. I don’t have any errors, I just don’t see the widgets. I downloaded the Google Colab file and here is an example of a block with widgets:

{
“cell_type”: “code”,
“execution_count”: null,
“metadata”: {},
“outputs”: [],
“source”: [
“source_url = ‘’ #@param {type:“string”}\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”,
" video_path = colorizer.colorize_from_url(source_url, ‘video.mp4’, render_factor, watermarked=watermarked)\n",
" show_video_in_notebook(video_path)\n",
“else:\n”,
" print(‘Provide a video url and try again.’)"
]
},

But I don’t know enough about this to know if that’s enough to initialize the widget. I enabled the extension manager and turned on the webgui_jupyter_widgets extension but it didn’t help.

Here is a link to the Google Colab site where all of the widgets work. Google Colaboratory

I’m on Ubuntu 20, but I also tried with 18 and I had the same results. Thank You very much for any help.

Those widgets seem Colab-specific (namely Colab Forms).

I see that the deoldify repo has VideoColorizerColab.ipynb and VideoColorizer.ipynb. Maybe you should try using that second one?
Or just edit the parameter values in the cell without any widgets.

2 Likes