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

Function default_loader

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

Source from the content-addressed store, hash-verified

68
69
70def default_loader(path):
71 from torchvision import get_image_backend
72 if get_image_backend() == 'accimage':
73 return accimage_loader(path)
74 else:
75 return pil_loader(path)
76
77
78class ImageFolder(data.Dataset):

Callers

nothing calls this directly

Calls 2

accimage_loaderFunction · 0.85
pil_loaderFunction · 0.85

Tested by

no test coverage detected