MCPcopy Create free account

hub / github.com/DawnLIU35/FSCIL-ASP / functions

Functions118 in github.com/DawnLIU35/FSCIL-ASP

↓ 16 callersFunctionsplit_images_labels
(imgs)
utils/toolkit.py:66
↓ 14 callersFunctionbuild_transform
(is_train, args)
utils/data.py:95
↓ 11 callersMethodget_dataset
( self, indices, source, mode, kshot=None, appendent=None, ret_data=False, m_rate=None )
utils/data_manager.py:34
↓ 8 callersMethod_extract_vectors
(self, loader)
models/base.py:179
↓ 4 callersFunctionbuild_transform_coda_prompt
(is_train, args)
utils/data.py:68
↓ 4 callersFunctionreduce_proxies
(out, nb_proxy)
backbone/linears.py:101
↓ 4 callersFunctiontensor2numpy
(x)
utils/toolkit.py:12
↓ 3 callersMethod__init__
(self, img_size=224, patch_size=16, in_chans=3, num_classes=1000, embed_dim=768, depth=12, nu
backbone/asp_backbone.py:35
↓ 3 callersMethod_evaluate
(self, y_pred, y_true)
models/base.py:103
↓ 3 callersMethod_select
(self, x, y, low_range, high_range, kshot=None)
utils/data_manager.py:170
↓ 3 callersFunctionpil_loader
Ref: https://pytorch.org/docs/stable/_modules/torchvision/datasets/folder.html#ImageFolder
utils/data_manager.py:252
↓ 2 callersMethod__init__
(self, in_features, out_features, bias=True)
backbone/linears.py:16
↓ 2 callersMethod_compute_accuracy
(self, model, loader)
models/base.py:139
↓ 2 callersFunction_map_new_class_index
(y, order)
utils/data_manager.py:219
↓ 2 callersFunctioncount_parameters
(model, trainable=False)
utils/toolkit.py:6
↓ 2 callersMethodextract_vector
(self, x)
utils/inc_net.py:62
↓ 2 callersFunctionget_backbone
(args, pretrained=False)
utils/inc_net.py:5
↓ 2 callersMethodreplace_fc
(self,trainloader, model, args)
models/asp.py:43
↓ 2 callersMethodupdate_ema_prompt
(self, train_loader, mode='new')
models/asp.py:239
↓ 1 callersMethodFreeze
(self)
backbone/asp_backbone.py:77
↓ 1 callersFunctionHarmonic_Accuracy
(grouped_acc, init_cls)
trainer.py:135
↓ 1 callersMethod__init__
(self, args)
utils/data.py:122
↓ 1 callersMethod_construct_exemplar
(self, data_manager, m)
models/base.py:236
↓ 1 callersMethod_construct_exemplar_unified
(self, data_manager, m)
models/base.py:307
↓ 1 callersMethod_eval_acc
(self, loader)
models/asp.py:143
↓ 1 callersMethod_eval_cnn
(self, loader)
models/base.py:152
↓ 1 callersMethod_eval_nme
(self, loader, class_means)
models/base.py:169
↓ 1 callersFunction_get_idata
(dataset_name, args=None)
utils/data_manager.py:223
↓ 1 callersMethod_init_train
(self, train_loader, test_loader, optimizer, scheduler)
models/asp.py:168
↓ 1 callersMethod_reduce_exemplar
(self, data_manager, m)
models/base.py:200
↓ 1 callersMethod_select_rmm
(self, x, y, low_range, high_range, m_rate, kshot=None)
utils/data_manager.py:177
↓ 1 callersFunction_set_device
(args)
trainer.py:106
↓ 1 callersFunction_set_random
(seed=1)
trainer.py:121
↓ 1 callersMethod_setup_data
(self, dataset_name, shuffle, seed)
utils/data_manager.py:140
↓ 1 callersFunction_train
(args)
trainer.py:24
↓ 1 callersMethod_train
(self, train_loader, test_loader, train_loader_for_protonet)
models/asp.py:99
↓ 1 callersFunctionaccimage_loader
Ref: https://pytorch.org/docs/stable/_modules/torchvision/datasets/folder.html#ImageFolder accimage is an accelerated Image loader and pr
utils/data_manager.py:263
↓ 1 callersFunctionaccuracy
(y_pred, y_true, nb_old, increment=10)
utils/toolkit.py:27
↓ 1 callersMethodafter_task
(self)
models/asp.py:40
↓ 1 callersFunctionbuild_promptmodel
(modelname='vit_base_patch16_224', Prompt_Token_num=10, VPT_type="Deep", args=None)
backbone/asp_backbone.py:12
↓ 1 callersMethoddownload_data
(self)
utils/data.py:269
↓ 1 callersMethodeval_task
(self)
models/asp.py:138
↓ 1 callersMethodfind_anchor_sample
(self, model, train_loader)
models/asp.py:260
↓ 1 callersMethodforward_features
(self, x, perturb_var=0)
backbone/asp_backbone.py:98
↓ 1 callersMethodgenerate_fc
(self, in_dim, out_dim)
backbone/asp_backbone.py:155
↓ 1 callersMethodget_task_size
(self, task)
utils/data_manager.py:27
↓ 1 callersMethodincremental_train
(self, data_manager)
models/asp.py:69
↓ 1 callersFunctionload_json
(setting_path)
main.py:13
↓ 1 callersMethodload_prompt
(self, prompt_state_dict)
backbone/asp_backbone.py:95
↓ 1 callersFunctionmain
()
main.py:5
↓ 1 callersMethodobtain_prompt
(self)
backbone/asp_backbone.py:92
↓ 1 callersFunctionprint_args
(args)
trainer.py:131
↓ 1 callersFunctionreduce_proxies
(out, nb_proxy)
backbone/asp_backbone.py:242
↓ 1 callersMethodreparameterise
(self, mu, std, perturb_var)
backbone/asp_backbone.py:205
↓ 1 callersMethodreset_parameters
(self)
backbone/linears.py:27
↓ 1 callersMethodreset_parameters
(self)
backbone/linears.py:49
↓ 1 callersMethodreset_parameters
(self)
backbone/asp_backbone.py:224
↓ 1 callersFunctionsetup_parser
()
main.py:18
↓ 1 callersFunctiontrain
(args)
trainer.py:14
↓ 1 callersMethodupdate_fc
(self, nb_classes)
utils/inc_net.py:80
MethodNew_CLS_head
(self, new_classes=15)
backbone/asp_backbone.py:74
Method__getitem__
(self, idx)
utils/data_manager.py:209
Method__init__
(self, in_features, out_features, nb_proxy=1, to_reduce=False, sigma=True)
backbone/linears.py:36
Method__init__
(self, in_features, out_features1, out_features2, nb_proxy=1, sigma=True)
backbone/linears.py:69
Method__init__
(self, args, pretrained)
backbone/asp_backbone.py:138
Method__init__
(self, args, depth, prompt_length, prompt_featuers=768)
backbone/asp_backbone.py:170
Method__init__
(self, in_features, out_features, nb_proxy=1, to_reduce=False, sigma=True)
backbone/asp_backbone.py:211
Method__init__
(self, dataset_name, shuffle, seed, init_cls, increment, args)
utils/data_manager.py:11
Method__init__
(self, images, labels, trsf, use_path=False)
utils/data_manager.py:199
Method__init__
(self, args)
utils/data.py:209
Method__init__
(self, args, pretrained)
utils/inc_net.py:43
Method__init__
(self, args)
models/base.py:14
Method__init__
(self, args)
models/asp.py:30
Method__len__
(self)
utils/data_manager.py:206
Method_get_memory
(self)
models/base.py:133
Method_train
(self)
models/base.py:130
Methodafter_task
(self)
models/base.py:100
Methodbuild_rehearsal_memory
(self, data_manager, per_class)
models/base.py:52
Methodcopy
(self)
utils/inc_net.py:86
Functioncos_loss
(cosine, label)
models/asp.py:23
Functiondefault_loader
Ref: https://pytorch.org/docs/stable/_modules/torchvision/datasets/folder.html#ImageFolder
utils/data_manager.py:279
Methoddownload_data
(self)
utils/data.py:30
Methoddownload_data
(self)
utils/data.py:58
Methoddownload_data
(self)
utils/data.py:139
Methoddownload_data
(self)
utils/data.py:167
Methoddownload_data
(self)
utils/data.py:196
Methoddownload_data
(self)
utils/data.py:226
Methoddownload_data
(self)
utils/data.py:247
Methoddownload_data
(self)
utils/data.py:290
Methoddownload_data
(self)
utils/data.py:311
Methoddownload_data
(self)
utils/data.py:333
Methodeval_task
(self)
models/base.py:115
Methodexemplar_size
(self)
models/base.py:31
Methodextract_vector
(self, x)
backbone/asp_backbone.py:159
Methodfeature_dim
(self)
utils/inc_net.py:59
Methodfeature_dim
(self)
models/base.py:46
Methodforward
(self, input)
backbone/linears.py:31
Methodforward
(self, input)
backbone/linears.py:55
Methodforward
(self, x)
backbone/linears.py:82
Methodforward
(self, x, perturb_var=0)
backbone/asp_backbone.py:132
next →1–100 of 118, ranked by callers