Mikubill / sd-webui-controlnet

WebUI extension for ControlNet
GNU General Public License v3.0
16.41k stars 1.9k forks source link

"reference_only" has suddenly stopped working #2935

Closed owlwc closed 1 month ago

owlwc commented 1 month ago

Is there an existing issue for this?

What happened?

Today, when using 'reference_only' to generate images, I found that it suddenly stopped working.

This is the image information generated without enabling 'reference_only':

image

Here is the image information generated with 'reference_only', however, it did not work.":

1716788552215

But using 'reference_adain' works as expected:

image

Below is the log output, and there are no errors reported:

image

This is not normal.

Did I inadvertently change some settings?

Steps to reproduce the problem

enabled and disabled the reference

What should have happened?

At least the output generated before enabling 'reference_only' should be different from the output generated after enabling it.

Commit where the problem happens

webui: v1.9.3 controlnet: v1.1.449

What browsers do you use to access the UI ?

Microsoft Edge

Command Line Arguments

Launching Web UI with arguments: --theme light --xformers --no-half-vae --api --autolaunch

List of enabled extensions

image

Console logs

reference_only:
==================================================================================
2024-05-27 13:41:34,440 - ControlNet - INFO - unit_separate = False, style_align = False
2024-05-27 13:41:34,444 - ControlNet - INFO - Using preprocessor: reference_only
2024-05-27 13:41:34,444 - ControlNet - INFO - preprocessor resolution = 640
2024-05-27 13:41:34,492 - ControlNet - INFO - ControlNet Hooked - Time = 0.05523490905761719
2024-05-27 13:41:34,877 - ControlNet - INFO - ControlNet used torch.float32 VAE to encode torch.Size([1, 4, 80, 48]).
==================================================================================
reference_adain:
==================================================================================
2024-05-27 13:45:16,414 - ControlNet - INFO - Preview Resolution = 640
2024-05-27 13:45:22,231 - ControlNet - INFO - unit_separate = False, style_align = False
2024-05-27 13:45:22,234 - ControlNet - INFO - Using preprocessor: reference_adain
2024-05-27 13:45:22,234 - ControlNet - INFO - preprocessor resolution = 640
==================================================================================

Additional information

No response

huchenlei commented 1 month ago

I cannot reproduce this locally. reference_only seems to work fine. Can you share detailed reproduction steps from launching webui? It might be due to some bugs, reference_only always applied even you disable the unit.

owlwc commented 1 month ago

I cannot reproduce this locally. seems to work fine. Can you share detailed reproduction steps from launching webui? It might be due to some bugs, reference_only always applied even you disable the unit.reference_only

Thank you for the tip, I've resolved the issue. It seems to have been caused by a third-party launcher. After launching it directly in the command prompt's virtual environment with 'python webui.py', 'reference_only' is working properly now.

image

image