MCPcopy Create free account
hub / github.com/OUCMachineLearning/OUCML / imread

Function imread

GAN/datadownloader/utils.py:34–38  ·  view source on GitHub ↗
(path, is_grayscale = False)

Source from the content-addressed store, hash-verified

32 return (images + 1.) / 2.
33
34def imread(path, is_grayscale = False):
35 if (is_grayscale):
36 return io.imread(path).astype(np.float).flatten()
37 else:
38 return io.imread(path).astype(np.float)
39
40def imsave(images, size, path):
41 return io.imsave(path, merge(images, size))

Callers 1

get_imageFunction · 0.70

Calls 1

imreadMethod · 0.45

Tested by

no test coverage detected