fix control with adetailer

This commit is contained in:
Vladimir Mandic
2024-04-17 08:55:16 -04:00
parent 052f0fcd73
commit 77909a103a
3 changed files with 22 additions and 16 deletions
+5
View File
@@ -283,6 +283,11 @@ def process_diffusers(p: processing.StableDiffusionProcessing):
else:
debug(f'Diffusers unknown task args: {k}={v}')
# handle implicit controlnet
if 'control_image' in possible and 'control_image' not in args and 'image' in args:
debug('Diffusers: set control image')
args['control_image'] = args['image']
sd_hijack_hypertile.hypertile_set(p, hr=len(getattr(p, 'init_images', [])) > 0)
# debug info