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

Function default_loader

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

Source from the content-addressed store, hash-verified

53
54
55def default_loader(path):
56 from torchvision import get_image_backend
57 if get_image_backend() == 'accimage':
58 return accimage_loader(path)
59 else:
60 return pil_loader(path)
61
62
63class ImagenetDataset(torchvision.datasets.ImageFolder):

Callers

nothing calls this directly

Calls 2

accimage_loaderFunction · 0.85
pil_loaderFunction · 0.85

Tested by

no test coverage detected