mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-04-30 11:11:21 +00:00
feat: disable dict controlnet unit
This commit is contained in:
@@ -327,6 +327,9 @@ class AfterDetailerScript(scripts.Script):
|
|||||||
if hasattr(obj, "input_mode"):
|
if hasattr(obj, "input_mode"):
|
||||||
obj.input_mode = getattr(obj.input_mode, "SIMPLE", "simple")
|
obj.input_mode = getattr(obj.input_mode, "SIMPLE", "simple")
|
||||||
|
|
||||||
|
elif isinstance(obj, dict) and "module" in obj:
|
||||||
|
obj["enabled"] = False
|
||||||
|
|
||||||
def get_i2i_p(self, p, args: ADetailerArgs, image):
|
def get_i2i_p(self, p, args: ADetailerArgs, image):
|
||||||
seed, subseed = self.get_seed(p)
|
seed, subseed = self.get_seed(p)
|
||||||
width, height = self.get_width_height(p, args)
|
width, height = self.get_width_height(p, args)
|
||||||
|
|||||||
Reference in New Issue
Block a user