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

Method __init__

diffsynth/models/svd_unet.py:116–119  ·  view source on GitHub ↗
(self, max_id=25, repeat_length=20)

Source from the content-addressed store, hash-verified

114
115class PositionalID(torch.nn.Module):
116 def __init__(self, max_id=25, repeat_length=20):
117 super().__init__()
118 self.max_id = max_id
119 self.repeat_length = repeat_length
120
121 def frame_id_to_position_id(self, frame_id):
122 if frame_id < self.max_id:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected