MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / forward

Method forward

diffsynth/models/stepvideo_vae.py:454–464  ·  view source on GitHub ↗
(self, x, is_init=True, residual=None)

Source from the content-addressed store, hash-verified

452 self.is_first_run = True
453
454 def forward(self, x, is_init=True, residual=None):
455 if self.is_first_run:
456 self.is_first_run = False
457
458 if self.time_causal_padding == (1, 1, 1, 1, 2, 0):
459 pass
460 else:
461 x = nn.functional.pad(x, self.time_causal_padding).contiguous()
462
463 x = base_conv3d_channel_last(x, self.conv, residual=residual)
464 return x
465
466class AttnBlock(nn.Module):
467 def __init__(self,

Callers

nothing calls this directly

Calls 1

base_conv3d_channel_lastFunction · 0.85

Tested by

no test coverage detected