MCPcopy Create free account

hub / github.com/MenghaoGuo/Awesome-Vision-Attentions / functions

Functions164 in github.com/MenghaoGuo/Awesome-Vision-Attentions

↓ 4 callersMethod__init__
(self, gate_channels, reduction_ratio=16)
code/channel_spatial_attentions/cbam.py:82
↓ 4 callersFunctionget_pixel_value
(img, x, y)
code/spatial_attentions/stn.py:6
↓ 3 callersMethodsplit_heads_2d
(self, x, Nh)
code/spatial_attentions/attention_augmented_module.py:75
↓ 2 callersMethod__init__
(self, gate_channel)
code/channel_spatial_attentions/bam.py:56
↓ 2 callersMethod__init__
(self)
code/channel_spatial_attentions/coordatt_module.py:16
↓ 2 callersMethod__init__
(self, in_channels, out_channels)
code/channel_spatial_attentions/danet.py:7
↓ 2 callersMethod__init__
( self, in_planes, out_planes, kernel_size, stride=1, padding=
code/channel_spatial_attentions/triplet_attention.py:7
↓ 2 callersMethod__init__
Constructor of the class
code/channel_attentions/dia_module.py:19
↓ 2 callersMethodbuild_filter
(self, pos, freq, POS)
code/channel_attentions/fcanet.py:102
↓ 2 callersMethodgrad
(self, grad_output)
code/channel_attentions/soca_module.py:67
↓ 2 callersMethodrelative_logits_1d
(self, q, rel_k, H, W, Nh, case)
code/spatial_attentions/attention_augmented_module.py:99
↓ 1 callersMethod__init__
( self, dim, n, ratio=8, K=6, eps=2e-8 )
code/spatial_attentions/hamnet.py:13
↓ 1 callersMethod__init__
(self, dim)
code/channel_spatial_attentions/lka.py:7
↓ 1 callersMethod__init__
(self, p=0.1)
code/spatial_temporal_attentions/dstt_module.py:12
↓ 1 callersMethod__init__
(self, channels, num_codes)
code/channel_attentions/enc_module.py:7
↓ 1 callersMethod__init__
(self, height, width, mapper_x, mapper_y, channel)
code/channel_attentions/fcanet.py:81
↓ 1 callersMethod__init__
(self, in_planes, ratios, K, temperature)
code/branch_attentions/dynamic_conv.py:7
↓ 1 callersMethod__init__
(self, in_channels, out_channels=None, kernel_size=3, stride=1, padding=None, dilation=1, gro
code/branch_attentions/resnest_module.py:36
↓ 1 callersMethod_zero_init_conv
(self)
code/spatial_attentions/ocr.py:14
↓ 1 callersFunctionaffine_grid_generator
(height, width, theta)
code/spatial_attentions/stn.py:11
↓ 1 callersMethodaggregate
(assignment_weights, x, codewords)
code/channel_attentions/enc_module.py:32
↓ 1 callersFunctionbilinear_sampler
(img, x, y)
code/spatial_attentions/stn.py:39
↓ 1 callersMethodcombine_heads_2d
(self, x)
code/spatial_attentions/attention_augmented_module.py:81
↓ 1 callersMethodcompute_flat_qkv
(self, x, dk, dv, Nh)
code/spatial_attentions/attention_augmented_module.py:60
↓ 1 callersMethodget_dct_filter
(self, tile_size_x, tile_size_y, mapper_x, mapper_y, channel)
code/channel_attentions/fcanet.py:109
↓ 1 callersFunctionget_freq_indices
(method)
code/channel_attentions/fcanet.py:7
↓ 1 callersFunctionmain
()
code/spatial_attentions/segformer_module.py:55
↓ 1 callersFunctionmain
()
code/spatial_attentions/attention_augmented_module.py:131
↓ 1 callersFunctionmain
()
code/spatial_attentions/mhsa.py:40
↓ 1 callersFunctionmain
()
code/spatial_attentions/stn.py:93
↓ 1 callersFunctionmain
()
code/spatial_attentions/external_attention.py:50
↓ 1 callersFunctionmain
()
code/spatial_attentions/self_attention.py:43
↓ 1 callersFunctionmain
()
code/spatial_attentions/gc_module.py:57
↓ 1 callersFunctionmain
()
code/spatial_attentions/hamnet.py:79
↓ 1 callersFunctionmain
()
code/spatial_attentions/doub_attention.py:34
↓ 1 callersFunctionmain
()
code/spatial_attentions/offset_module.py:32
↓ 1 callersFunctionmain
()
code/channel_spatial_attentions/bam.py:67
↓ 1 callersFunctionmain
()
code/channel_spatial_attentions/lka.py:42
↓ 1 callersFunctionmain
()
code/channel_spatial_attentions/scnet.py:40
↓ 1 callersFunctionmain
()
code/channel_spatial_attentions/cbam.py:93
↓ 1 callersFunctionmain
()
code/channel_spatial_attentions/simam_module.py:29
↓ 1 callersFunctionmain
()
code/channel_spatial_attentions/coordatt_module.py:62
↓ 1 callersFunctionmain
()
code/channel_spatial_attentions/danet.py:120
↓ 1 callersFunctionmain
()
code/channel_spatial_attentions/triplet_attention.py:95
↓ 1 callersFunctionmain
()
code/channel_spatial_attentions/strip_pooling_module.py:65
↓ 1 callersFunctionmain
()
code/spatial_temporal_attentions/dstt_module.py:74
↓ 1 callersFunctionmain
()
code/channel_attentions/dia_module.py:86
↓ 1 callersFunctionmain
()
code/channel_attentions/soca_module.py:150
↓ 1 callersFunctionmain
()
code/channel_attentions/eca_module.py:32
↓ 1 callersFunctionmain
()
code/channel_attentions/gct_module.py:43
↓ 1 callersFunctionmain
()
code/channel_attentions/enc_module.py:76
↓ 1 callersFunctionmain
()
code/channel_attentions/se_module.py:23
↓ 1 callersFunctionmain
()
code/channel_attentions/fcanet.py:123
↓ 1 callersFunctionmain
()
code/branch_attentions/highway.py:40
↓ 1 callersFunctionmain
()
code/branch_attentions/dynamic_conv.py:95
↓ 1 callersFunctionmain
()
code/branch_attentions/resnest_module.py:90
↓ 1 callersFunctionmain
()
code/branch_attentions/sk_module.py:64
↓ 1 callersFunctionmake_divisible
(v, divisor=8, min_value=None, round_limit=.9)
code/branch_attentions/resnest_module.py:6
↓ 1 callersMethodrel_to_abs
(self, x)
code/spatial_attentions/attention_augmented_module.py:116
↓ 1 callersMethodrelative_logits
(self, q)
code/spatial_attentions/attention_augmented_module.py:86
↓ 1 callersMethodscaled_l2
(x, codewords, scale)
code/channel_attentions/enc_module.py:19
↓ 1 callersMethodspatial_pool
(self, x)
code/spatial_attentions/gc_module.py:22
↓ 1 callersMethodupdate__temperature
(self)
code/branch_attentions/dynamic_conv.py:23
Method__init__
(self, dim, num_heads=8, qkv_bias=False, qk_scale=None, attn_drop=0., proj_drop=0., sr_ratio=1)
code/spatial_attentions/segformer_module.py:7
Method__init__
(self, in_channels, out_channels, kernel_size, dk, dv, Nh, relative)
code/spatial_attentions/attention_augmented_module.py:7
Method__init__
(self, dim, num_heads=8, qkv_bias=False, qk_scale=None, attn_drop=0., proj_drop=0.)
code/spatial_attentions/mhsa.py:6
Method__init__
(self)
code/spatial_attentions/stn.py:76
Method__init__
(self, c)
code/spatial_attentions/external_attention.py:12
Method__init__
(self, in_dim)
code/spatial_attentions/self_attention.py:8
Method__init__
(self, inplanes, ratio)
code/spatial_attentions/gc_module.py:6
Method__init__
(self, in_channels, n_cls=19)
code/spatial_attentions/ocr.py:6
Method__init__
( self, dim, n, inner_dim, ratio=8, K=6 )
code/spatial_attentions/hamnet.py:54
Method__init__
(self, in_c)
code/spatial_attentions/doub_attention.py:7
Method__init__
(self, channels)
code/spatial_attentions/offset_module.py:8
Method__init__
(self, gate_channel, reduction_ratio=16, num_layers=1)
code/channel_spatial_attentions/bam.py:12
Method__init__
(self, gate_channel, reduction_ratio=16, dilation_conv_num=2, dilation_val=4)
code/channel_spatial_attentions/bam.py:34
Method__init__
(self, d_model)
code/channel_spatial_attentions/lka.py:24
Method__init__
(self, inplanes, planes, stride, padding, dilation, groups, pooling_r, norm_layer)
code/channel_spatial_attentions/scnet.py:7
Method__init__
(self, in_planes, out_planes, kernel_size, stride=1, padding=0, dilation=1, groups=1, relu=True, bn=True, bias
code/channel_spatial_attentions/cbam.py:6
Method__init__
(self, channel, reduction=16)
code/channel_spatial_attentions/cbam.py:25
Method__init__
(self)
code/channel_spatial_attentions/cbam.py:55
Method__init__
(self)
code/channel_spatial_attentions/cbam.py:66
Method__init__
(self, e_lambda=1e-4)
code/channel_spatial_attentions/simam_module.py:7
Method__init__
(self)
code/channel_spatial_attentions/coordatt_module.py:7
Method__init__
(self, inp, oup, reduction=32)
code/channel_spatial_attentions/coordatt_module.py:25
Method__init__
(self, in_dim)
code/channel_spatial_attentions/danet.py:51
Method__init__
(self, in_dim)
code/channel_spatial_attentions/danet.py:91
Method__init__
(self)
code/channel_spatial_attentions/triplet_attention.py:56
Method__init__
(self, no_spatial=False)
code/channel_spatial_attentions/triplet_attention.py:72
Method__init__
(self, in_channels, pool_size, norm_layer, up_kwargs)
code/channel_spatial_attentions/strip_pooling_module.py:11
Method__init__
(self, tokensize, d_model, head, mode, p=0.1)
code/spatial_temporal_attentions/dstt_module.py:30
Method__init__
Constructor of the class
code/channel_attentions/dia_module.py:7
Method__init__
(self, channel)
code/channel_attentions/dia_module.py:63
Method__init__
(self, channel, reduction=8)
code/channel_attentions/soca_module.py:108
Method__init__
(self, k_size=3)
code/channel_attentions/eca_module.py:12
Method__init__
(self, num_channels, epsilon=1e-5, mode='l2', after_relu=False)
code/channel_attentions/gct_module.py:8
Method__init__
(self, in_channels, num_codes)
code/channel_attentions/enc_module.py:58
Method__init__
(self, channel, reduction=16)
code/channel_attentions/se_module.py:6
Method__init__
(self, channel, dct_h, dct_w, reduction=16, freq_sel_method='top16')
code/channel_attentions/fcanet.py:39
Method__init__
(self, dim, num_layers=2)
code/branch_attentions/highway.py:6
next →1–100 of 164, ranked by callers