(self, x)
| 55 | init.zeros_(self.final_proj.bias) |
| 56 | |
| 57 | def forward(self, x): |
| 58 | if x.ndim == 5: |
| 59 | x = einops.rearrange(x, "b f c h w -> (b f) c h w") |
| 60 | x = self.conv_layers(x) |
| 61 | x = self.final_proj(x) |
| 62 | |
| 63 | return x * self.scale |
| 64 | |
| 65 | @classmethod |
| 66 | def from_pretrained(cls, pretrained_model_path): |
nothing calls this directly
no outgoing calls
no test coverage detected