Revert "Set default value of ControlNetUnit.enabled to True (#2912)" (#2919)

This reverts commit a5457dcc1c.
pull/2921/head
Chenlei Hu 2024-05-20 12:32:08 -04:00 committed by GitHub
parent a5457dcc1c
commit 59c43499ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 2 additions and 4 deletions

View File

@ -73,7 +73,7 @@ class ControlNetUnit(BaseModel):
loopback: bool = False
# General fields.
enabled: bool = True
enabled: bool = False
module: str = "none"
@validator("module", always=True, pre=True)

View File

@ -666,7 +666,7 @@ class ControlNetUiGroup(object):
self.pulid_mode,
)
unit = gr.State(ControlNetUnit(enabled=False))
unit = gr.State(ControlNetUnit())
# It is necessary to update unit state actively to avoid potential
# flaky racing issue.

View File

@ -94,7 +94,6 @@ def test_inpaint_mask(module: str):
@disable_in_cq
@pytest.mark.parametrize("img_index", [i for i, _ in enumerate(portrait_imgs)])
@pytest.mark.skip(reason="test is for SDXL only")
def test_pulid(img_index: int):
"""PuLID preprocessor should not memory leak."""
payload = dict(

View File

@ -310,7 +310,6 @@ def test_ip_adapter_auto():
@disable_in_cq
@pytest.mark.parametrize("img_index", [i for i, _ in enumerate(portrait_imgs)])
@pytest.mark.skip(reason="test is for SDXL only")
def test_pulid(img_index: int):
"""PuLID should not memory leak."""
assert APITestTemplate(