From 1a99c6e7bd02fa19c9c4f58638adfd7cde627e06 Mon Sep 17 00:00:00 2001 From: Bingsu Date: Thu, 1 Jun 2023 20:43:10 +0900 Subject: [PATCH] fix: remove more cn args --- adetailer/args.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/adetailer/args.py b/adetailer/args.py index 923913f..958b149 100644 --- a/adetailer/args.py +++ b/adetailer/args.py @@ -75,7 +75,7 @@ class ADetailerArgs(BaseModel, extra=Extra.forbid): if cond: for k in pops: - p.pop(k) + p.pop(k, None) def extra_params(self, suffix: str = ""): if self.ad_model == "None": @@ -119,6 +119,9 @@ class ADetailerArgs(BaseModel, extra=Extra.forbid): ], cond="None", ) + ppop("ADetailer ControlNet weight", cond=1.0) + ppop("ADetailer ControlNet guidance start", cond=0.0) + ppop("ADetailer ControlNet guidance end", cond=1.0) if suffix: p = {k + suffix: v for k, v in p.items()}