alexnasa commited on
Commit
87b3532
·
verified ·
1 Parent(s): 4867ace

Update pipelines/pipeline_seesr.py

Browse files
Files changed (1) hide show
  1. pipelines/pipeline_seesr.py +5 -0
pipelines/pipeline_seesr.py CHANGED
@@ -1215,6 +1215,8 @@ class StableDiffusionControlNetPipeline(DiffusionPipeline, TextualInversionLoade
1215
 
1216
  if use_KDS:
1217
 
 
 
1218
  # 2) Compute x₀ prediction
1219
  beta_t = 1 - self.scheduler.alphas_cumprod[t]
1220
  alpha_t = self.scheduler.alphas_cumprod[t].sqrt()
@@ -1244,6 +1246,9 @@ class StableDiffusionControlNetPipeline(DiffusionPipeline, TextualInversionLoade
1244
  + sigma_prev * noise_pred_kds
1245
  ).detach().requires_grad_(True)
1246
  else:
 
 
 
1247
  # compute the previous noisy sample x_t -> x_t-1
1248
  latents = self.scheduler.step(noise_pred, t, latents, **extra_step_kwargs, return_dict=False)[0]
1249
 
 
1215
 
1216
  if use_KDS:
1217
 
1218
+ print("using KDS")
1219
+
1220
  # 2) Compute x₀ prediction
1221
  beta_t = 1 - self.scheduler.alphas_cumprod[t]
1222
  alpha_t = self.scheduler.alphas_cumprod[t].sqrt()
 
1246
  + sigma_prev * noise_pred_kds
1247
  ).detach().requires_grad_(True)
1248
  else:
1249
+
1250
+ print("KDS Free")
1251
+
1252
  # compute the previous noisy sample x_t -> x_t-1
1253
  latents = self.scheduler.step(noise_pred, t, latents, **extra_step_kwargs, return_dict=False)[0]
1254