MCPcopy Create free account

hub / github.com/CDTrans/CDTrans / functions

Functions356 in github.com/CDTrans/CDTrans

↓ 1 callersFunctionhard_example_mining
For each anchor, find the hardest positive and negative sample. Args: dist_mat: pytorch Variable, pair wise distance between samples, shape
loss/triplet_loss.py:51
↓ 1 callersMethodload_param_finetune
(self, model_path)
model/make_model.py:260
↓ 1 callersMethodload_param_finetune
(self, model_path)
model/make_model.py:383
↓ 1 callersFunctionmake_loss
(cfg, num_classes)
loss/make_loss.py:14
↓ 1 callersFunctionmake_optimizer
(cfg, model, center_criterion)
solver/make_optimizer.py:4
↓ 1 callersFunctionmkdir_if_missing
(directory)
utils/iotools.py:14
↓ 1 callersFunctionnormalize
Normalizing to unit length along the specified dimension. Args: x: pytorch Variable Returns: x: pytorch Variable, same shape as in
loss/triplet_loss.py:5
↓ 1 callersFunctionobtain_label
(logger, val_loader, model, distance='cosine', threshold=0)
processor/processor_uda.py:32
↓ 1 callersMethodprint_dataset_statistics
(self, train, valid)
datasets/office_home.py:59
↓ 1 callersMethodprint_dataset_statistics
(self, train, test)
datasets/domainnet.py:64
↓ 1 callersMethodprint_dataset_statistics
(self, train, test)
datasets/office.py:64
↓ 1 callersFunctionrand_augment_ops
(magnitude=10, hparams=None, transforms=None)
datasets/autoaugment.py:603
↓ 1 callersMethodreset_parameters
(self)
loss/arcface.py:28
↓ 1 callersMethodreset_parameters
(self)
loss/arcface.py:62
↓ 1 callersMethodreset_parameters
(self)
loss/metric_learning.py:55
↓ 1 callersFunctionresize_pos_embed
(posemb, posemb_new, hight, width)
model/backbones/vit_pytorch.py:654
↓ 1 callersFunctionresize_pos_embed
(posemb, posemb_new, hight, width)
model/backbones/vit_pytorch_uda.py:566
↓ 1 callersFunctionresnet101_ibn_a
Constructs a ResNet-101 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
model/backbones/resnet_ibn_a.py:179
↓ 1 callersFunctionresnet50_ibn_a
Constructs a ResNet-50 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
model/backbones/resnet_ibn_a.py:168
↓ 1 callersMethodsample_list
(self)
datasets/sampler_ddp.py:171
↓ 1 callersFunctionse_resnet101_ibn_a
Constructs a ResNet-101 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
model/backbones/se_resnet_ibn_a.py:208
↓ 1 callersFunctionset_seed
(seed)
train.py:18
↓ 1 callersFunctionshared_random_seed
Returns: int: a random number that is the same across all workers. If workers need a shared RNG, they can use this shared see
datasets/sampler_ddp.py:99
↓ 1 callersMethodtrack_ranking
(self, qf, gf, gallery_tids, unique_tids)
utils/metrics.py:333
↓ 1 callersMethodtrack_ranking
(self, qf, gf, gallery_tids, unique_tids)
utils/metrics.py:421
↓ 1 callersFunctiontransform
(x, y, matrix)
datasets/autoaugment.py:109
↓ 1 callersFunctionupdate_feat
(cfg, epoch, model, train_loader1,train_loader2, device,feat_memory1,feat_memory2, label_memory1,label_memory2
processor/processor_uda.py:96
Method__call__
(self, img)
datasets/preprocessing.py:24
Method__call__
(self, img)
datasets/autoaugment.py:337
Method__call__
(self, img)
datasets/autoaugment.py:500
Method__call__
(self, img)
datasets/autoaugment.py:616
Method__call__
(self, img)
datasets/autoaugment.py:753
Method__call__
(self, bn_feat, targets)
loss/arcface.py:65
Method__call__
(self, bn_feat, targets)
loss/metric_learning.py:58
Method__call__
(self, global_feat, labels, normalize_feature=False)
loss/triplet_loss.py:121
Method__getitem__
(self, index)
datasets/bases.py:78
Method__init__
(self)
utils/meter.py:4
Method__init__
(self, logger, dataset='office-home')
utils/metrics.py:131
Method__init__
(self, num_query, max_rank=50, feat_norm=True, reranking=False)
utils/metrics.py:190
Method__init__
(self, num_query, max_rank=50, feat_norm=True, reranking=False)
utils/metrics.py:234
Method__init__
(self, cfg, num_query, max_rank=50, feat_norm=False, reranking=False)
utils/metrics.py:263
Method__init__
(self, num_query, max_rank=50, feat_norm=True)
utils/metrics.py:400
Method__init__
(self, num_query, max_rank=50, feat_norm=True, reranking=False, reranking_track=False)
utils/metrics.py:470
Method__init__
(self, num_classes, camera_num, view_num, cfg, factory)
model/make_model.py:165
Method__init__
(self, num_classes, camera_num, view_num, cfg, factory)
model/make_model.py:272
Method__init__
(self, inplanes, planes, ibn=False, stride=1, downsample=None)
model/backbones/resnet_ibn_a.py:38
Method__init__
(self, last_stride, block, layers, frozen_stages=-1,num_classes=1000)
model/backbones/resnet_ibn_a.py:79
Method__init__
(self, inplanes, planes, stride=1, downsample=None, reduction=16)
model/backbones/se_resnet_ibn_a.py:33
Method__init__
(self, inplanes, planes, stride=1, downsample=None, ibn=False, reduction=16)
model/backbones/se_resnet_ibn_a.py:66
Method__init__
(self, last_stride,block, layers, frozen_stages=-1, num_classes=1000)
model/backbones/se_resnet_ibn_a.py:108
Method__init__
(self, drop_prob=None)
model/backbones/vit_pytorch.py:67
Method__init__
(self, dim, num_heads=8, qkv_bias=False, qk_scale=None, attn_drop=0., proj_drop=0.)
model/backbones/vit_pytorch.py:141
Method__init__
(self, dim, num_heads, mlp_ratio=4., qkv_bias=False, qk_scale=None, drop=0., attn_drop=0., dr
model/backbones/vit_pytorch.py:172
Method__init__
(self, img_size=224, patch_size=16, in_chans=3, embed_dim=768)
model/backbones/vit_pytorch.py:193
Method__init__
(self, backbone, img_size=224, feature_size=None, in_chans=3, embed_dim=768)
model/backbones/vit_pytorch.py:216
Method__init__
(self, img_size=224, patch_size=16, in_chans=3, num_classes=1000, embed_dim=768, depth=12, nu
model/backbones/vit_pytorch.py:249
Method__init__
(self, img_size=224, patch_size=16, in_chans=3, num_classes=1000, embed_dim=768, depth=12, nu
model/backbones/vit_pytorch.py:366
Method__init__
(self, img_size=224, patch_size=16, stride_size=20, in_chans=3, embed_dim=768)
model/backbones/vit_pytorch.py:488
Method__init__
(self, img_size=224, patch_size=16, stride_size=16, in_chans=3, num_classes=1000, embed_dim=768, depth=12,
model/backbones/vit_pytorch.py:529
Method__init__
(self, drop_prob=None)
model/backbones/vit_pytorch_uda.py:67
Method__init__
(self, dim, num_heads=8, qkv_bias=False, qk_scale=None, attn_drop=0., proj_drop=0.)
model/backbones/vit_pytorch_uda.py:140
Method__init__
(self, dim, num_heads, mlp_ratio=4., qkv_bias=False, qk_scale=None, drop=0., attn_drop=0., dr
model/backbones/vit_pytorch_uda.py:211
Method__init__
(self, img_size=224, patch_size=16, in_chans=3, embed_dim=768)
model/backbones/vit_pytorch_uda.py:245
Method__init__
(self, backbone, img_size=224, feature_size=None, in_chans=3, embed_dim=768)
model/backbones/vit_pytorch_uda.py:269
Method__init__
(self, img_size=224, patch_size=16, stride_size=20, in_chans=3, embed_dim=768)
model/backbones/vit_pytorch_uda.py:305
Method__init__
(self, img_size=224, patch_size=16, stride_size=20, in_chans=3, conv_channel= [24, 48, 96, 192], embed_dim=768
model/backbones/vit_pytorch_uda.py:344
Method__init__
(self, img_size=224, patch_size=16, stride_size=16, in_chans=3, num_classes=1000, embed_dim=768, depth=12,
model/backbones/vit_pytorch_uda.py:384
Method__init__
(self, channel, reduction=16)
model/backbones/se_module.py:5
Method__init__
(self, inplanes, planes, stride=1, downsample=None)
model/backbones/resnet.py:16
Method__init__
(self, inplanes, planes, stride=1, downsample=None)
model/backbones/resnet.py:48
Method__init__
(self, optimizer: torch.optim.Optimizer, param_group_field: str,
solver/scheduler.py:21
Method__init__
(self, optimizer: torch.optim.Optimizer, t_initial: int, t_
solver/cosine_lr.py:23
Method__init__
( self, optimizer, milestones, # steps gamma=0.1,
solver/lr_scheduler.py:16
Method__init__
(self, root_train='./datasets/reid_datasets/Corrected_Market1501', root_val='./datasets/reid_datasets/Correcte
datasets/office_home.py:21
Method__init__
(self, dataset, transform=None)
datasets/bases.py:71
Method__init__
(self, probability=0.5, sl=0.02, sh=0.4, r1=0.3, mean=(0.4914, 0.4822, 0.4465))
datasets/preprocessing.py:17
Method__init__
(self, root_train='./datasets/reid_datasets/Corrected_Market1501', root_val='./datasets/reid_datasets/Correcte
datasets/visda.py:21
Method__init__
(self, root_train='./datasets/reid_datasets/Corrected_Market1501', root_val='./datasets/reid_datasets/Correcte
datasets/domainnet.py:21
Method__init__
(self, root_train='./datasets/reid_datasets/Corrected_Market1501', root_val='./datasets/reid_datasets/Correcte
datasets/office.py:21
Method__init__
(self, root_train='./datasets/Corrected_Market1501', root_val='./datasets/Corrected_Market1501', verbose=True,
datasets/ourapi.py:18
Method__init__
(self, data_source, batch_size, num_instances)
datasets/sampler.py:17
Method__init__
(self, data_source, batch_size, num_instances)
datasets/sampler_ddp.py:121
Method__init__
(self, name, prob=0.5, magnitude=10, hparams=None)
datasets/autoaugment.py:319
Method__init__
(self)
datasets/autoaugment.py:497
Method__init__
(self, ops, num_layers=2, choice_weights=None)
datasets/autoaugment.py:611
Method__init__
(self, ops, alpha=1., width=3, depth=-1, blended=False)
datasets/autoaugment.py:703
Method__init__
(self, kernel_mul = 2.0, kernel_num = 5)
loss/mmd_loss.py:6
Method__init__
(self, num_classes=751, feat_dim=2048, use_gpu=True)
loss/center_loss.py:18
Method__init__
(self, in_features, num_classes, s=256, m=0.25)
loss/arcface.py:53
Method__init__
(self, num_classes, epsilon=0.1, use_gpu=True)
loss/softmax_loss.py:16
Method__init__
(self, margin=0.3, **kwargs)
loss/metric_learning.py:10
Method__init__
(self, in_features, num_classes, s=256, m=0.25)
loss/metric_learning.py:46
Method__init__
(self, in_features, out_features, s=30.0, m=0.30)
loss/metric_learning.py:134
Method__init__
(self, in_features, out_features, s=30.0, m=0.30)
loss/metric_learning.py:167
Method__init__
(self, margin=None, hard_factor=0.0)
loss/triplet_loss.py:113
Method__iter__
(self)
datasets/sampler.py:39
Method__iter__
(self)
datasets/sampler_ddp.py:147
Method__len__
(self)
datasets/bases.py:75
Method__len__
(self)
datasets/sampler.py:67
Method__len__
(self)
datasets/sampler_ddp.py:195
← previousnext →101–200 of 356, ranked by callers