Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Feature Request]: "notes" and presets per model when switching Checkpoint, hypernetwork, embedding, etc #5922

Closed
1 task done
Lhun opened this issue Dec 21, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@Lhun
Copy link

Lhun commented Dec 21, 2022

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What would your feature do ?

It's quite common for the ever growing number of checkpoints, texutal inversions, hypernetworks and etc to have requred keywords or other changes, such as modifications to the UI settings as best practices or results, like clip skip 2, etc
For example, when I select a model like ranmadiffusion , there is an expected keyword: "80sanimestyle" . However, there is nothing in the UI to remind me to do that, and the results will differ from what is expected if you forget.

The same thing exists of course for hypernetworks and embeddings. 2.1 functions significantly better with embeddings, and while It's USUALLY the case that the embedding is named after it's keyword, it's not always.
A shortcut to those as something attached to the model on load, or a reminder for your keywords to activate embeddings would be a much welcome enhancement.

It should be fairly easy to implement too, since it's just a front end ui change that might work a bit like saving prompts as presets.

Proposed workflow

  1. Go to Stable Diffusion checkpoint, change checkpoint
  2. On screen, next to the model dropdown, a persistant reminder next to that checkpoint that includes your notes on the checkpoint will be shown. For example, "Remember to use 80sanimestyle and 768x768 with this model, and clip skip 2" will appear after the model is loaded
  3. A button next to the model allows you to edit and save your notes for the model to appear when the model is loaded
  4. ...
  5. profit.

Additional information

No response

@ClashSAN
Copy link
Collaborator

related - #4996

@Mousewrites
Copy link

Mousewrites commented Dec 22, 2022

I asked for something like this, here - #3522 though yours is a lot more comprehensive. Mine is essentially a little editable note box per model, so you could add the data.

@Gerschel
Copy link
Contributor

Gerschel commented Dec 23, 2022

IF YOU LIKE THIS, I HAVE A NEED: Either everyone need to implement element id's, or I need the script title passed in through the kwargs in after_component or before_component. I'm about to spin my own optional overwrite on script.py, or use weakref to get parents. Otherwise I can't distnguish between Mask Blur in inpaint and Mask Blur in scripts.

Here's a workaround, I'll see if I can come up with something else. It may be on the backburner for a minute though, drilling through the main code trying to decide how to pass certain information that would improve my script, at the moment.
If you go into Extensions tab, and look up preset-utils. Install.
image

Then go to detailed save, and just click "Prompt", type in a name and click save.
Then when you go to load the model, click in Quick Set, dropdown choice to that profile, boom, prompt prefilled.

Then you can create your other settings, but don't check prompt, because it will fill it in. This way you can use a setting for "Prompt", and another for your lower settings.

image

Then you can see it in your presets:

image

image

Does size too.

image

@glindsey
Copy link

I would go one step further and introduce the concept of "presets" or "profiles" (or whatever you'd like to call them) which can be selected to auto-configure any number of parameters automatically. I haven't looked at the code (and would need a crash course on Python first), but given that all the controls are already named in ui-config.json I'd imagine it's possible to implement, probably by using the code that sets UI initialization defaults as a starting point.

@catboxanon
Copy link
Collaborator

Notes has been implemented as of recent UI rework in 1.5.0. #7458 (comment)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants