Comments (10)
I'll add this to my TODO list and will checkout if it fits in for me
from sd-webui-batchcheckpointprompt.
@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.
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.
@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.
@drphero I think I like this way. That should'nd be to hard to implement.
from sd-webui-batchcheckpointprompt.
@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.
@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.
@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.
@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.
@h43lb1t0 Everything seems to be working as far as I can tell. Great work!
from sd-webui-batchcheckpointprompt.
Related Issues (10)
- Feature Request: Option to use one prompt for all Selected Checkpoints HOT 3
- Documentation Clarification for Negative Prompts HOT 1
- just a question because i have a potato HOT 1
- AttributeError: 'Processed' object has no attribute 'sampler' HOT 8
- Error reading checkpoint file names with square brackets [] HOT 1
- [Bug]: RuntimeError: amount of prompts don't match with amount of checkpoints HOT 5
- [Feature Request]: Checkpoints only. HOT 4
- [Bug]: Grids is not saved in folders specified under settings in the webui. HOT 4
- [Bug]: Extension changes orientation when generate HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sd-webui-batchcheckpointprompt.