mirror of
https://github.com/vladmandic/automatic
synced 2026-09-13 10:08:43 +02:00
fix xyz grid with scripts/detailer
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -202,7 +202,6 @@ class YoloRestorer(Detailer):
|
||||
shared.log.info(f'Detailer: model="{name}" no items detected')
|
||||
continue
|
||||
|
||||
pp = None
|
||||
shared.opts.data['mask_apply_overlay'] = True
|
||||
resolution = 512 if shared.sd_model_type in ['none', 'sd', 'lcm', 'unknown'] else 1024
|
||||
orig_prompt: str = orig_p.get('all_prompts', [''])[0]
|
||||
|
||||
+11
-3
@@ -419,6 +419,14 @@ class Script(scripts.Script):
|
||||
|
||||
|
||||
def process_images(self, p, *args): # pylint: disable=W0221, W0613
|
||||
if p.iteration > 0 and cache is not None and len(cache.images) > 0:
|
||||
cache.images = [] # avoid returning same images multiple items
|
||||
return cache
|
||||
if hasattr(cache, 'used'):
|
||||
cache.images.clear()
|
||||
cache.used = False
|
||||
elif cache is not None and len(cache.images) > 0:
|
||||
cache.used = True
|
||||
p.restore_faces = False
|
||||
p.detailer = False
|
||||
p.color_corrections = None
|
||||
p.scripts = None
|
||||
return cache
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user