MCPcopy Create free account
hub / github.com/MiniMax-AI/VTP / make_train_transform

Function make_train_transform

tools/test_linear_probing_hf.py:87–93  ·  view source on GitHub ↗
(crop_size: int = CROP_SIZE)

Source from the content-addressed store, hash-verified

85# ============================================================================
86
87def make_train_transform(crop_size: int = CROP_SIZE) -> transforms.Compose:
88 return transforms.Compose([
89 transforms.RandomResizedCrop(crop_size, interpolation=transforms.InterpolationMode.BICUBIC),
90 transforms.RandomHorizontalFlip(),
91 transforms.ToTensor(),
92 transforms.Normalize(mean=IMAGENET_DEFAULT_MEAN, std=IMAGENET_DEFAULT_STD),
93 ])
94
95
96def make_eval_transform(resize_size: int = RESIZE_SIZE, crop_size: int = CROP_SIZE) -> transforms.Compose:

Callers 1

test_linear_probingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected