MCPcopy
hub / github.com/DingXiaoH/RepVGG / default_img_loader

Function default_img_loader

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

Source from the content-addressed store, hash-verified

191
192
193def default_img_loader(path):
194 from torchvision import get_image_backend
195 if get_image_backend() == 'accimage':
196 return accimage_loader(path)
197 else:
198 return pil_loader(path)
199
200
201class CachedImageFolder(DatasetFolder):

Callers

nothing calls this directly

Calls 2

accimage_loaderFunction · 0.85
pil_loaderFunction · 0.85

Tested by

no test coverage detected