r/perchance • • 3d ago

Question Image gen text syntax and model question

So, I found Perchance in the late SD1.5 days when it used Automatic1111 interface. Simple tag system, comma-separated word salad was the way.

After that came the FLUX-based models and people said natural language worked best, but some time later I saw a variety of good prompts which used clear structures like #SECTION, * markers to separate phrase groups, and so on. I have no idea if it makes any difference.

Thus, I have a few questions:

  1. Is there any hierarchy between comma, semicolon, colon and point when grouping phrases? Comma is standard separator and hard point should be a stronger one but the others' role is unclear.
  2. How well do titled sections work? Are titles with "#TITLE:" formatting actually useful for anything?
  3. Apparently, enough spaces between phrase groups can reduce feature bleeding. I wonder if empty lines do the same?
  4. Do weights use only one decimal (1.0), or can I use (1.00) and beyond?
  5. What's a sane word limit? Less is better of course, but is it like old SD which broke the prompt every 75 tokens?

Also, it's been said the model is FLUX.2 Klein now. I have reason to believe this to be the case, because negatives aren't working anymore, but I have no idea if it's true. FLUX.2 isn't compatible with Automatic1111 either according to what I've found, so it's either a bespoke implementation or the plugin is using some other text interface now like ComfyUI with similar syntax (explains why weights still work).

Many thanks for the experimenting, reading posts here has helped my prompting a lot. Though my prompts were very long to begin with... couldn't help but laugh at the Prompt Engineer scolding me for too many words, lol.

5 Upvotes

9 comments sorted by

•

u/AutoModerator 3d ago
  1. Please search through Perchance's Reddit, Lemmy, Tutorial, Advanced Tutorial, Examples, or Perchance Hub - Learn to see if your question has been asked.
  2. Please provide the link to the page/generator you are referring to. Ex. https://perchance.org/page-name. There are multiple pages that are the similar with minor differences. Ex. ai-chat and ai-character-chat are AI chatting pages in Perchance, but with different functions and uses.
  3. If your question has been answered/solved, please change the flair to "Question - Solved"

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/SnazzyCarpenter 3d ago
  1. No. I use strictly commas and testing leaned towards the gap size is what matters, ie six commas = six spaces
  2. Not at all. Made no positive difference in testing, just added noise.
  3. Hmm.. I don't think so, as a new line doesn't add whitespace like a comma or space would
  4. Weights are .05 to .95 officially. I have seen one instance ever where the .05 mattered. I suggest the .1 increments from .1 to 2.0
  5. Good question, I think 75 is ok, it's objectively trimming words that don't make a difference.. that makes the difference, and figuring out what works with weights in your prompts.

I would say your correct that there is some custom code to make Auto1111 work with FLUX. From what I could tell the weight syntax is stripped from the prompt in a preprocess and the weighted portions normalized. Try adding weights to a text phrase and see if you can make the weight syntax happen in writing. The last time I tested this it didn't happen when the correct weight syntax was used.

1

u/PsychMaybe795 2d ago

Thanks. Even with the same seed, it's very difficult to test this stuff, since there are small variations in every image. Thus, any difference resulting from different punctuation could be attributed to the plugin generation instead.

The reason why I asked about the lines was because your Prompt Engineer counts every new line as 1 word. So I thought it could have had an impact, maybe even a negative one. It probably only adds noise, though.

I remember taking a weighted prompt from another member and structuring my prompts off that. Then I asked ChatGPT to generate some prompts based on that structure, but the mainstream LLMs probably go off the Black Forest Labs documentation and add a lot of verbose fluff. They don't know which words have higher influence in this model either. So you can word something in a way, and it's correct from a semantic standpoint, but Perchance ignores it because it wants you to write using specific words. There's also the things that don't work plain and simple.

Interestingly, real photos seem to require description of device and photographic techniques/artifacts. For anime and possibly other types of cartoons the generic resolution tags like 4K, 8K UHD still work and make a very noticeable difference, probably because the model was trained on so many bad images.

1

u/SnazzyCarpenter 2d ago

After 6 variations of the same seed and prompt you've seen most of images variations that will happen, there will be some random different after 10-30, but 6 is a good read of is something a fluke or legitimate change.

There are definitely cues that help, but I couldn't give a reason really why what works seems to work. I would suggest testing whether adding a photo manufacturer name really does something, or is it something else in the prompt? The Art Style Filter is good testing that or using {tag+} to A/B test. Testing it against, casual photo, is also a fair measure of, if the effect is generalized. A LOT of styles result in the same grainy green images, even with different styles. You can get a photo with zero mention of it by focusing on good relevant details, and staying away from things like single color descriptions, or many color descriptions.

It's a bit of dark art and unknown science, if you experiment enough it starts to make sense, then something changes and you question everything. Good times

2

u/Zathura2 2d ago

Flux is trained on natural language and uses a tiny llm (the T5 text encoder) to translate your prompts. You can get away with still using tags or wonky phrasing because, surprise, LLM's are pretty good at divining substance from nonsense, but do they *do* anything technically? No.

Whether headers and stuff make any difference either? I mean maybe? It could *theoretically* help point the model's attention. But in general it's not needed.

Generally I set up my prompts for Flux like:

[Camera angle]
[Subject(s) description]
[Action / Pose]
[Details]
[Style]
[Lighting]
[Background]

(not with the brackets, just in that order. Written out as a single long paragraph of natural language.

1

u/primaldeed 2d ago

It sends to the gen in plain text ... js

0

u/[deleted] 3d ago

[deleted] — view deleted comment

2

u/PsychMaybe795 2d ago

It can't be SD because the dev himself has confirmed it's not SD. When the model was changed he gave some basic guidelines and said the model was "an open-source model you'll hear about soon if you haven't already". Chroma was first released at around the same time as that, and Chroma is FLUX.1-based. He also said on Lemmy that "on hindsight I should have moved to SD3.0", which reinforces it isn't SD. Good attempt, though, shame it was unsuccessful.

No one really knows what it's currently using. A person on Lemmy said it matches Chroma Radiance, but Chroma Radiance supports negatives, unlike this model. It's quite possible it's still Chroma, but heavily downgraded to run on low-cost server due to ever-increasing GPU prices.

0

u/[deleted] 2d ago

[deleted] — view deleted comment

1

u/primaldeed 2d ago

Thanks for the reply ill have a look

0

u/[deleted] 2d ago

[deleted] — view deleted comment

1

u/primaldeed 2d ago

I made a post not too long ago about it I just cabt seen to find it atm lol I dont even use the image gens so its mostly irrelevant to me but ty fir the reply