sd-forge-layerdiffuse icon indicating copy to clipboard operation
sd-forge-layerdiffuse copied to clipboard

[feature request] usable with the API endpoint of forge

Open AWAS666 opened this issue 11 months ago • 2 comments

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.

AWAS666 avatar Mar 10 '24 19:03 AWAS666

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.

graemeniedermayer avatar Mar 30 '24 20:03 graemeniedermayer

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

874808039 avatar Aug 12 '24 07:08 874808039