ArtVentureX / sd-webui-agent-scheduler

637 stars 67 forks source link

Api script_args not work #103

Open inewlife opened 1 year ago

inewlife commented 1 year ago

please not deal script_args

JohnnyStreet commented 1 year ago

You can fix this yourself by by using alwayson_scripts and just bypassing the check as shown in https://github.com/ArtVentureX/sd-webui-agent-scheduler/issues/102 ... This is not an ideal solution but it works.

inewlife commented 1 year ago

is script_args , not alwayson_scripts

artventuredev commented 1 year ago

@inewlife The issue should be fixed in the latest update, please give it a try.

Bruce337f commented 1 year ago

Is there any update here? script_args still does not work after switching to a lower version or updating to the latest version. Is there anything that needs to be modified?

artventuredev commented 1 year ago

Here's a working example to use the X/Y/Z plot script with the API:

{
    "prompt": "1girl",
    "negative_prompt": "EasyNegative",
    "script_name": "X/Y/Z plot",
    "script_args": [
        11, "", ["cardosanimeV2Pruned.safetensors [f243aabb88]", "luckyStrikeMix_V02Realistic.safetensors [8c893b37ef]"],
        0, "", [],
        0, "", [],
        true, false, false, false, 0, false
    ]
}
Bruce337f commented 1 year ago

This script works in the original sdapi and can be run in the agent, but it does not produce good enough results. Is there any solution?

https://github.com/IOMisaka/sdapi-scripts/blob/main/scripts/CensorScript.py

Thanks for all your hard-working and replies, great project! !

artventuredev commented 1 year ago

Sorry but I'm unable to help on this. The quality depends on the script and the model that the script uses. So I suggest you search for alternatives for open an PR on the original script repo for further assistance.

Bruce337f commented 1 year ago

Thank you for your timely reply and work, I will adopt and apply it in time!