Skip to content

Commit cf8c36c

Browse files
authored
Revert "Set default value of ControlNetUnit.enabled to True (#2912)"
This reverts commit a5457dc.
1 parent a5457dc commit cf8c36c

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
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 = True
76+
enabled: bool = False
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(enabled=False))
669+
unit = gr.State(ControlNetUnit())
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,7 +94,6 @@ 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")
9897
def test_pulid(img_index: int):
9998
"""PuLID preprocessor should not memory leak."""
10099
payload = dict(

tests/web_api/generation_test.py

-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,6 @@ 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")
314313
def test_pulid(img_index: int):
315314
"""PuLID should not memory leak."""
316315
assert APITestTemplate(

0 commit comments

Comments
 (0)