MCPcopy Create free account

hub / github.com/ChinaYi/ASFormer / functions

Functions50 in github.com/ChinaYi/ASFormer

↓ 9 callersMethod__init__
(self, num_layers, r1, r2, num_f_maps, input_dim, num_classes, channel_masking_rate, att_type, alpha)
model.py:252
↓ 4 callersFunctionget_labels_start_end_time
(frame_wise_labels, bg_class=["background"])
eval.py:14
↓ 3 callersMethodhas_next
(self)
batch_gen.py:25
↓ 3 callersMethodnext_batch
(self, batch_size, if_warp=False)
batch_gen.py:86
↓ 3 callersMethodread_data
(self, vid_list_file)
batch_gen.py:30
↓ 3 callersFunctionread_file
(path)
eval.py:7
↓ 3 callersMethodreset
(self)
batch_gen.py:21
↓ 3 callersMethodscalar_dot_att
scalar dot attention. :param proj_query: shape of (B, C, L) => (Batch_Size, Feature_Dimension, Length) :param proj_key: shape
model.py:23
↓ 2 callersFunctionfunc_eval
(dataset, recog_path, file_list)
eval.py:143
↓ 2 callersMethodmy_shuffle
(self)
batch_gen.py:39
↓ 2 callersMethodsample
(self, batchsize=1)
grid_sampler.py:40
↓ 2 callersMethodtrain
(self, save_dir, batch_gen, num_epochs, batch_size, learning_rate, batch_gen_tst=None)
model.py:330
↓ 1 callersMethod__init__
(self, N_grid, low=1, high=5)
grid_sampler.py:32
↓ 1 callersMethod_block_wise_self_att
(self, q,k,v, mask)
model.py:106
↓ 1 callersMethod_normal_self_att
(self,q,k,v, mask)
model.py:96
↓ 1 callersMethod_sliding_window_self_att
(self, q,k,v, mask)
model.py:132
↓ 1 callersMethodconstruct_window_mask
construct window mask of shape (1, l, l + l//2 + l//2), used for sliding window self attention
model.py:66
↓ 1 callersFunctionedit_score
(recognized, ground_truth, norm=True, bg_class=["background"])
eval.py:61
↓ 1 callersFunctionexponential_descrease
(idx_decoder, p=3)
model.py:14
↓ 1 callersFunctionf_score
(recognized, ground_truth, overlap, bg_class=["background"])
eval.py:67
↓ 1 callersFunctionlevenstein
(p, y, norm=False)
eval.py:35
↓ 1 callersFunctionmain
()
eval.py:204
↓ 1 callersMethodpredict
(self, model_dir, results_dir, features_path, batch_gen_tst, epoch, actions_dict, sample_rate)
model.py:395
↓ 1 callersFunctionsegment_bars_with_confidence
(save_path, confidence, *labels)
eval.py:114
↓ 1 callersMethodtest
(self, batch_gen_tst, epoch)
model.py:375
↓ 1 callersMethodwarp_video
:param batch_input_tensor: (bs, C_in, L_in) :param batch_target_tensor: (bs, L_in) :return: warped input and target
batch_gen.py:50
Method__init__
(self)
grid_sampler.py:12
Method__init__
(self)
model.py:18
Method__init__
(self, q_dim, k_dim, v_dim, r1, r2, r3, bl, stage, att_type)
model.py:47
Method__init__
(self, q_dim, k_dim, v_dim, r1, r2, r3, bl, stage, att_type, num_head)
model.py:174
Method__init__
(self, dilation, in_channels, out_channels)
model.py:189
Method__init__
(self, in_channels, out_channels)
model.py:201
Method__init__
(self, dilation, in_channels, out_channels, r1, r2, att_type, stage, alpha)
model.py:215
Method__init__
(self, d_model, max_len=10000)
model.py:235
Method__init__
(self, num_layers, r1, r2, num_f_maps, input_dim, num_classes, att_type, alpha)
model.py:285
Method__init__
(self, num_decoders, num_layers, r1, r2, num_f_maps, input_dim, num_classes, channel_masking_rate)
model.py:304
Method__init__
(self, num_layers, r1, r2, num_f_maps, input_dim, num_classes, channel_masking_rate)
model.py:322
Method__init__
(self, num_classes, actions_dict, gt_path, features_path, sample_rate)
batch_gen.py:11
Methodforward
:type&shape x: (cuda.)FloatTensor, (N, D, T) :type&shape grid: (cuda.)FloatTensor, (N, T, 2) :type&mode: bilinear or nearest
grid_sampler.py:15
Methodforward
(self, x1, x2, mask)
model.py:75
Methodforward
(self, x1, x2, mask)
model.py:182
Methodforward
(self, x)
model.py:196
Methodforward
(self, x)
model.py:210
Methodforward
(self, x, f, mask)
model.py:224
Methodforward
(self, x)
model.py:248
Methodforward
:param x: (N, C, L) :param mask: :return:
model.py:263
Methodforward
(self, x, fencoder, mask)
model.py:293
Methodforward
(self, x, mask)
model.py:310
Methodmerge
merge two batch generator. I.E BatchGenerator a; BatchGenerator b; a.merge(b, suffix='@1') :param bg:
batch_gen.py:68
Functionsegment_bars
(save_path, *labels)
eval.py:91