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

Method forward

diffsynth/models/stepvideo_vae.py:556–561  ·  view source on GitHub ↗
(self, x, is_init=True)

Source from the content-addressed store, hash-verified

554 self.conv = CausalConv(in_channels, in_channels, kernel_size=3, stride=stride)
555
556 def forward(self, x, is_init=True):
557 if self.with_conv:
558 x = self.conv(x, is_init)
559 else:
560 x = nn.functional.avg_pool3d(x, kernel_size=2, stride=2)
561 return x
562
563class VideoEncoder(nn.Module):
564 def __init__(self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected