MCPcopy Create free account
hub / github.com/MetaSLAM/SphereVLAD / make_collate_fn

Function make_collate_fn

dataloader/utils.py:1–16  ·  view source on GitHub ↗

Generate Collate_functions Args: config (class): parameter configurations

(config)

Source from the content-addressed store, hash-verified

1def make_collate_fn(config):
2 """Generate Collate_functions
3
4 Args:
5 config (class): parameter configurations
6 """
7 def collate_fn(batch):
8 """Collate_functions
9
10 Args:
11 batch (list): input batch for training
12 """
13 if config.TRAINING.IS_TRAIN and config.TRAINING.BATCH.BATCH_TRANSFORM:
14 pass
15 return batch
16 return collate_fn

Callers 1

make_data_loaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected