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

Function accimage_loader

GAN/ACGAN-PyTorch-master/folder.py:61–67  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

59
60
61def accimage_loader(path):
62 import accimage
63 try:
64 return accimage.Image(path)
65 except IOError:
66 # Potentially a decoding problem, fall back to PIL.Image
67 return pil_loader(path)
68
69
70def default_loader(path):

Callers 1

default_loaderFunction · 0.85

Calls 1

pil_loaderFunction · 0.85

Tested by

no test coverage detected