-
-
Notifications
You must be signed in to change notification settings - Fork 881
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
[Big update] - Dynamic params, Ui rehaul, mobile fixes, and simplification of the txt2img tab #421
Conversation
Signed-off-by: Alex Volkov <[email protected]>
Signed-off-by: Alex Volkov <[email protected]>
Signed-off-by: altryne <[email protected]>
Conflict from #381 will look at shortly |
looks fantastic |
It's working in my tests, except the buttons for copy to clipboard and upscale w/ esrgan Had to fix some things, going to merge those changes to this branch now msedge_7OnjxCzF18.mp4 |
Question regarding this PR: |
Not yet @JohannesGaessler If you could test the branch as well I could just temporarily remove the upscale w/ esrgan and copy to clipboard (the image one) buttons to get this out on main sooner |
I would recommend to enforce that at least one hyphen prefix is used (really two would be ideal) to avoid accidentally writing that parameter syntax in a prompt unexpectedly:
|
@nderscore I think -- would be better too Checked and copy to clipboard for the image worked before, the original pr from @altryne appeared to have the function missing, I'll have another look I did notice the default cfg scale is 5 on img2img which is too low, I think some users are reluctant to play around with the settings so the defaults for img2img are definitely something that need looking at, with cfg scale 5 the differences were negligible which is actually a source of complaints (img2img doesnt do anything). Below is the cfg scale 5, it was k_lms too instead of k_euler but lms and euler produce comparable results so its the cfg scale imo |
Yeah im gonna push this asap and just deal with the complaints about the copy to clipboard after, because img2img working is more important |
Thanks @nderscore wanted to tag you for review. Then during my work they released a new way, with gobot which.. makes more sense to me and separates with : and has normal words So then I combined the two... and I agree it can disappear some combinations, but I wasn't about to write two regexes per param . Then I did a for loop lol, and... I made it, but the code was... so incredible ugly, it was a template string, inside a regex, inside a python file .. This needs a fresh set of eyes for sure, but I think let's see what folks think |
That syntax makes more sense on Discord, where they have a custom UI for entering command arguments, and that syntax only always used with a Using |
@hlky I'm not sure what you were trying to tell me. |
I just pulled from master after this PR was merged. |
Yeah, it's the grid image, I had previously fixed this because it's not 100% clear when making 1 image, must have got added back in. The fix was to not add grid to Gradio Gallery output if count is 1, another addition could be do not generate/save grid at all if only 1 image is made |
Also a question regarding "variation_amount" and "variation_seed": |
@hlky To clarify, this is what my UI looks like when I generate two images: These don't seem to be grids but actual duplicates. |
Hello @altryne 👋
|
I've rewritten this feature like 3 times but I'm so glad I added it.
I give you: dynamic params
You can now control the basics params right from the input box, and they will update in the system :
This also means, we can copy paste and load most of the params from both the old SD discord bot replies and the new gobot replies
This also means, users are free to specify whichever params they want outside of our defaults.
Supports many way users can think about params
width:124
or-W 234
or--cfg-scale 123
etc etcRevamped output box, with simplified UI and colorful tags for params :
Mobile responsoive support and prompt input changes: (not even dreamstudio has this!)
Quality of life changes and sensible defaults
TODOS - post merge:
Restore the aspect ratio calculation
Restore the loader css missing.
Sleep