Leveraging Automatic's new API alwayson_scripts
field
#308
Replies: 2 comments 3 replies
-
I haven't looked at the updated script arguments yet, in the meanwhile, have you had a look at dynamicprompts? That's the library that drives the extension. Depends on what you're trying to do, it might be more convenient than using Auto1111's api. |
Beta Was this translation helpful? Give feedback.
-
Quick update on this. Looks like the {
"enable_hr": false,
"prompt": "",
"seed": -1,
"sampler_name": "DDIM",
"batch_size": 1,
"n_iter": 1,
"steps": 20,
"cfg_scale": 7,
"width": 512,
"height": 512,
"alwayson_scripts": {
"Dynamic Prompts v2.8.4": { // def title():
"args": [
true, // is_enabled: bool
false, // is_combinatorial: bool
1, // combinatorial_batches: int
true, // is_magic_prompt: bool
true, // is_feeling_lucky: bool
false, // is_attention_grabber: bool
1.1, // min_attention: float
1.5, // max_attention: float
100, // magic_prompt_length: int
0.7, // magic_temp_value (I believe this is magic prompt creativity): float
false, // use_fixed_seed: bool
false, // unlink_seed_from_prompt: bool
false, // disable_negative_prompt: bool
false, // enable_jinja_templates: bool
false, // no_image_generation: bool
0, // max_generations: int
"Gustavosta/MagicPrompt-Stable-Diffusion", // magic_model: string
null // magic_blocklist_regex: string or null
]
}
}
} Has you might have noticed the dictionary key must be the script The arguments are the ones passed into the |
Beta Was this translation helpful? Give feedback.
-
The WebUI API was recently updated to allow script arguments to be passed in to
alwayson_scripts
, if I'm not mistaken dynamic-prompts fall under that category right?Is there a way we can now consume the script from an external source via the api endpoints? Things like Magic Prompt would be really interesting to implement. With proper documentation about the correct argument variables to send we could make it work.
Beta Was this translation helpful? Give feedback.
All reactions