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

Function timestep_transform

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

Source from the content-addressed store, hash-verified

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

Callers 1

generate_infinitetalkMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected