fix pix2pix producing bad results

This commit is contained in:
AUTOMATIC1111 2023-11-07 11:33:16 +03:00
parent 47bccbebae
commit 5e80d9ee99

View File

@ -296,7 +296,7 @@ class StableDiffusionProcessing:
return conditioning
def edit_image_conditioning(self, source_image):
conditioning_image = images_tensor_to_samples(source_image*0.5+0.5, approximation_indexes.get(opts.sd_vae_encode_method))
conditioning_image = shared.sd_model.encode_first_stage(source_image).mode()
return conditioning_image