Dumb typo

This commit is contained in:
Jaret Burkett
2024-08-15 12:59:32 -06:00
parent 0355662e8e
commit 165510ace2

View File

@@ -382,7 +382,7 @@ class SDTrainer(BaseSDTrainProcess):
loss = torch.nn.functional.mse_loss(pred.float(), target.float(), reduction="none")
# handle linear timesteps and only adjust the weight of the timesteps
if self.sd.is_flow_matching and self.train_config.linear_timestqeps:
if self.sd.is_flow_matching and self.train_config.linear_timesteps:
# calculate the weights for the timesteps
timestep_weight = self.sd.noise_scheduler.get_weights_for_timesteps(timesteps).to(loss.device, dtype=loss.dtype)
timestep_weight = timestep_weight.view(-1, 1, 1, 1).detach()