From c71c8bbd5376194e3c51c8409c1d991fc840493c Mon Sep 17 00:00:00 2001 From: Bingsu Date: Fri, 26 May 2023 01:07:04 +0900 Subject: [PATCH] fix: change with state position --- scripts/!adetailer.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/!adetailer.py b/scripts/!adetailer.py index a8bf08f..d1a5a6d 100644 --- a/scripts/!adetailer.py +++ b/scripts/!adetailer.py @@ -519,10 +519,10 @@ class AfterDetailerScript(scripts.Script): arg_list = self.get_args(*args_) is_processed = False - for n, args in enumerate(arg_list): - if args.ad_model == "None": - continue - with CNHijackRestore(), pause_total_tqdm(): + with CNHijackRestore(), pause_total_tqdm(): + for n, args in enumerate(arg_list): + if args.ad_model == "None": + continue is_processed |= self._postprocess_image(p, pp, args, n=n) if is_processed: