lllyasviel / sd-forge-layerdiffuse

[WIP] Layer Diffusion for WebUI (via Forge)
Apache License 2.0
3.86k stars 331 forks source link

[feature request] usable with the API endpoint of forge #63

Open AWAS666 opened 8 months ago

AWAS666 commented 8 months ago

Not sure if this already works, haven't found it at the very least. Would be cool to be able to use this with the API endpoint.

graemeniedermayer commented 7 months ago

I did manage to get the autogenerated api working. You can include this in the alwayson_scripts of txt2img or img2img

"alwayson_scripts": {
        "LayerDiffuse": {
          "args": [
            {
              #   "(SDXL) Only Generate Transparent Image (Attention Injection)"
              "method": 4 # this number is the order the models are presented
            }
          ]
        }
    }

You can look at the script.py file and add then use the ui values as arguments.

874808039 commented 2 months ago

This setup doesn't work "alwayson_scripts": { "LayerDiffuse": { "args": [ { "enabled": true, "method": 4 } ] } }