new lora handler and remove lyco

This commit is contained in:
Vladimir Mandic
2023-10-05 14:30:58 -04:00
parent 7dc098182a
commit 3727bf3d02
29 changed files with 1260 additions and 656 deletions
+4
View File
@@ -164,12 +164,16 @@ class StableDiffusionProcessing:
self.s_max = shared.opts.s_max
self.s_tmin = shared.opts.s_tmin
self.s_tmax = float('inf') # not representable as a standard ui option
self.comments = {}
shared.opts.data['clip_skip'] = clip_skip
@property
def sd_model(self):
return shared.sd_model
def comment(self, text):
self.comments[text] = 1
def txt2img_image_conditioning(self, x, width=None, height=None):
self.is_using_inpainting_conditioning = self.sd_model.model.conditioning_key in {'hybrid', 'concat'}
return txt2img_image_conditioning(self.sd_model, x, width or self.width, height or self.height)