Astridkraft commited on
Commit
9d48201
·
verified ·
1 Parent(s): 6fccf31

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -684,14 +684,11 @@ class ImageToImageProgressCallback:
684
 
685
  def __call__(self, pipe, step, timestep, callback_kwargs):
686
  self.current_step = step + 1
687
-
688
  if self.actual_total_steps is None:
689
- if self.strength < 1.0:
690
- self.actual_total_steps = int(self.total_steps * self.strength)
691
- else:
692
- self.actual_total_steps = self.total_steps
693
 
694
- print(f"🎯 INTERNE STEP-AUSGABE: Strength {self.strength} → {self.actual_total_steps} tatsächliche Denoising-Schritte")
695
 
696
  progress_percent = (step / self.actual_total_steps) * 100
697
  self.progress(progress_percent / 100, desc="Generierung läuft...")
 
684
 
685
  def __call__(self, pipe, step, timestep, callback_kwargs):
686
  self.current_step = step + 1
687
+
688
  if self.actual_total_steps is None:
689
+ self.actual_total_steps = int(self.total_steps * self.strength)
 
 
 
690
 
691
+ print(f"🎯 Steps: {self.total_steps} × {self.strength} → {self.actual_total_steps} tatsächliche Denoising-Schritte")
692
 
693
  progress_percent = (step / self.actual_total_steps) * 100
694
  self.progress(progress_percent / 100, desc="Generierung läuft...")