MCPcopy Create free account

hub / github.com/CDTrans/CDTrans / functions

Functions356 in github.com/CDTrans/CDTrans

Method__repr__
(self)
loss/metric_learning.py:158
Method_check_before_run
Check if all files are available before going deeper
datasets/office_home.py:46
Method_check_before_run
Check if all files are available before going deeper
datasets/visda.py:51
Method_check_before_run
Check if all files are available before going deeper
datasets/domainnet.py:51
Method_check_before_run
Check if all files are available before going deeper
datasets/office.py:51
Function_conv_filter
convert patch embedding weight from manual patchify + linear proj to conv
model/backbones/vit_pytorch.py:674
Function_conv_filter
convert patch embedding weight from manual patchify + linear proj to conv
model/backbones/vit_pytorch_uda.py:586
Function_enhance_increasing_level_to_arg
(level, _hparams)
datasets/autoaugment.py:193
Function_enhance_level_to_arg
(level, _hparams)
datasets/autoaugment.py:188
Method_freeze_stages
(self)
model/backbones/resnet_ibn_a.py:127
Method_freeze_stages
(self)
model/backbones/se_resnet_ibn_a.py:156
Method_freeze_stages
(self)
model/backbones/resnet.py:116
Method_init_weights
(self, m)
model/backbones/vit_pytorch.py:288
Method_init_weights
(self, m)
model/backbones/vit_pytorch.py:409
Method_init_weights
(self, m)
model/backbones/vit_pytorch.py:568
Method_init_weights
(self, m)
model/backbones/vit_pytorch_uda.py:446
Function_posterize_increasing_level_to_arg
(level, hparams)
datasets/autoaugment.py:230
Function_posterize_original_level_to_arg
(level, _hparams)
datasets/autoaugment.py:237
Function_rotate_level_to_arg
(level, _hparams)
datasets/autoaugment.py:181
Function_shear_level_to_arg
(level, _hparams)
datasets/autoaugment.py:201
Function_solarize_add_level_to_arg
(level, _hparams)
datasets/autoaugment.py:256
Function_solarize_increasing_level_to_arg
(level, _hparams)
datasets/autoaugment.py:250
Function_translate_abs_level_to_arg
(level, hparams)
datasets/autoaugment.py:208
Function_translate_rel_level_to_arg
(level, hparams)
datasets/autoaugment.py:215
Functionaugment_and_mix_transform
Create AugMix PyTorch transform :param config_str: String defining configuration of random augmentation. Consists of multiple sections separated
datasets/autoaugment.py:763
Functionauto_augment_transform
Create a AutoAugment transform :param config_str: String defining configuration of auto augmentation. Consists of multiple sections separated
datasets/autoaugment.py:507
Functionauto_contrast
(img, **__)
datasets/autoaugment.py:123
Functionbrightness
(img, factor, **__)
datasets/autoaugment.py:168
Functioncheck_isfile
(path)
utils/iotools.py:23
Functioncolor
(img, factor, **__)
datasets/autoaugment.py:164
Methodcompute
(self)
utils/metrics.py:153
Methodcompute
(self)
utils/metrics.py:253
Methodcompute
(self,save_dir)
utils/metrics.py:359
Methodcompute
(self,save_dir,)
utils/metrics.py:448
Methodcompute
(self,save_dir)
utils/metrics.py:493
Functioncompute_cosine_distance
Computes cosine distance. Args: features (torch.Tensor): 2-D feature matrix. others (torch.Tensor): 2-D feature matrix. Return
utils/metrics.py:39
Functioncontrast
(img, factor, **__)
datasets/autoaugment.py:160
Functioncosine_dist
Args: x: pytorch Variable, with shape [m, d] y: pytorch Variable, with shape [n, d] Returns: dist: pytorch Variable, with s
loss/triplet_loss.py:34
Functioncosine_similarity_xiaohe
Computes cosine distance. Args: features (torch.Tensor): 2-D feature matrix. others (torch.Tensor): 2-D feature matrix. Return
utils/metrics.py:54
Functionequalize
(img, **__)
datasets/autoaugment.py:131
Functioneuclidean_distance_gpu
(qf, gf)
utils/metrics.py:19
Methodforward
(self, x, label=None, cam_label=None, view_label=None, return_logits=False)
model/make_model.py:99
Methodforward
(self, x, label=None, cam_label= None, view_label=None, return_logits=False)
model/make_model.py:227
Methodforward
(self, x, x2, label=None, cam_label= None, view_label=None, domain_norm=False, return_logits=False, return_fea
model/make_model.py:328
Methodforward
(self, x)
model/backbones/resnet_ibn_a.py:27
Methodforward
(self, x)
model/backbones/resnet_ibn_a.py:54
Methodforward
(self, x)
model/backbones/resnet_ibn_a.py:140
Methodforward
(self, x)
model/backbones/se_resnet_ibn_a.py:22
Methodforward
(self, x)
model/backbones/se_resnet_ibn_a.py:44
Methodforward
(self, x)
model/backbones/se_resnet_ibn_a.py:83
Methodforward
(self, x)
model/backbones/se_resnet_ibn_a.py:170
Methodforward
(self, x)
model/backbones/vit_pytorch.py:71
Methodforward
(self, x)
model/backbones/vit_pytorch.py:131
Methodforward
(self, x)
model/backbones/vit_pytorch.py:153
Methodforward
(self, x)
model/backbones/vit_pytorch.py:184
Methodforward
(self, x)
model/backbones/vit_pytorch.py:204
Methodforward
(self, x)
model/backbones/vit_pytorch.py:240
Methodforward
(self, x, cam_label=None)
model/backbones/vit_pytorch.py:324
Methodforward
(self, x, cam_label=None)
model/backbones/vit_pytorch.py:451
Methodforward
(self, x)
model/backbones/vit_pytorch.py:513
Methodforward
(self, x, cam_label=None, view_label=None)
model/backbones/vit_pytorch.py:606
Methodforward
(self, x)
model/backbones/vit_pytorch_uda.py:71
Methodforward
(self, x)
model/backbones/vit_pytorch_uda.py:130
Methodforward
(self, x, x2, use_attn=True, inference_target_only=False)
model/backbones/vit_pytorch_uda.py:152
Methodforward
(self, x, x2, x1_x2_fusion, use_cross=False, use_attn=True, domain_norm=False,inference_target_only=False)
model/backbones/vit_pytorch_uda.py:223
Methodforward
(self, x)
model/backbones/vit_pytorch_uda.py:256
Methodforward
(self, x)
model/backbones/vit_pytorch_uda.py:293
Methodforward
(self, x)
model/backbones/vit_pytorch_uda.py:330
Methodforward
(self, x)
model/backbones/vit_pytorch_uda.py:369
Methodforward
(self, x, x2, cam_label=None, view_label=None, domain_norm=False, cls_embed_specific=False,inference_target_on
model/backbones/vit_pytorch_uda.py:515
Methodforward
(self, x)
model/backbones/se_module.py:15
Methodforward
(self, x)
model/backbones/resnet.py:26
Methodforward
(self, x)
model/backbones/resnet.py:61
Methodforward
(self, x, cam_label=None)
model/backbones/resnet.py:130
Methodforward
(self, source, target)
loss/mmd_loss.py:28
Methodforward
Args: x: feature matrix with shape (batch_size, feat_dim). labels: ground truth labels with shape (num_classes).
loss/center_loss.py:29
Methodforward
(self, input, label)
loss/arcface.py:35
Methodforward
Args: inputs: prediction matrix (before softmax) with shape (batch_size, num_classes) targets: ground truth labels wi
loss/softmax_loss.py:23
Methodforward
(self, inputs, targets)
loss/metric_learning.py:14
Methodforward
(self, input, label)
loss/metric_learning.py:101
Methodforward
(self, input, label)
loss/metric_learning.py:143
Methodforward
(self, x, lb)
loss/metric_learning.py:176
Methodget_classifier
(self)
model/backbones/vit_pytorch.py:301
Methodget_classifier
(self)
model/backbones/vit_pytorch.py:422
Methodget_classifier
(self)
model/backbones/vit_pytorch.py:581
Methodget_classifier
(self)
model/backbones/vit_pytorch_uda.py:459
Methodget_cycle_length
(self, cycles=0)
solver/cosine_lr.py:105
Methodget_epoch_values
(self, epoch: int)
solver/cosine_lr.py:93
Methodget_lr
(self)
solver/lr_scheduler.py:44
Methodget_update_values
(self, num_updates: int)
solver/cosine_lr.py:99
Functioninvert
(img, **__)
datasets/autoaugment.py:127
Methodload_param
(self, trained_path)
model/make_model.py:251
Methodload_param
(self, trained_path)
model/make_model.py:374
Methodload_param
(self, model_path)
model/backbones/resnet_ibn_a.py:157
Methodload_param
(self, model_path)
model/backbones/se_resnet_ibn_a.py:188
Methodload_param
(self, model_path)
model/backbones/vit_pytorch.py:329
Methodload_param
(self, model_path)
model/backbones/vit_pytorch.py:455
Methodload_param
(self, model_path)
model/backbones/vit_pytorch.py:610
Methodload_param
(self, model_path)
model/backbones/vit_pytorch_uda.py:519
Methodload_param
(self, model_path)
model/backbones/resnet.py:143
← previousnext →201–300 of 356, ranked by callers