jimmycarter commited on
Commit
32fb640
1 Parent(s): bf281ac

Fix guidance scale

Browse files
Files changed (1) hide show
  1. pipeline.py +5 -0
pipeline.py CHANGED
@@ -1468,6 +1468,11 @@ class CustomPipeline(DiffusionPipeline, SD3LoraLoaderMixin):
1468
  max_sequence_length=max_sequence_length,
1469
  )
1470
 
 
 
 
 
 
1471
  self._guidance_scale = guidance_scale
1472
  self._guidance_scale_real = guidance_scale_real
1473
  self._joint_attention_kwargs = joint_attention_kwargs
 
1468
  max_sequence_length=max_sequence_length,
1469
  )
1470
 
1471
+ # guidance_scale_real is redundant because this pipeline was originally
1472
+ # made to be backwards compatible, but to make it the default just set
1473
+ # guidance scale to be the same things.
1474
+ guidance_scale_real = guidance_scale
1475
+
1476
  self._guidance_scale = guidance_scale
1477
  self._guidance_scale_real = guidance_scale_real
1478
  self._joint_attention_kwargs = joint_attention_kwargs