mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-01-26 19:29:54 +00:00
🔧 feat: Support depth_hand_refiner ControlNet preprocessor (#460)
This commit is contained in:
@@ -18,8 +18,8 @@ from pydantic import (
|
||||
validator,
|
||||
)
|
||||
|
||||
cn_model_regex = r".*(inpaint|tile|scribble|lineart|openpose).*|^None$"
|
||||
cn_module_regex = r".*(inpaint|tile|pidi|lineart|openpose).*|^None$"
|
||||
cn_model_regex = r".*(inpaint|tile|scribble|lineart|openpose|depth).*|^None$"
|
||||
cn_module_regex = r".*(inpaint|tile|pidi|lineart|openpose|depth).*|^None$"
|
||||
|
||||
|
||||
@dataclass
|
||||
|
||||
@@ -26,6 +26,7 @@ cn_module_choices = {
|
||||
"openpose": ["openpose_full", "dw_openpose_full"],
|
||||
"tile": ["tile_resample", "tile_colorfix", "tile_colorfix+sharp"],
|
||||
"scribble": ["t2ia_sketch_pidi"],
|
||||
"depth": ["depth_midas", "depth_hand_refiner"],
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -48,6 +48,7 @@ cn_model_module = {
|
||||
"lineart": "lineart_coarse",
|
||||
"openpose": "openpose_full",
|
||||
"tile": "tile_resample",
|
||||
"depth": "depth_midas",
|
||||
}
|
||||
cn_model_regex = re.compile("|".join(cn_model_module.keys()))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user