-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webui api #8
Comments
@nguyenvuducthuy Did you find a solution? I took a look at the
Apart from this there is also the returned values from the I'm still not sure if the api has an handler out of the box without the script providing a specific implementation to call the arguments but it's worth a shot. |
Ok, seems like my assumptions were correct. We can use the {
"enable_hr": false,
"prompt": "red ferrari 458 italia, clear blue sky, green mountains, yellow house in the background",
"seed": 1329830405,
"sampler_name": "DDIM",
"batch_size": 1,
"n_iter": 1,
"steps": 20,
"cfg_scale": 7,
"width": 512,
"height": 512,
"alwayson_scripts": {
"Cutoff": {
"args": [
true, // enabled: bool
"red, blue, green, yellow", // targets: string
2, // weight: float
false, // disable_neg: bool
false, // strong: bool (Cutoff strongly)
"", // padding: string or int (Padding token (ID or single token))
"Lerp", // inpt: string (Interpolation method) Possible values: ["Lerp", "SLerp" ]
true, //debug: bool (useful if you want to make sure it's working, check the output below)
]
}
}
} If you copy this into Swagger or your app, make sure you delete the json comments they are for demonstration purposes only. Notice that the Since we have a bool to log debug info, we can use it to make sure the script is being triggered right before inference, this is the output of the example I provided:
I don't understand what the script is doing in the background but it seems to be working as if it was called from the webui. Is there something abnormal that you can spot in there? As for the results. Most likely is improper prompting (should have used Further testing needs to be done but this is really promissing already! EDIT: After a few more generations it seems to be replicating the same behavior from the webui so the api call seems to be working as expected. Quick question regarding the padding token, the default value is I also noticed that sometimes it helps not targeting all the colors but only the ones that get confused by the AI, "red,yellow" in this case. |
thanks look like it working in my tool, but the result rate isn't high ... I will check more to see why |
Hi,
How can I use it with webui api?
The text was updated successfully, but these errors were encountered: