April 2020
Intermediate to advanced
438 pages
12h 2m
English
Download the pre-trained torch model for Globally and Locally Consistent Image Completion from http://hi.cs.waseda.ac.jp/~iizuka/data/completionnet_places2.t7.
Then, import the required libraries:
import osimport torchfrom torch import nnfrom torch.nn.Sequential import Sequentialimport cv2import numpy as npfrom torch.utils.serialization import load_luaimport torchvision.utils as vutils
Read now
Unlock full access