MCPcopy Create free account
hub / github.com/CDTrans/CDTrans / RandomIdentitySampler

Class RandomIdentitySampler

datasets/sampler.py:7–68  ·  view source on GitHub ↗

Randomly sample N identities, then for each identity, randomly sample K instances, therefore batch size is N*K. Args: - data_source (list): list of (img_path, pid, camid). - num_instances (int): number of instances per identity in a batch. - batch_size (int): number of examp

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

make_dataloaderFunction · 0.85
make_dataloader_PseudoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected