Giter Club home page Giter Club logo

Comments (10)

h43lb1t0 avatar h43lb1t0 commented on June 15, 2024

I'll add this to my TODO list and will checkout if it fits in for me

from sd-webui-batchcheckpointprompt.

h43lb1t0 avatar h43lb1t0 commented on June 15, 2024

@drphero what is your idea for saving the checkpoints this way? I understand your idea like replacing/adding to the saved values dropdown the option to select styles. But not only styles, but also checkpoints are needed.

from sd-webui-batchcheckpointprompt.

drphero avatar drphero commented on June 15, 2024

I was thinking it could be an optional separate box below the prompt templates box that would be combined with the prompts box when saved. Since multiple styles could be used for a single generation, it would need to allow that.
So maybe it would look something like this:

Checkpoint Names
darkSushi25D25D_v40.safetensors @Index:17,

Prompts/prompt templates for Checkpoints
{prompt} @Index:17;

Styles for Checkpoints
style1, style2 @Index:17;

Of course the style names would need to match ones that the user already has saved. It would be good if there was a way to easily add in the style names without having to type them all, but I'm not sure how that would work.

from sd-webui-batchcheckpointprompt.

drphero avatar drphero commented on June 15, 2024

@h43lb1t0 I just thought of a better way. So it's like the way you implemented negative prompts. Styles could be used like {{style: stylename}}. But since styles can include negative prompts themselves, this would need to take that into account.

from sd-webui-batchcheckpointprompt.

h43lb1t0 avatar h43lb1t0 commented on June 15, 2024

@drphero I think I like this way. That should'nd be to hard to implement.

from sd-webui-batchcheckpointprompt.

h43lb1t0 avatar h43lb1t0 commented on June 15, 2024

@drphero i've added it. Could you try it before i merge it? I don't use styles that much and can't realy say if the implementation is good or not.

from sd-webui-batchcheckpointprompt.

drphero avatar drphero commented on June 15, 2024

@h43lb1t0 I've given it a try now. The only problem I've found so far is that it stacks the styles. So if you have something like three checkpoints and three matching prompt templates, each with a different style, the first one comes out correct, but then the 2nd one will use its own, but also the 1st style added. And the 3rd will have its own, but the 2nd and 1st style also added.

from sd-webui-batchcheckpointprompt.

drphero avatar drphero commented on June 15, 2024

@h43lb1t0 By changing line 214 in batchCheckpointsPrompt.py from p.styles.extend(batch_params.style) to p.styles = (batch_params.style) seems to fix this.

Is it possible to use multiple styles for one checkpoint? I can't figure out what the formatting would be.

  • {{style:styleone}} {{style:styletwo}}
  • {{style:styleone,styletwo}}
  • etc

from sd-webui-batchcheckpointprompt.

h43lb1t0 avatar h43lb1t0 commented on June 15, 2024

@drphero jmade some changes. Now it is possible to use multiple styles. Just list them one after another. The last style is the one the base prompt will be inserted to.

from sd-webui-batchcheckpointprompt.

drphero avatar drphero commented on June 15, 2024

@h43lb1t0 Everything seems to be working as far as I can tell. Great work!

from sd-webui-batchcheckpointprompt.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.