From 165510ace2cdf9105e13b9f537c3980bd26234d2 Mon Sep 17 00:00:00 2001 From: Jaret Burkett Date: Thu, 15 Aug 2024 12:59:32 -0600 Subject: [PATCH] Dumb typo --- extensions_built_in/sd_trainer/SDTrainer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions_built_in/sd_trainer/SDTrainer.py b/extensions_built_in/sd_trainer/SDTrainer.py index 609ff0dd..fd0fe800 100644 --- a/extensions_built_in/sd_trainer/SDTrainer.py +++ b/extensions_built_in/sd_trainer/SDTrainer.py @@ -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()