mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-05-01 11:41:41 +00:00
fix: fix controlnet module regex
This commit is contained in:
@@ -19,6 +19,7 @@ from pydantic import (
|
||||
)
|
||||
|
||||
cn_model_regex = r".*(inpaint|tile|scribble|lineart|openpose).*|^None$"
|
||||
cn_module_regex = r".*(inpaint|tile|pidi|lineart|openpose).*|^None$"
|
||||
|
||||
|
||||
class Arg(NamedTuple):
|
||||
@@ -71,7 +72,7 @@ class ADetailerArgs(BaseModel, extra=Extra.forbid):
|
||||
ad_clip_skip: conint(ge=1, le=12) = 1
|
||||
ad_restore_face: bool = False
|
||||
ad_controlnet_model: constr(regex=cn_model_regex) = "None"
|
||||
ad_controlnet_module: Optional[constr(regex=cn_model_regex)] = None
|
||||
ad_controlnet_module: Optional[constr(regex=cn_module_regex)] = None
|
||||
ad_controlnet_weight: confloat(ge=0.0, le=1.0) = 1.0
|
||||
ad_controlnet_guidance_start: confloat(ge=0.0, le=1.0) = 0.0
|
||||
ad_controlnet_guidance_end: confloat(ge=0.0, le=1.0) = 1.0
|
||||
|
||||
Reference in New Issue
Block a user