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

Method forward

diffsynth/models/svd_unet.py:132–135  ·  view source on GitHub ↗
(self, num_frames, pivot_frame_id=0)

Source from the content-addressed store, hash-verified

130 return position_id
131
132 def forward(self, num_frames, pivot_frame_id=0):
133 position_ids = [self.frame_id_to_position_id(abs(i-pivot_frame_id)) for i in range(num_frames)]
134 position_ids = torch.IntTensor(position_ids)
135 return position_ids
136
137
138class TemporalAttentionBlock(torch.nn.Module):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected