April 2020
Intermediate to advanced
438 pages
12h 2m
English
First, download the pre-trained Caffe model from https://github.com/richzhang/colorization/tree/master/colorization/models (for example, the colorization_deploy_v2.prototxt and .caffemodel files) and https://github.com/richzhang/colorization/blob/master/colorization/resources/pts_in_hull.npy. Import all the necessary packages using the following code block:
import numpy as npimport cv2import matplotlib.pyplot as pltimport imutils
Read now
Unlock full access