MCPcopy Create free account
hub / github.com/UVA-Computer-Vision-Lab/FrameINO / __init__

Method __init__

architecture/attention_processor.py:4821–4829  ·  view source on GitHub ↗
(
        self,
        f_channels: int,
        zq_channels: int,
    )

Source from the content-addressed store, hash-verified

4819 """
4820
4821 def __init__(
4822 self,
4823 f_channels: int,
4824 zq_channels: int,
4825 ):
4826 super().__init__()
4827 self.norm_layer = nn.GroupNorm(num_channels=f_channels, num_groups=32, eps=1e-6, affine=True)
4828 self.conv_y = nn.Conv2d(zq_channels, f_channels, kernel_size=1, stride=1, padding=0)
4829 self.conv_b = nn.Conv2d(zq_channels, f_channels, kernel_size=1, stride=1, padding=0)
4830
4831 def forward(self, f: torch.Tensor, zq: torch.Tensor) -> torch.Tensor:
4832 f_size = f.shape[-2:]

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected