MCPcopy Create free account
hub / github.com/Francis-Rings/StableAnimator / forward

Method forward

animation/modules/pose_net.py:57–63  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected