Skip to content
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

Improvements to the integration of Model Organizer into Web UI #75

Merged
merged 2 commits into from
Jan 22, 2024
Merged

Conversation

Learwin
Copy link
Contributor

@Learwin Learwin commented Jan 21, 2024

As mentioned in #74 I suggested a few ways of better integrating Model Organizer into the existing Web UI. As of right now MO is really useful for organizing and tagging models but is lacking in useability.
This PR tries to fix some of the shortcommings I noticed by adding a few features.

  • A button on the extra networks card that will search for that file in the MO tab and automatically open the add record button if that record does not exist. Otherwise it'll open the details
  • If opened that way, the edit menu will now be prefilled with existing data that is present in the model's JSON file. For example autfilling of positive and negative prompts, preferred weight and if configured will automatically select the existing model file to bind to.
  • Added the preferred weight slider to each record. (Although only Lora/lycoris and hypernetworks can use it)
  • Clicking the image in the organizer will add that records positive and/or negative prompt/s into txt2img or img2img Prompt textareas. If you click on a Checkpoint card it will automatically enable that checkpoint. (The dev version of WebUi has the ability to specify a VAE which will be loaded with each checkpoint but that has to be configured in the "Edit Metadata" Menu of each Checkpoint in the Extra Networks Tab).

This is in no way, shape or form optimal code as this was my first endeavor into python and js. There most likely is a bunch of redundant or duplicate code but I just wanted to get this to work for myself.
I tested it for a good while but I can't guarantee that it has no bugs or breaks existing behaviour.

Added functionality to inside the organizer
Ability to "import" extra network json files
Ability to click on the card to add prompt to txt2img or img2img
@alexandersokol
Copy link
Owner

Hello!
The same here, I'm still new for both JS and Python, but you did a great job adding this features.
Thank you for contributing!

@alexandersokol alexandersokol merged commit 5a0c237 into alexandersokol:main Jan 22, 2024
@Learwin Learwin mentioned this pull request Feb 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants