Skip to content

Commit 380bb3f

Browse files
committed
Set default value of ControlNetUnit.enabled to True
1 parent b197f7c commit 380bb3f

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

internal_controlnet/args.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class Config:
7373
loopback: bool = False
7474

7575
# General fields.
76-
enabled: bool = False
76+
enabled: bool = True
7777
module: str = "none"
7878

7979
@validator("module", always=True, pre=True)

scripts/controlnet_ui/controlnet_ui_group.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ def render(self, tabname: str, elem_id_tabname: str) -> None:
666666
self.pulid_mode,
667667
)
668668

669-
unit = gr.State(ControlNetUnit())
669+
unit = gr.State(ControlNetUnit(enabled=False))
670670

671671
# It is necessary to update unit state actively to avoid potential
672672
# flaky racing issue.

tests/web_api/detect_test.py

+1
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ def test_inpaint_mask(module: str):
9494

9595
@disable_in_cq
9696
@pytest.mark.parametrize("img_index", [i for i, _ in enumerate(portrait_imgs)])
97+
@pytest.mark.skip(reason="test is for SDXL only")
9798
def test_pulid(img_index: int):
9899
"""PuLID preprocessor should not memory leak."""
99100
payload = dict(

tests/web_api/generation_test.py

+1
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ def test_ip_adapter_auto():
310310

311311
@disable_in_cq
312312
@pytest.mark.parametrize("img_index", [i for i, _ in enumerate(portrait_imgs)])
313+
@pytest.mark.skip(reason="test is for SDXL only")
313314
def test_pulid(img_index: int):
314315
"""PuLID should not memory leak."""
315316
assert APITestTemplate(

0 commit comments

Comments
 (0)