MCPcopy Create free account

hub / github.com/TPCD/DCCL / functions

Functions480 in github.com/TPCD/DCCL

Methodforward
(self, x)
model/attribute_classifier.py:74
Methodforward
(self, x)
model/attribute_classifier.py:114
Methodforward
(self, inputs, adj)
model/meta_graph.py:34
Methodforward
(self, inputs)
model/meta_graph.py:85
Methodforward
(self, inputs)
model/meta_graph.py:163
Methodforward
(self, x)
model/vision_transformer.py:44
Methodforward
(self, x)
model/vision_transformer.py:58
Methodforward
(self, x)
model/vision_transformer.py:79
Methodforward
(self, x, return_attention=False)
model/vision_transformer.py:106
Methodforward
(self, x)
model/vision_transformer.py:129
Methodforward
(self, x, return_all_patches=False)
model/vision_transformer.py:210
Methodforward
(self, x)
model/vision_transformer.py:294
Methodforward
(self, x, return_features=False)
model/vision_transformer.py:310
Methodforward
(self, x)
model/vision_transformer.py:384
Methodforward
(self, x)
model/vision_transformer.py:453
Methodforward
(self, x)
model/vision_transformer.py:524
Methodforward
(self, x)
model/vision_transformer.py:602
Methodforward
(self, x)
model/vision_transformer.py:666
Methodforward
(self, x)
model/vision_transformer.py:725
Methodforward
(self, x)
model/vision_transformer.py:769
Methodforward
(self, x)
model/vision_transformer.py:801
Methodforward
(self, x, use_log_softmax=False)
model/vision_transformer.py:837
Methodforward
Compute loss for model. If both `labels` and `mask` are None, it degenerates to SimCLR unsupervised loss: https://arxiv.org/pdf/2002.0
methods/representation_learning/representation_learning.py:46
Functionget_2d_sincos_pos_embed
grid_size: int of the grid height and width return: pos_embed: [grid_size*grid_size, embed_dim] or [1+grid_size*grid_size, embed_dim] (w/
project_utils/pos_embed.py:11
Functionget_acc_auroc_curves
:param logdir: Path to logs: E.g '/work/sagar/open_set_recognition/methods/ARPL/log/(12.03.2021_|_32.570)/' :return:
project_utils/general_utils.py:281
Functionget_cifar_10_90_datasets
(train_transform, test_transform, train_classes=range(10), prop_train_labels=0.1, split
data/cifar.py:532
Functionget_cifar_10_datasets
(train_transform, test_transform, train_classes=(0, 1, 8, 9), prop_train_labels=0.5, sp
data/cifar.py:97
Functionget_cifar_20_80_datasets
(train_transform, test_transform, train_classes=range(20), prop_train_labels=0.2, split
data/cifar.py:492
Functionget_cifar_30_70_datasets
(train_transform, test_transform, train_classes=range(30), prop_train_labels=0.3, split
data/cifar.py:452
Functionget_cifar_40_60_datasets
(train_transform, test_transform, train_classes=range(40), prop_train_labels=0.4, split
data/cifar.py:412
Functionget_cifar_50_50_datasets
(train_transform, test_transform, train_classes=range(50), prop_train_labels=0.5, split
data/cifar.py:374
Functionget_cifar_50_datasets
(train_transform, test_transform, train_classes=range(50), prop_train_labels=0.5, split
data/cifar.py:179
Functionget_cifar_60_40_datasets
(train_transform, test_transform, train_classes=range(60), prop_train_labels=0.6, split
data/cifar.py:334
Functionget_cifar_70_30_datasets
(train_transform, test_transform, train_classes=range(70), prop_train_labels=0.7, split
data/cifar.py:295
Functionget_cifar_80_20_datasets
(train_transform, test_transform, train_classes=range(80), prop_train_labels=0.8, split
data/cifar.py:257
Functionget_cifar_90_10_datasets
(train_transform, test_transform, train_classes=range(90), prop_train_labels=0.9, split
data/cifar.py:218
Functionget_dino_head_weights
:param pretrain_path: Path to full DINO pretrained checkpoint as in https://github.com/facebookresearch/dino 'full_ckpt' :return: weight
project_utils/general_utils.py:59
Functionget_equal_len_datasets
Make two datasets the same length
data/imagenet.py:82
Methodget_intermediate_layers
(self, x, n=1)
model/vision_transformer.py:232
Methodget_last_selfattention
(self, x)
model/vision_transformer.py:221
Functionget_scheduler
(optimizer, args)
project_utils/schedulers.py:5
Functionget_train_val_indices
(train_dataset, val_split=0.2)
data/flower.py:193
Methodimages
(self, bchw_tensor)
project_utils/visualization_utils.py:968
Methodimg_grid_many
(self, d)
project_utils/visualization_utils.py:984
Functioninterpolate_pos_embed
(model, checkpoint_model)
project_utils/pos_embed.py:66
Functionl2norm
归一化 :param vec: :return:
project_utils/infomap_cluster_utils.py:40
Methodlog
(self, *args, **kwargs)
project_utils/visualization_utils.py:965
Methodlog
(self, *args, **kwargs)
project_utils/visualization_utils.py:1026
Methodlog_state
Gathers the stats from self.trainer.stats and passes them into self.log, as a list
project_utils/visualization_utils.py:885
Functionmeta1_base
(pretrain_path, dict_attribute, grad_from_block=11)
model/attribute_transformer.py:1164
Functionmeta1_small
(pretrain_path, dict_attribute, grad_from_block=11)
model/attribute_transformer.py:1155
Functionmeta2_base
(pretrain_path, dict_attribute, grad_from_block=11)
model/attribute_transformer.py:1182
Functionmeta2_small
(pretrain_path, dict_attribute, grad_from_block=11)
model/attribute_transformer.py:1173
Functionmixed_eval
Evaluate clustering metrics on two subsets of data, as defined by the mask 'mask' (Mask usually corresponding to `Old' and `New' classes in G
project_utils/cluster_utils.py:75
Methodnormalize_prototypes
(self)
model/vision_transformer.py:322
Functionplot_with_domains
(save_path, lowDWeights, labels)
project_utils/visualization_utils.py:95
Functionplot_with_labels
(save_path, lowDWeights, labels, camid)
project_utils/visualization_utils.py:28
Functionplot_without_labels
(save_path, lowDWeights, labels, camid)
project_utils/visualization_utils.py:320
Functionread_meta
idx2lb:每一个顶点对应一个类 lb2idxs:每个类对应一个id
project_utils/infomap_cluster_utils.py:57
Methodsave
(self)
project_utils/general_utils.py:253
Functionseed_torch
(seed=1029)
project_utils/cluster_utils.py:189
Functionsplit_cluster_acc_v1
Evaluate clustering metrics on two subsets of data, as defined by the mask 'mask' (Mask usually corresponding to `Old' and `New' classes in G
project_utils/cluster_and_log_utils.py:6
Functionsplit_cluster_acc_v2
Calculate clustering accuracy. Require scikit-learn installed First compute linear assignment on all data, then look at how good the accuracy
project_utils/cluster_and_log_utils.py:29
Methodsplit_for_val
(self, l_feats, l_targets, val_prop=0.2)
methods/clustering/faster_mix_k_means_pytorch.py:61
Methodstep
(self, epoch=None)
project_utils/schedulers.py:105
Functionstr2bool
(v)
project_utils/general_utils.py:201
Functionstr2bool
(v)
project_utils/cluster_utils.py:200
Methodsupp_idxs
(c)
methods/clustering/faster_mix_k_means_pytorch.py:163
Functiontest_kmeans_for_scipy
In this case, the test loader needs to have the labelled and unlabelled subsets of the training data
methods/estimate_k/estimate_k.py:94
Functionto_numpy
(tensor)
project_utils/contrastive_utils.py:12
Functiontransform_moco_state_dict
:param obj: Moco State Dict :param args: argsparse object with training classes :return: State dict compatable with standard resnet archi
project_utils/general_utils.py:93
Methodupdate
(self, preds, labels=None)
project_utils/general_utils.py:227
Methodupdate
(self, val, n=1)
project_utils/cluster_utils.py:129
Functionvisualize2
(features_path, output_path, show_num_identities_for_each_domain=100)
project_utils/visualization_utils.py:643
Functionvisualize3
(features_path, output_path, show_num_identities_for_each_domain=100, plot_by_domain=False, if_
project_utils/visualization_utils.py:723
Functionvisualize_gcd
(features_path, output_path, show_num_identities_for_each_domain, if_reduce_dim_before_select=False, if_from_n
project_utils/visualization_utils.py:544
Functionvit_tiny
(patch_size=16, **kwargs)
model/vision_transformer.py:243
Methodviz
(self)
project_utils/visualization_utils.py:857
Functionweights_init_classifier
(m)
model/vision_transformer.py:642
Functionweights_init_kaiming
(m)
model/vision_transformer.py:627
← previous401–480 of 480, ranked by callers