MCPcopy Create free account
hub / github.com/nywang16/Pixel2Mesh / load_image

Function load_image

demo.py:55–62  ·  view source on GitHub ↗
(img_path)

Source from the content-addressed store, hash-verified

53model = GCN(placeholders, logging=True)
54
55def load_image(img_path):
56 img = io.imread(img_path)
57 if img.shape[2] == 4:
58 img[np.where(img[:,:,3]==0)] = 255
59 img = transform.resize(img, (224,224))
60 img = img[:,:,:3].astype('float32')
61
62 return img
63
64# Load data, initialize session
65config=tf.ConfigProto()

Callers 1

demo.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected