AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
136.37k stars 25.99k forks source link

[Bug]: using parameters --nowebui --api #11016

Open Elziy opened 1 year ago

Elziy commented 1 year ago

Is there an existing issue for this?

What happened?

When using parameters --nowebui --api , Unable to use LoRA, it prompts Skipping unknown extra network: lora, and the /sdapi/v1/scripts api service returns empty after starting

{
    "txt2img": [],
     "img2img": []
}

, but the result can be returned normally after calling the image generation once, and there will be no such situation without the --nowebuiparameter

Steps to reproduce the problem

  1. Go to ....
  2. Press ....
  3. ...

What should have happened?

  1. when using --nowebui LoRa is available
  2. The /sdapi/v1/scripts api is available when the project is just started

Commit where the problem happens

b6af0a3809ea869fb180633f9affcae4b199ffcf

What Python version are you running on ?

Python 3.10.x

What platforms do you use to access the UI ?

Windows

What device are you running WebUI on?

Nvidia GPUs (RTX 20 above)

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

--medvram --theme light --xformers --api --autolaunch --nowebui

List of extensions

used a1111-sd-webui-locon

Console logs

Skipping unknown extra network: lora

Additional information

No response

rbbrdckybk commented 1 year ago

I'm experiencing the same issue. Loras activate fine without the --nowebui parameter, and have no effect if it's included.

ryankashi commented 1 year ago

Any updates on this? I'm getting the same issue. As soon as I add --nowebui, LoRAs no longer apply themselves.