MCPcopy Create free account
hub / github.com/CausalLearning/robust-unlearnable-examples / datasetImageNet

Function datasetImageNet

utils/imagenet_utils.py:130–133  ·  view source on GitHub ↗
(root='./data', train=True, transform=None)

Source from the content-addressed store, hash-verified

128
129
130def datasetImageNet(root='./data', train=True, transform=None):
131 if train: root = os.path.join(root, 'ILSVRC2012_img_train')
132 else: root = os.path.join(root, 'ILSVRC2012_img_val')
133 return torchvision.datasets.ImageFolder(root=root, transform=transform)
134
135
136def datasetImageNetMini(root='./data', train=True, transform=None):

Callers 2

datasetImageNetMiniFunction · 0.85
get_datasetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected