MCPcopy Create free account

hub / github.com/XLearning-SCU/2022-CVPR-DART / functions

Functions92 in github.com/XLearning-SCU/2022-CVPR-DART

↓ 5 callersMethod__init__
(self, power=2)
model.py:7
↓ 5 callersFunctionremove_fc
Remove the fc layer parameters from state_dict.
resnet.py:150
↓ 5 callersMethodupdate
(self, val, n=1)
utils.py:114
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1, dilation=1)
resnet.py:119
↓ 4 callersFunctionextract_gall_feat
(gall_loader, net)
test.py:98
↓ 4 callersFunctionextract_query_feat
(query_loader, net)
test.py:115
↓ 4 callersFunctionprocess_test_regdb
(img_dir, trial = 1, modal = 'visible')
data_manager.py:69
↓ 4 callersFunctionsoftmax_weights
(dist, mask)
loss.py:10
↓ 3 callersMethod__init__
(self)
loss.py:120
↓ 3 callersFunctioneval_regdb
(distmat, q_pids, g_pids, max_rank = 20)
eval_metrics.py:86
↓ 3 callersFunctionprocess_gallery_sysu
(data_path, mode = 'all', trial = 0, relabel=False)
data_manager.py:37
↓ 3 callersFunctionresnet50
Constructs a ResNet-50 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
resnet.py:181
↓ 2 callersFunctionGenIdx
( train_color_label, train_thermal_label)
utils.py:20
↓ 2 callersMethod__init__
(self, block, layers, last_conv_stride=2, last_conv_dilation=1)
resnet.py:97
↓ 2 callersFunctionadjust_learning_rate
Sets the learning rate to the initial LR decayed by 10 every 30 epochs
run.py:246
↓ 2 callersMethodclose
(self)
utils.py:160
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
resnet.py:17
↓ 2 callersFunctioneval_sysu
Evaluation with sysu metric Key: for each query identity, its gallery images from the same camera view are discarded. "Following the original sett
eval_metrics.py:6
↓ 2 callersFunctioneval_train
(net, dataloader, type)
run.py:290
↓ 2 callersFunctionload_data
(input_data_path)
data_loader.py:383
↓ 2 callersFunctionnormalize
Normalizing to unit length along the specified dimension. Args: x: pytorch Variable Returns: x: pytorch Variable, same shape as in
loss.py:18
↓ 2 callersFunctionpdist_torch
compute the eucilidean distance matrix between embeddings1 and embeddings2 using gpu
loss.py:136
↓ 2 callersFunctionprocess_query_sysu
(data_path, mode = 'all', relabel=False)
data_manager.py:6
↓ 2 callersFunctiontrain
(epoch, net, optimizer, trainloader)
run.py:339
↓ 2 callersFunctionwarmup
(epoch, net, optimizer, dataloader)
run.py:264
↓ 1 callersFunctionmkdir_if_missing
(directory)
utils.py:120
↓ 1 callersMethodreset
(self)
utils.py:108
↓ 1 callersFunctionset_seed
(seed, cuda=True)
utils.py:165
↓ 1 callersFunctiontest
(net1, net2)
run.py:411
FunctionExtractCam
(gall_img)
utils.py:52
FunctionGenCamIdx
(gall_img, gall_label, mode)
utils.py:34
Method__call__
(self, img)
ChannelAug.py:26
Method__call__
(self, img)
ChannelAug.py:65
Method__call__
(self, img)
ChannelAug.py:115
Method__call__
(self, img)
data_loader.py:23
Method__del__
(self)
utils.py:140
Method__enter__
(self)
utils.py:143
Method__exit__
(self, *args)
utils.py:146
Method__getitem__
(self, index)
data_loader.py:169
Method__getitem__
(self, index)
data_loader.py:339
Method__getitem__
(self, index)
data_loader.py:374
Method__init__
(self)
loss.py:32
Method__init__
(self, alpha=1, gamma=1, square=0)
loss.py:67
Method__init__
(self, batch_size, margin)
loss.py:165
Method__init__
(self, train_color_label, train_thermal_label, color_pos, thermal_pos, num_pos, batchSize, epoch)
utils.py:71
Method__init__
(self)
utils.py:105
Method__init__
(self, fpath=None)
utils.py:133
Method__init__
(self, dataset, train_color_label, train_thermal_label, shuffle=True)
utils.py:219
Method__init__
(self, probability = 0.5)
ChannelAug.py:22
Method__init__
(self, probability = 0.5)
ChannelAug.py:61
Method__init__
(self, probability = 0.5, sl = 0.02, sh = 0.4, r1 = 0.3, mean=[0.4914, 0.4822, 0.4465])
ChannelAug.py:107
Method__init__
(self, gray=2)
data_loader.py:20
Method__init__
(self, data_dir, transform=None, colorIndex=None, thermalIndex=None, noise_rate=0., noise_file='', mode='', pr
data_loader.py:48
Method__init__
(self, data_dir, trial, transform=None, colorIndex=None, thermalIndex=None, noise_rate=0., no
data_loader.py:195
Method__init__
(self, test_img_file, test_label, transform=None, img_size=(144, 288))
data_loader.py:362
Method__init__
(self, in_channels, reduc_ratio=2)
model.py:17
Method__init__
(self, arch='resnet50')
model.py:94
Method__init__
(self, arch='resnet50')
model.py:111
Method__init__
(self, arch='resnet50')
model.py:128
Method__init__
(self, class_num, no_local= 'on', gm_pool = 'on', arch='resnet50')
model.py:146
Method__init__
(self, inplanes, planes, stride=1, downsample=None, dilation=1)
resnet.py:27
Method__init__
(self, inplanes, planes, stride=1, downsample=None, dilation=1)
resnet.py:59
Method__iter__
(self)
utils.py:95
Method__iter__
(self)
utils.py:238
Method__len__
(self)
utils.py:98
Method__len__
(self)
utils.py:241
Method__len__
(self)
data_loader.py:379
Methodflush
(self)
utils.py:154
Methodforward
(self, inputs, label_assign, targets, true_targets, prob, threshold=0.6, alpha=100, normalize_feature=False)
loss.py:36
Methodforward
(self, inputs, label_assign, targets, true_targets, prob, threshold=0.6, alpha=100, normalize_feature=False)
loss.py:74
Methodforward
(self, pred, label)
loss.py:123
Methodforward
(self, inputs, prediction, targets, true_targets, prob, threshold)
loss.py:170
Methodforward
(self, x)
model.py:11
Methodforward
:param x: (b, c, t, h, w) :return:
model.py:44
Methodforward
(self, x)
model.py:102
Methodforward
(self, x)
model.py:119
Methodforward
(self, x)
model.py:137
Methodforward
(self, x1, x2, modal=0)
model.py:185
Methodforward
(self, x)
resnet.py:37
Methodforward
(self, x)
resnet.py:72
Methodforward
(self, x)
resnet.py:136
Functionload_data
(input_data_path )
utils.py:10
Functionpdist_np
compute the eucilidean distance matrix between embeddings1 and embeddings2 using cpu
loss.py:151
Functionplot_pair_distribution
(type, X, clean_index, noisy_index, save_path='')
utils.py:185
Functionresnet101
Constructs a ResNet-101 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
resnet.py:193
Functionresnet152
Constructs a ResNet-152 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
resnet.py:205
Functionresnet18
Constructs a ResNet-18 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
resnet.py:159
Functionresnet34
Constructs a ResNet-34 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
resnet.py:170
Functionset_requires_grad
Set requies_grad=Fasle for all the networks to avoid unnecessary computations Parameters: nets (network list) -- a list
utils.py:173
Functionweights_init_classifier
(m)
model.py:84
Functionweights_init_kaiming
(m)
model.py:72
Methodwrite
(self, msg)
utils.py:149