alexnasa commited on
Commit
0fac0b8
·
verified ·
1 Parent(s): 584c78f

Update pipelines/pipeline_seesr.py

Browse files
Files changed (1) hide show
  1. pipelines/pipeline_seesr.py +2 -1
pipelines/pipeline_seesr.py CHANGED
@@ -1025,6 +1025,7 @@ class StableDiffusionControlNetPipeline(DiffusionPipeline, TextualInversionLoade
1025
 
1026
  if use_KDS:
1027
  # 1) update batch_size to account for the new particles
 
1028
  batch_size = batch_size * num_particles
1029
 
1030
  # 2) now repeat latents/images/prompts
@@ -1246,7 +1247,7 @@ class StableDiffusionControlNetPipeline(DiffusionPipeline, TextualInversionLoade
1246
  break
1247
  else:
1248
  # fall back if none match:
1249
- patch_size = 4
1250
 
1251
  # 3) Apply KDE steering
1252
  m_shift = kde_grad(x0_pred, patch_size=patch_size, bandwidth=0.1)
 
1025
 
1026
  if use_KDS:
1027
  # 1) update batch_size to account for the new particles
1028
+ print(f'beforehand {latents.shape}:{prompt_embeds.shape}')
1029
  batch_size = batch_size * num_particles
1030
 
1031
  # 2) now repeat latents/images/prompts
 
1247
  break
1248
  else:
1249
  # fall back if none match:
1250
+ patch_size = H
1251
 
1252
  # 3) Apply KDE steering
1253
  m_shift = kde_grad(x0_pred, patch_size=patch_size, bandwidth=0.1)