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

Method __init__

diffsynth/models/stepvideo_dit.py:367–371  ·  view source on GitHub ↗
(self, freq=1e4, F0=1.0, scaling_factor=1.0)

Source from the content-addressed store, hash-verified

365
366class RoPE1D:
367 def __init__(self, freq=1e4, F0=1.0, scaling_factor=1.0):
368 self.base = freq
369 self.F0 = F0
370 self.scaling_factor = scaling_factor
371 self.cache = {}
372
373 def get_cos_sin(self, D, seq_len, device, dtype):
374 if (D, seq_len, device, dtype) not in self.cache:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected