Comments (12)
I imagine using an extension specific character would be better;
a woman, with #blue hair, wearing a #red shirt and a #green skirt
Or something like that. This way, we wouldn't have to place the adjectives in the target tokens box, as the specific character would take the next word as the target token.
At the moment the following characters are already in used by SD or popular extenstions;
[ ] { } ( ) | , :
(square brackets, braces, parenthesis, vertical line, comma, and colon)
from sd-webui-cutoff.
I just tried it and looks like it just doesn't work. It's like it is ignored.
from sd-webui-cutoff.
Try changing "Settings > Stable Diffusion > Prompt attention parser" to A1111 parser.
In my vladmantic automatic environment, cutoff seems to work with this setting.
from sd-webui-cutoff.
Will try today!
from sd-webui-cutoff.
IMO changing the parser isn't really a solution. cutoff should really work regardless of the parser.
from sd-webui-cutoff.
IMO changing the parser isn't really a solution. cutoff should really work regardless of the parser.
i agree. and full parser may work slightly differently internally, but the end result is fully compatible parsed prompt.
what seems to happen is that this extension relies on erroneus ,
symbols left around by original parser - separator for cutoff should be explicit, not rely on leftovers since ',' on its own has no meaning and is stripped when appearing between terms.
from sd-webui-cutoff.
If there is a separator for cutoff other than a comma, I would love to know! This extension makes different colors on things so much easier. Any way to delineate a separator like the comma, it could be anything.
from sd-webui-cutoff.
@vladmandic Are you referring to this part of the code?
I ask because there hasn't been any activity in this repo for a while, so I might want to take a stab at fixing this, however I have zero knowledge of how SD works (I'm good with Python, though).
from sd-webui-cutoff.
that would be cool!
and yes, I am.
But there is a bigger conceptual problem - this extension relies that prompt parser will leave some bad artifacts such as ,
after its done so it can pick them up as separators. extension should not rely on any separator that can be changed/removed or in any way parsed by prompt parser, it should be an explicit separator used by this extension.
if you want to see how prompt goes in and what comes out from prompt parser, set env variable SD_PROMPT_DEBUG=1
from sd-webui-cutoff.
exactly. just need to select something simple and unique enough and not already taken by prompt parser - that's why there is debug output so you can see what comes out of the parser, not just what goes in.
from sd-webui-cutoff.
I think this fork (https://github.com/pmcculler/sd-webui-cutoff-in-prompt) uses a different separator (&
), however I couldn't tell if it worked with SD.Next's parser or not.
from sd-webui-cutoff.
seems to be working
from sd-webui-cutoff.
Related Issues (20)
- Request to have the plugin compatible with wildcards HOT 2
- What exactly does Cutoff strongly do? HOT 1
- Add cutoff to the diffusers HOT 5
- do you wish to have this extension added to the webui Extension index? HOT 1
- AssertionError HOT 4
- Success Receive
- For Posterity: Mismatched tensor size error
- I have a hard time understanding what this CUTS OFF HOT 1
- Can't make it work. HOT 2
- del HOT 1
- Unable to see the difference HOT 3
- SDXL support
- Assertion error with SDXL HOT 1
- SD1.5をcolab環境下で動かすと以下のエラーが発生 HOT 3
- Request to add settings of default target tokens.
- Set settings from PNG Info automatically
- Does not work if there is only one color selected
- [BUG?]: import name issue
- webui style pnginfo
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-cutoff.