SYMBOL INDEX (262 symbols across 37 files) FILE: configs/default_img.py function update_config (line 128) | def update_config(config, args): function get_img_config (line 159) | def get_img_config(args): FILE: configs/default_vid.py function update_config (line 134) | def update_config(config, args): function get_vid_config (line 165) | def get_vid_config(args): FILE: data/__init__.py function get_names (line 30) | def get_names(): function build_dataset (line 34) | def build_dataset(config): function build_img_transforms (line 49) | def build_img_transforms(config): function build_vid_transforms (line 67) | def build_vid_transforms(config): function build_dataloader (line 94) | def build_dataloader(config): FILE: data/dataloader.py class BackgroundGenerator (line 29) | class BackgroundGenerator(threading.Thread): method __init__ (line 38) | def __init__(self, generator, local_rank, max_prefetch=10): method run (line 73) | def run(self): method next (line 81) | def next(self): method __next__ (line 88) | def __next__(self): method __iter__ (line 91) | def __iter__(self): class DataLoaderX (line 95) | class DataLoaderX(DataLoader): method __init__ (line 96) | def __init__(self, **kwargs): method __iter__ (line 102) | def __iter__(self): method _shutdown_background_thread (line 108) | def _shutdown_background_thread(self): method preload (line 124) | def preload(self): method __next__ (line 135) | def __next__(self): method shutdown (line 146) | def shutdown(self): FILE: data/dataset_loader.py function read_image (line 8) | def read_image(img_path): class ImageDataset (line 24) | class ImageDataset(Dataset): method __init__ (line 26) | def __init__(self, dataset, transform=None): method __len__ (line 30) | def __len__(self): method __getitem__ (line 33) | def __getitem__(self, index): function pil_loader (line 41) | def pil_loader(path): function accimage_loader (line 48) | def accimage_loader(path): function get_default_image_loader (line 57) | def get_default_image_loader(): function image_loader (line 65) | def image_loader(path): function video_loader (line 73) | def video_loader(img_paths, image_loader): function get_default_video_loader (line 84) | def get_default_video_loader(): class VideoDataset (line 89) | class VideoDataset(Dataset): method __init__ (line 102) | def __init__(self, method __len__ (line 114) | def __len__(self): method __getitem__ (line 117) | def __getitem__(self, index): FILE: data/datasets/ccvid.py class CCVID (line 14) | class CCVID(object): method __init__ (line 20) | def __init__(self, root='/data/datasets/', sampling_step=64, seq_len=1... method _check_before_run (line 79) | def _check_before_run(self): method _clothes2label_test (line 90) | def _clothes2label_test(self, query_path, gallery_path): method _process_data (line 114) | def _process_data(self, data_path, relabel=False, clothes2label=None): method _densesampling_for_trainingset (line 165) | def _densesampling_for_trainingset(self, dataset, sampling_step=64): method _recombination_for_testset (line 192) | def _recombination_for_testset(self, dataset, seq_len=16, stride=4): FILE: data/datasets/deepchange.py class DeepChange (line 14) | class DeepChange(object): method __init__ (line 23) | def __init__(self, root='data', **kwargs): method _get_names (line 87) | def _get_names(self, fpath): method get_pid2label_and_clothes2label (line 95) | def get_pid2label_and_clothes2label(self, img_names1, img_names2=None): method _check_before_run (line 130) | def _check_before_run(self): method _process_dir (line 145) | def _process_dir(self, home_dir, img_names, clothes2label, pid2label=N... FILE: data/datasets/last.py class LaST (line 14) | class LaST(object): method __init__ (line 25) | def __init__(self, root='data', **kwargs): method get_pid2label_and_clothes2label (line 71) | def get_pid2label_and_clothes2label(self, dir_path): method _check_before_run (line 102) | def _check_before_run(self): method _process_dir (line 117) | def _process_dir(self, dir_path, pid2label=None, clothes2label=None, r... FILE: data/datasets/ltcc.py class LTCC (line 14) | class LTCC(object): method __init__ (line 23) | def __init__(self, root='data', **kwargs): method _check_before_run (line 61) | def _check_before_run(self): method _process_dir_train (line 72) | def _process_dir_train(self, dir_path): method _process_dir_test (line 108) | def _process_dir_test(self, query_path, gallery_path): FILE: data/datasets/prcc.py class PRCC (line 14) | class PRCC(object): method __init__ (line 23) | def __init__(self, root='data', **kwargs): method _check_before_run (line 71) | def _check_before_run(self): method _process_dir_train (line 82) | def _process_dir_train(self, dir_path): method _process_dir_test (line 127) | def _process_dir_test(self, test_path): FILE: data/datasets/vcclothes.py class VCClothes (line 14) | class VCClothes(object): method __init__ (line 23) | def __init__(self, root='data', mode='all', **kwargs): method _check_before_run (line 61) | def _check_before_run(self): method _process_dir_train (line 72) | def _process_dir_train(self): method _process_dir_test (line 109) | def _process_dir_test(self): function VCClothesSameClothes (line 178) | def VCClothesSameClothes(root='data', **kwargs): function VCClothesClothesChanging (line 182) | def VCClothesClothesChanging(root='data', **kwargs): FILE: data/img_transforms.py class ResizeWithEqualScale (line 7) | class ResizeWithEqualScale(object): method __init__ (line 17) | def __init__(self, height, width, interpolation=Image.BILINEAR, fill_c... method __call__ (line 23) | def __call__(self, img): class RandomCroping (line 39) | class RandomCroping(object): method __init__ (line 46) | def __init__(self, p=0.5, interpolation=Image.BILINEAR): method __call__ (line 50) | def __call__(self, img): class RandomErasing (line 73) | class RandomErasing(object): method __init__ (line 88) | def __init__(self, probability = 0.5, sl = 0.02, sh = 0.4, r1 = 0.3, m... method __call__ (line 95) | def __call__(self, img): FILE: data/samplers.py class RandomIdentitySampler (line 10) | class RandomIdentitySampler(Sampler): method __init__ (line 19) | def __init__(self, data_source, num_instances=4): method __iter__ (line 37) | def __iter__(self): method __len__ (line 60) | def __len__(self): class DistributedRandomIdentitySampler (line 64) | class DistributedRandomIdentitySampler(Sampler): method __init__ (line 81) | def __init__(self, data_source, num_instances=4, method __iter__ (line 124) | def __iter__(self): method __len__ (line 157) | def __len__(self): method set_epoch (line 160) | def set_epoch(self, epoch): class DistributedInferenceSampler (line 172) | class DistributedInferenceSampler(Sampler): method __init__ (line 184) | def __init__(self, dataset, rank=None, num_replicas=None): method __iter__ (line 200) | def __iter__(self): method __len__ (line 208) | def __len__(self): FILE: data/spatial_transforms.py class Compose (line 15) | class Compose(object): method __init__ (line 28) | def __init__(self, transforms): method __call__ (line 31) | def __call__(self, img): method randomize_parameters (line 36) | def randomize_parameters(self): class ToTensor (line 41) | class ToTensor(object): method __init__ (line 47) | def __init__(self, norm_value=255): method __call__ (line 50) | def __call__(self, pic): method randomize_parameters (line 92) | def randomize_parameters(self): class Normalize (line 96) | class Normalize(object): method __init__ (line 108) | def __init__(self, mean, std): method __call__ (line 112) | def __call__(self, tensor): method randomize_parameters (line 124) | def randomize_parameters(self): class Scale (line 128) | class Scale(object): method __init__ (line 141) | def __init__(self, size, interpolation=Image.BILINEAR): method __call__ (line 146) | def __call__(self, img): method randomize_parameters (line 168) | def randomize_parameters(self): class RandomHorizontalFlip (line 172) | class RandomHorizontalFlip(object): method __call__ (line 175) | def __call__(self, img): method randomize_parameters (line 186) | def randomize_parameters(self): class RandomCrop (line 190) | class RandomCrop(object): method __init__ (line 199) | def __init__(self, size, p=0.5, interpolation=Image.BILINEAR): method __call__ (line 209) | def __call__(self, img): method randomize_parameters (line 228) | def randomize_parameters(self): class RandomErasing (line 234) | class RandomErasing(object): method __init__ (line 249) | def __init__(self, height=256, width=128, probability = 0.5, sl = 0.02... method __call__ (line 258) | def __call__(self, img): method randomize_parameters (line 270) | def randomize_parameters(self): FILE: data/temporal_transforms.py class TemporalRandomCrop (line 5) | class TemporalRandomCrop(object): method __init__ (line 16) | def __init__(self, size=4, stride=8): method __call__ (line 20) | def __call__(self, frame_indices): class TemporalBeginCrop (line 49) | class TemporalBeginCrop(object): method __init__ (line 60) | def __init__(self, size=8, stride=4): method __call__ (line 64) | def __call__(self, frame_indices): class TemporalDivisionCrop (line 80) | class TemporalDivisionCrop(object): method __init__ (line 86) | def __init__(self, size=4): method __call__ (line 89) | def __call__(self, frame_indices): FILE: losses/__init__.py function build_losses (line 11) | def build_losses(config, num_train_clothes): FILE: losses/arcface_loss.py class ArcFaceLoss (line 7) | class ArcFaceLoss(nn.Module): method __init__ (line 17) | def __init__(self, scale=16, margin=0.1): method forward (line 22) | def forward(self, inputs, targets): FILE: losses/circle_loss.py class CircleLoss (line 8) | class CircleLoss(nn.Module): method __init__ (line 18) | def __init__(self, scale=96, margin=0.3, **kwargs): method forward (line 23) | def forward(self, inputs, targets): class PairwiseCircleLoss (line 43) | class PairwiseCircleLoss(nn.Module): method __init__ (line 53) | def __init__(self, scale=48, margin=0.35, **kwargs): method forward (line 58) | def forward(self, inputs, targets): FILE: losses/clothes_based_adversarial_loss.py class ClothesBasedAdversarialLoss (line 7) | class ClothesBasedAdversarialLoss(nn.Module): method __init__ (line 17) | def __init__(self, scale=16, epsilon=0.1): method forward (line 22) | def forward(self, inputs, targets, positive_mask): class ClothesBasedAdversarialLossWithMemoryBank (line 46) | class ClothesBasedAdversarialLossWithMemoryBank(nn.Module): method __init__ (line 59) | def __init__(self, num_clothes, feat_dim, momentum=0., scale=16, epsil... method forward (line 71) | def forward(self, inputs, targets, positive_mask): method _update_memory (line 109) | def _update_memory(self, features, labels): FILE: losses/contrastive_loss.py class ContrastiveLoss (line 8) | class ContrastiveLoss(nn.Module): method __init__ (line 14) | def __init__(self, scale=16, **kwargs): method forward (line 18) | def forward(self, inputs, targets): FILE: losses/cosface_loss.py class CosFaceLoss (line 8) | class CosFaceLoss(nn.Module): method __init__ (line 18) | def __init__(self, scale=16, margin=0.1, **kwargs): method forward (line 23) | def forward(self, inputs, targets): class PairwiseCosFaceLoss (line 37) | class PairwiseCosFaceLoss(nn.Module): method __init__ (line 47) | def __init__(self, scale=16, margin=0): method forward (line 52) | def forward(self, inputs, targets): FILE: losses/cross_entropy_loss_with_label_smooth.py class CrossEntropyWithLabelSmooth (line 5) | class CrossEntropyWithLabelSmooth(nn.Module): method __init__ (line 16) | def __init__(self, epsilon=0.1): method forward (line 21) | def forward(self, inputs, targets): FILE: losses/gather.py class GatherLayer (line 5) | class GatherLayer(torch.autograd.Function): method forward (line 9) | def forward(ctx, input): method backward (line 17) | def backward(ctx, *grads): FILE: losses/triplet_loss.py class TripletLoss (line 8) | class TripletLoss(nn.Module): method __init__ (line 19) | def __init__(self, margin=0.3): method forward (line 24) | def forward(self, inputs, targets): FILE: main.py function parse_option (line 30) | def parse_option(): function main (line 53) | def main(config): FILE: models/__init__.py function build_model (line 17) | def build_model(config, num_identities, num_clothes): FILE: models/classifier.py class Classifier (line 11) | class Classifier(nn.Module): method __init__ (line 12) | def __init__(self, feature_dim, num_classes): method forward (line 18) | def forward(self, x): class NormalizedClassifier (line 24) | class NormalizedClassifier(nn.Module): method __init__ (line 25) | def __init__(self, feature_dim, num_classes): method forward (line 30) | def forward(self, x): FILE: models/img_resnet.py class ResNet50 (line 7) | class ResNet50(nn.Module): method __init__ (line 8) | def __init__(self, config, **kwargs): method forward (line 32) | def forward(self, x): FILE: models/utils/c3d_blocks.py class APM (line 6) | class APM(nn.Module): method __init__ (line 7) | def __init__(self, in_channels, out_channels, time_dim=3, temperature=... method forward (line 27) | def forward(self, x): class C2D (line 64) | class C2D(nn.Module): method __init__ (line 65) | def __init__(self, conv2d, **kwargs): method forward (line 84) | def forward(self, x): class I3D (line 90) | class I3D(nn.Module): method __init__ (line 91) | def __init__(self, conv2d, time_dim=3, time_stride=1, **kwargs): method forward (line 111) | def forward(self, x): class API3D (line 117) | class API3D(nn.Module): method __init__ (line 118) | def __init__(self, conv2d, time_dim=3, time_stride=1, temperature=4, c... method forward (line 141) | def forward(self, x): class P3DA (line 148) | class P3DA(nn.Module): method __init__ (line 149) | def __init__(self, conv2d, time_dim=3, time_stride=1, **kwargs): method forward (line 186) | def forward(self, x): class P3DB (line 193) | class P3DB(nn.Module): method __init__ (line 194) | def __init__(self, conv2d, time_dim=3, time_stride=1, **kwargs): method forward (line 226) | def forward(self, x): class P3DC (line 237) | class P3DC(nn.Module): method __init__ (line 238) | def __init__(self, conv2d, time_dim=3, time_stride=1, **kwargs): method forward (line 270) | def forward(self, x): class APP3DA (line 278) | class APP3DA(nn.Module): method __init__ (line 279) | def __init__(self, conv2d, time_dim=3, time_stride=1, temperature=4, c... method forward (line 319) | def forward(self, x): class APP3DB (line 326) | class APP3DB(nn.Module): method __init__ (line 327) | def __init__(self, conv2d, time_dim=3, time_stride=1, temperature=4, c... method forward (line 362) | def forward(self, x): class APP3DC (line 370) | class APP3DC(nn.Module): method __init__ (line 371) | def __init__(self, conv2d, time_dim=3, time_stride=1, temperature=4, c... method forward (line 406) | def forward(self, x): FILE: models/utils/inflate.py function inflate_conv (line 7) | def inflate_conv(conv2d, function inflate_linear (line 43) | def inflate_linear(linear2d, time_dim): function inflate_batch_norm (line 58) | def inflate_batch_norm(batch2d): function inflate_pool (line 69) | def inflate_pool(pool2d, class MaxPool2dFor3dInput (line 95) | class MaxPool2dFor3dInput(nn.Module): method __init__ (line 100) | def __init__(self, kernel_size, stride=None, padding=0, dilation=1): method forward (line 103) | def forward(self, x): FILE: models/utils/nonlocal_blocks.py class NonLocalBlockND (line 8) | class NonLocalBlockND(nn.Module): method __init__ (line 9) | def __init__(self, in_channels, inter_channels=None, dimension=3, sub_... method forward (line 82) | def forward(self, x): class NonLocalBlock1D (line 107) | class NonLocalBlock1D(NonLocalBlockND): method __init__ (line 108) | def __init__(self, in_channels, inter_channels=None, sub_sample=True, ... class NonLocalBlock2D (line 115) | class NonLocalBlock2D(NonLocalBlockND): method __init__ (line 116) | def __init__(self, in_channels, inter_channels=None, sub_sample=True, ... class NonLocalBlock3D (line 123) | class NonLocalBlock3D(NonLocalBlockND): method __init__ (line 124) | def __init__(self, in_channels, inter_channels=None, sub_sample=True, ... FILE: models/utils/pooling.py class GeMPooling (line 6) | class GeMPooling(nn.Module): method __init__ (line 7) | def __init__(self, p=3, eps=1e-6): method forward (line 12) | def forward(self, x): class MaxAvgPooling (line 16) | class MaxAvgPooling(nn.Module): method __init__ (line 17) | def __init__(self): method forward (line 22) | def forward(self, x): FILE: models/vid_resnet.py class Bottleneck3D (line 15) | class Bottleneck3D(nn.Module): method __init__ (line 16) | def __init__(self, bottleneck2d, block, inflate_time=False, temperatur... method _inflate_downsample (line 34) | def _inflate_downsample(self, downsample2d, time_stride=1): method forward (line 41) | def forward(self, x): class ResNet503D (line 63) | class ResNet503D(nn.Module): method __init__ (line 64) | def __init__(self, config, block, c3d_idx, nl_idx, **kwargs): method _inflate_reslayer (line 97) | def _inflate_reslayer(self, reslayer2d, c3d_idx, nonlocal_idx=[], nonl... method forward (line 113) | def forward(self, x): function C2DResNet50 (line 137) | def C2DResNet50(config, **kwargs): function AP3DResNet50 (line 144) | def AP3DResNet50(config, **kwargs): function I3DResNet50 (line 151) | def I3DResNet50(config, **kwargs): function AP3DNLResNet50 (line 158) | def AP3DNLResNet50(config, **kwargs): function NLResNet50 (line 165) | def NLResNet50(config, **kwargs): FILE: test.py function concat_all_gather (line 14) | def concat_all_gather(tensors, num_total_examples): function extract_img_feature (line 30) | def extract_img_feature(model, dataloader): function extract_vid_feature (line 50) | def extract_vid_feature(model, dataloader, vid2clip_index, data_length): function test (line 86) | def test(config, model, queryloader, galleryloader, dataset): function test_prcc (line 152) | def test_prcc(model, queryloader_same, queryloader_diff, galleryloader, ... FILE: tools/eval_metrics.py function compute_ap_cmc (line 5) | def compute_ap_cmc(index, good_index, junk_index): function evaluate (line 30) | def evaluate(distmat, q_pids, g_pids, q_camids, g_camids): function evaluate_with_clothes (line 75) | def evaluate_with_clothes(distmat, q_pids, g_pids, q_camids, g_camids, q... FILE: tools/utils.py function set_seed (line 13) | def set_seed(seed=None): function mkdir_if_missing (line 26) | def mkdir_if_missing(directory): function read_json (line 35) | def read_json(fpath): function write_json (line 41) | def write_json(obj, fpath): class AverageMeter (line 47) | class AverageMeter(object): method __init__ (line 52) | def __init__(self): method reset (line 55) | def reset(self): method update (line 61) | def update(self, val, n=1): function save_checkpoint (line 68) | def save_checkpoint(state, is_best, fpath='checkpoint.pth.tar'): function get_logger (line 114) | def get_logger(fpath, local_rank=0, name=''): FILE: train.py function train_cal (line 9) | def train_cal(config, epoch, model, classifier, clothes_classifier, crit... function train_cal_with_memory (line 95) | def train_cal_with_memory(config, epoch, model, classifier, criterion_cl...