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

Class RandomIdentitySampler_DDP

datasets/sampler_ddp.py:111–196  ·  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 1

make_dataloaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected