hr conditioning

This commit is contained in:
invincibledude 2023-01-22 15:32:47 +03:00
parent 125d5c8d96
commit 34f6d66742

View File

@ -635,7 +635,7 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
with devices.autocast(): with devices.autocast():
if type(p) == StableDiffusionProcessingTxt2Img: if type(p) == StableDiffusionProcessingTxt2Img:
if p.enable_hr: if p.enable_hr:
if p.hr_prompts != '': if p.hr_prompt != '':
samples_ddim = p.sample(conditioning=c, unconditional_conditioning=uc, hr_conditioning=hr_c, hr_unconditional_conditioning=hr_uc, seeds=seeds, subseeds=subseeds, subseed_strength=p.subseed_strength, prompts=prompts) samples_ddim = p.sample(conditioning=c, unconditional_conditioning=uc, hr_conditioning=hr_c, hr_unconditional_conditioning=hr_uc, seeds=seeds, subseeds=subseeds, subseed_strength=p.subseed_strength, prompts=prompts)
else: else:
samples_ddim = p.sample(conditioning=c, unconditional_conditioning=uc, hr_conditioning=c, samples_ddim = p.sample(conditioning=c, unconditional_conditioning=uc, hr_conditioning=c,