MCPcopy Create free account
hub / github.com/MeiGen-AI/InfiniteTalk / init_freqs

Method init_freqs

wan/modules/multitalk_model.py:548–555  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

546 self.init_weights()
547
548 def init_freqs(self):
549 d = self.dim // self.num_heads
550 self.freqs = torch.cat([
551 rope_params(1024, d - 4 * (d // 6)),
552 rope_params(1024, 2 * (d // 6)),
553 rope_params(1024, 2 * (d // 6))
554 ],
555 dim=1)
556
557 def teacache_init(
558 self,

Callers 1

__init__Method · 0.80

Calls 1

rope_paramsFunction · 0.70

Tested by

no test coverage detected