mirror of
https://github.com/SWivid/F5-TTS.git
synced 2025-12-29 06:05:49 -08:00
Fix sample timesteps
This commit is contained in:
@@ -193,7 +193,7 @@ class CFM(nn.Module):
|
||||
y0 = (1 - t_start) * y0 + t_start * test_cond
|
||||
steps = int(steps * (1 - t_start))
|
||||
|
||||
t = torch.linspace(t_start, 1, steps, device=self.device, dtype=step_cond.dtype)
|
||||
t = torch.linspace(t_start, 1, steps + 1, device=self.device, dtype=step_cond.dtype)
|
||||
if sway_sampling_coef is not None:
|
||||
t = t + sway_sampling_coef * (torch.cos(torch.pi / 2 * t) - 1 + t)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user