sd-forge-layerdiffuse
sd-forge-layerdiffuse copied to clipboard
[feature request] usable with the API endpoint of forge
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.
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.
This setup doesn't work
"alwayson_scripts": { "LayerDiffuse": { "args": [ { "enabled": true, "method": 4 } ] } }