Make contrastive guidance loss do constant instead of sigma loss schedule by default

This commit is contained in:
Jaret Burkett
2026-08-13 09:52:02 -06:00
parent 4e91fb2d0a
commit 6b7fb60a22

View File

@@ -594,7 +594,7 @@ class TrainConfig:
# toward 1.0 as sigma falls (effective = 1 + (target - 1) * sigma) so the
# extrapolation never amplifies the unpredictable fresh-noise term at low
# sigma. Needed for guidance-distilled models with no guidance embedding.
self.guidance_loss_schedule: str = kwargs.get('guidance_loss_schedule', 'sigma')
self.guidance_loss_schedule: str = kwargs.get('guidance_loss_schedule', 'constant')
self.unconditional_prompt: str = kwargs.get('unconditional_prompt', '')
if isinstance(self.guidance_loss_target, tuple):
self.guidance_loss_target = list(self.guidance_loss_target)