MCPcopy Index your code
hub / github.com/OpenDriveLab/ReSim / build_dataset

Function build_dataset

SwissArmyTransformer/examples/mae/util/datasets.py:20–28  ·  view source on GitHub ↗
(is_train, args)

Source from the content-addressed store, hash-verified

18
19
20def build_dataset(is_train, args):
21 transform = build_transform(is_train, args)
22
23 root = os.path.join(args.data_path, 'train' if is_train else 'val')
24 dataset = datasets.ImageFolder(root, transform=transform)
25
26 print(dataset)
27
28 return dataset
29
30
31def build_transform(is_train, args):

Callers

nothing calls this directly

Calls 2

build_transformFunction · 0.85
printFunction · 0.70

Tested by

no test coverage detected