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

Make the UI generate configs that use submapping for axises values #84

Open
skfoo opened this issue Aug 14, 2023 · 0 comments
Open

Make the UI generate configs that use submapping for axises values #84

skfoo opened this issue Aug 14, 2023 · 0 comments
Labels
Feature Something new to add.

Comments

@skfoo
Copy link
Contributor

skfoo commented Aug 14, 2023

If you use the GUI to create the yaml file, it generates an axis using the shorthand form like this,

Prompt Replace 1: <lora_add_detail> = <lora:add_detail:0.0>,<lora:add_detail:0.25>,<lora:add_detail:0.5>

If you want to upgrade this to use a mapping so you can add labels, it's very tedious to manually convert it. I had to convert multiple axises so I could give the values proper names (to deal with what I wrote about here: #50 (comment)). Fortunately I came up with a regex to use with search & replace in a text editor that did most of the work. Unless I'm overlooking something simpler, this is what I needed so the axis had a name with labels for each value:

  add_detail:
    title: add_detail
    values:
      d0.0:
        title: detail 0.0
        params:
          prompt replace: <lora_add_detail> = <lora:add_detail:0.0>
      d0.25:
        title: detail 0.25
        params:
          prompt replace: <lora_add_detail> = <lora:add_detail:0.25>

It'd be great if the GUI would output that form instead by default.

@mcmonkey4eva mcmonkey4eva added the Feature Something new to add. label Aug 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Something new to add.
Projects
None yet
Development

No branches or pull requests

2 participants