mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-04-26 09:19:20 +00:00
Reworked timestep distribution on flowmatch sampler when training.
This commit is contained in:
@@ -906,6 +906,10 @@ class BaseSDTrainProcess(BaseTrainProcess):
|
||||
self.sd.noise_scheduler.set_timesteps(
|
||||
num_train_timesteps, device=self.device_torch, original_inference_steps=num_train_timesteps
|
||||
)
|
||||
elif self.train_config.noise_scheduler == 'flowmatch':
|
||||
self.sd.noise_scheduler.set_train_timesteps(
|
||||
num_train_timesteps, device=self.device_torch
|
||||
)
|
||||
else:
|
||||
self.sd.noise_scheduler.set_timesteps(
|
||||
num_train_timesteps, device=self.device_torch
|
||||
|
||||
Reference in New Issue
Block a user