instruct-pix2pix support

This commit is contained in:
Kyle
2023-02-02 09:37:01 -05:00
parent 226d840e84
commit 269833067d
2 changed files with 5 additions and 5 deletions

View File

@@ -186,7 +186,7 @@ class StableDiffusionProcessing:
return conditioning
def edit_image_conditioning(self, source_image):
conditioning_image = self.sd_model.get_first_stage_encoding(self.sd_model.encode_first_stage(source_image))
conditioning_image = self.sd_model.encode_first_stage(source_image).mode()
return conditioning_image