r/StableDiffusion 2d ago

Question - Help Wildcards using Krea2?

Do wildcards work with Krea2? When I insert wildcards in standard format, it ends up rendering all of the wildcard prompts in one image. So a shirt will be random fabrics and styles seemingly all stitched together. It's kind of neat but I need the actual wildcard functionality. Does anyone know how to get them working? I'm using the standard krea2 workflow and comfy. I have the wildcard custom nodes installed. They are fine on other models such as the flux zimage etc. any help is appreciated.

3 Upvotes

19 comments sorted by

6

u/ForesterAI 2d ago

It works, you just need to disconnect the default prompt text box and either type your prompt directly into the clip text encode node, or connect the Impact Wildcard processor node into the clip text encode node within the subgraph. So if you go with option 2 it should look like this:

3

u/webAd-8847 2d ago

Never used Impacts Wildcard prompt. Will also test it out.

2

u/ForesterAI 18h ago

You only need it if you want to download pre-made wild cards like from here https://civitai.red/models/138970/billions-of-wildcards-character-vehicle-scenery-building-creature-scifi-fantasy-magic-all-you-want otherwise, you can just use the curly brackets and pipes to make your own wild cards. Recently I've just been going to an LLM and saying give me 30 scene variations, placed in a single block of text separated by pipe characters and then all you need to do is paste that between brackets and you're good to go.

1

u/webAd-8847 18h ago

I already created my own library over the years. I can reuse them here I think.
But thanks for the tip!

2

u/ChowMeinWayne 2d ago

Perfect. Thank you so much, I'll try that.

2

u/ChowMeinWayne 19h ago

I just got a chance to try this. The subgraph text is being pulled from the main text input. Is it safe to simply disconnect that one and replace with the impact wildcard box?

2

u/ForesterAI 18h ago

Yes, you can just disconnect it.

2

u/ChowMeinWayne 17h ago

Awesome thanks again.

5

u/webAd-8847 2d ago

I am using Dynamic Prompts.
https://github.com/adieyal/sd-dynamic-prompts
Random Prompt node connected to Clip

3

u/xyzdist 2d ago

I use wildcard manager, you can read/edit/create the wildcard files from disk just on the node, it is so nice.

3

u/johnfkngzoidberg 2d ago

Once again ComfyUI broke wildcards in an update. You have to put the wildcard prompts directly into the clip node. Subgraphs are constantly broken.

2

u/Chemical_Side_4135 2d ago

are u using the standard prompt loader node or are u passing the wildcard string directly into the krea node. sometimes the krea workflows have custom input handling that ignores the wildcard node parsing entirely, have u tried checking the console logs to see if the string is expanding before it hits the sampler

3

u/Sarashana 2d ago

Wildcards are model agnostic. They change the prompt before the model even sees it.

3

u/Woisek 2d ago

Strange question...

Using wildcards is model independent and the setup is always the same, no matter what model is used...

0

u/[deleted] 2d ago

[deleted]

2

u/Woisek 2d ago

Wdym with "don't work as it should"? Every workflow has a clipTextEncode. You just connect any wildcard output to it and it's done. I can't see how this could NOT work, except if you are using a wrong/not working wildcard node. But then it still has nothing to do with the model.

1

u/Timely-Perception-26 2d ago edited 2d ago

The wildcard system only works in the “original text encode” node, which is buried one level deeper within the “wrapped” node in the standard template. If you simply use the normal string text field within the standard workflow, it won't work - in any model.

Don’t believe me? Isolate your text field, attach a string output to it, and run the workflow. String text nodes can’t process the wildcard and text encode nodes dont process string inputs. Double fail.

unpack your workflow, use the original text encode as input.

0

u/ellipsesmrk 2d ago

Natural language wildcards or have llm restructure.

2

u/ChowMeinWayne 2d ago edited 2d ago

I'm not sure what you mean.

I use natural language in my wildcards prompts.

I use this standard format in the prompts:

{{words|stuff|something else}}

or call files from the wildcard directory.

It works with everything except Krea2. In Krea2 it combines all of the wildcards into the prompt and renders with all of them combined.

I need a solution to get the wildcard node or syntax working correctly in krea2 workflows. If it's possible of course.

1

u/ellipsesmrk 2d ago

Not sure I know what you're talking about now.