↓ 55 callersMethodhead_to_batch_dimr""" Reshape the tensor from `[batch_size, seq_len, dim]` to `[batch_size, seq_len, heads, dim // heads]` `heads` is the number of hea
architecture/attention_processor.py:619
↓ 13 callersMethod__init__(
self,
in_channels: int,
out_channels: int,
factor_t,
factor_s=1,
architecture/autoencoder_kl_wan.py:91
↓ 9 callersMethod__init__(self, in_features, out_features, bias=True, act="ReLU", is_folded=True)
preprocess/auxiliary/AutoShot.py:13
↓ 7 callersMethod__init__(
self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.0
)
preprocess/oneformer_code/oneformer/modeling/backbone/swin.py:25
↓ 7 callersFunctionweighted_mean(x: torch.Tensor, w: torch.Tensor = None, dim: Union[int, torch.Size] = None, keepdim: bool = False, eps: floa
preprocess/SpaTrackV2_code/models/tracker3D/spatrack_modules/geometry_torch.py:16
↓ 6 callersMethod__init__(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
preprocess/oneformer_code/oneformer/modeling/backbone/dinat.py:49
↓ 5 callersMethod__init__(self, dim, num_heads=8, qkv_bias=False, qk_scale=None, attn_drop=0., proj_drop=0.)
preprocess/oneformer_code/oneformer/modeling/transformer_decoder/text_transformer.py:33
↓ 5 callersMethod__init__(self,
F=16, L=3, S=2, D=1024,
use_many_hot_targets=True,
u
preprocess/auxiliary/TransNetV2.py:11
↓ 4 callersFunctionmasks_to_boxesCompute the bounding boxes around the provided masks The masks should be in format [N, H, W] where N is the number of masks, (H, W) are the spatia
preprocess/oneformer_code/oneformer/utils/box_ops.py:106