MCPcopy Create free account
hub / github.com/MeiGen-AI/MultiTalk / timestep_transform

Function timestep_transform

wan/multitalk.py:92–101  ·  view source on GitHub ↗
(
    t,
    shift=5.0,
    num_timesteps=1000,
)

Source from the content-addressed store, hash-verified

90
91
92def timestep_transform(
93 t,
94 shift=5.0,
95 num_timesteps=1000,
96):
97 t = t / num_timesteps
98 # shift the timestep based on ratio
99 new_t = shift * t / (1 + (shift - 1) * t)
100 new_t = new_t * num_timesteps
101 return new_t
102
103
104

Callers 1

generateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected