Replies: 1 comment
-
You may want to look at https://github.com/Zyin055/Config-Presets or its source. It does what you're trying to do and if nothing else could help point you in the right direction. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
kwa-button.txt
I am working on an extension for Automatic1111 and one feature is a button that should copy some fixed preset values for "steps" , "CFG scale" etc into the main UIs fields. Basically similar function as the "Paste" button or the "Send to txt2img" Button in the main UI, but with fixed values. In order to test the code I made a separate extension with just that one button. The file kwa-button.py (see attached TXT file with code) is placed in /extensions/kwa-button/scripts/. The tab with the button is created and works.
But now...
The first half of the code works fine when i click on the button. Steps value 25 is transferred, CFG Scale value 1.5 is transferred, but then...
the values in the two dropdown menus "Euler" and "SGM Uniform" are transferred but show up in GREY in the cells and are ignored when I hit "generate". (see picture)
The UI uses the previous values instead.
Has anyone an idea how to fix the code so that the values in the dropdown menues are properly selected when the button is clicked?
I would really appreciate your input here.
Best regards, COOKN
Beta Was this translation helpful? Give feedback.
All reactions