↓ 4 callersMethod_make_layer(self, block, planes: int, blocks: int,
stride: int = 1, dilate: bool = False)
model/resnet_backbone.py:150
↓ 2 callersFunctionrelative_logits_1d q: [B, Nh, H, W, d] rel_k: [2W - 1, d] Computes relative logits along one dimension. The details of relative position is explained in
model/rel_pos_embedding.py:35
Method__init__(
self,
fmap_size,
layers: List[int] = [3, 4, 6, 3],
botnet: bool = False,
model/resnet_backbone.py:87
Methodforward featuremap: [B, d_in, H, W] Output: [B, H, W, head * d_v]
model/self_attention_block.py:39