MCPcopy Create free account
hub / github.com/TorchSSL/TorchSSL / accimage_loader

Function accimage_loader

datasets/ssl_dataset.py:39–45  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

37
38
39def accimage_loader(path):
40 import accimage
41 try:
42 return accimage.Image(path)
43 except IOError:
44 # Potentially a decoding problem, fall back to PIL.Image
45 return pil_loader(path)
46
47
48def pil_loader(path):

Callers 1

default_loaderFunction · 0.85

Calls 1

pil_loaderFunction · 0.85

Tested by

no test coverage detected