From e81db4cdfe1b06981c4c4908bb1368cd599eabdf Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Sun, 12 Jan 2025 08:55:55 -0500 Subject: [PATCH] cleanup args copy Signed-off-by: Vladimir Mandic --- modules/processing_args.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/processing_args.py b/modules/processing_args.py index 119da259b..9ccd8f9dd 100644 --- a/modules/processing_args.py +++ b/modules/processing_args.py @@ -366,12 +366,12 @@ def set_pipeline_args(p, model, prompts:list, negative_prompts:list, prompts_2:t debug_log(f'Diffusers pipeline args: {args}') _args = {} - print(args['image']) - for k, v in args.items(): + for k, v in args.items(): # pipeline may modify underlying args if isinstance(v, Image.Image): - _args[k] = v.copy() # pipeline may modify underlying args + _args[k] = v.copy() elif (isinstance(v, list) and len(v) > 0 and isinstance(v[0], Image.Image)): _args[k] = [i.copy() for i in v] else: _args[k] = v + return _args