Skip to content

Commit 05a657d

Browse files
committed
fix broken hires fix
1 parent ded08fc commit 05a657d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

modules/processing.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -686,15 +686,12 @@ def sample(self, conditioning, unconditional_conditioning, seeds, subseeds, subs
686686

687687
noise = create_random_tensors(samples.shape[1:], seeds=seeds, subseeds=subseeds, subseed_strength=subseed_strength, seed_resize_from_h=self.seed_resize_from_h, seed_resize_from_w=self.seed_resize_from_w, p=self)
688688

689+
image_conditioning = self.txt2img_image_conditioning(x)
690+
689691
# GC now before running the next img2img to prevent running out of memory
690692
x = None
691693
devices.torch_gc()
692694

693-
image_conditioning = self.img2img_image_conditioning(
694-
decoded_samples,
695-
samples,
696-
decoded_samples.new_ones(decoded_samples.shape[0], 1, decoded_samples.shape[2], decoded_samples.shape[3])
697-
)
698695
samples = self.sampler.sample_img2img(self, samples, noise, conditioning, unconditional_conditioning, steps=self.steps, image_conditioning=image_conditioning)
699696

700697
return samples

0 commit comments

Comments
 (0)