Open In Colab

!wget https://raw.githubusercontent.com/awarischool/br-data-science/master/image-colorizer/deoldify_wrapper.py
--2020-11-17 02:08:03--  https://raw.githubusercontent.com/awarischool/br-data-science/master/image-colorizer/deoldify_wrapper.py
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2623 (2.6K) [text/plain]
Saving to: ‘deoldify_wrapper.py.1’

deoldify_wrapper.py 100%[===================>]   2.56K  --.-KB/s    in 0s      

2020-11-17 02:08:03 (44.8 MB/s) - ‘deoldify_wrapper.py.1’ saved [2623/2623]

from deoldify_wrapper import DeOldify
deo = DeOldify ()
  Initializing Colorizer
/usr/local/lib/python3.6/dist-packages/fastai/data_block.py:442: UserWarning: Your training set is empty. If this is by design, pass `ignore_empty=True` to remove this warning.
  warn("Your training set is empty. If this is by design, pass `ignore_empty=True` to remove this warning.")
/usr/local/lib/python3.6/dist-packages/fastai/data_block.py:445: UserWarning: Your validation set is empty. If this is by design, use `split_none()`
                 or pass `ignore_empty=True` when labelling to remove this warning.
  or pass `ignore_empty=True` when labelling to remove this warning.""")
Done!
deo.colorize ("https://preview.redd.it/e8knsdr5iby51.jpg?width=640&height=894&crop=smart&auto=webp&s=4d35e6542f5f5316c60a428693109f9529603f25")