MCPcopy Create free account
hub / github.com/SwinTransformer/Transformer-SSL / accimage_loader

Function accimage_loader

data/cached_image_folder.py:192–198  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

190
191
192def accimage_loader(path):
193 import accimage
194 try:
195 return accimage.Image(path)
196 except IOError:
197 # Potentially a decoding problem, fall back to PIL.Image
198 return pil_loader(path)
199
200
201def default_img_loader(path):

Callers 1

default_img_loaderFunction · 0.85

Calls 1

pil_loaderFunction · 0.85

Tested by

no test coverage detected