mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-04-30 19:21:39 +00:00
Actually use the correct timestep sampling instead of calculating it and moving on lol. Tested a few with it and it seems to work better.
This commit is contained in:
@@ -55,4 +55,6 @@ class CustomFlowMatchEulerDiscreteScheduler(FlowMatchEulerDiscreteScheduler):
|
|||||||
# Sort the timesteps in descending order
|
# Sort the timesteps in descending order
|
||||||
timesteps, _ = torch.sort(timesteps, descending=True)
|
timesteps, _ = torch.sort(timesteps, descending=True)
|
||||||
|
|
||||||
|
self.timesteps = timesteps.to(device=device)
|
||||||
|
|
||||||
return timesteps
|
return timesteps
|
||||||
|
|||||||
Reference in New Issue
Block a user