this post was submitted on 14 Jul 2026
3 points (66.7% liked)

Perchance - Create a Random Text Generator

1979 readers
11 users here now

⚄︎ Perchance

This is a Lemmy Community for perchance.org, a platform for sharing and creating random text generators.

Feel free to ask for help, share your generators, and start friendly discussions at your leisure :)

This community is mainly for discussions between those who are building generators. For discussions about using generators, especially the popular AI ones, the community-led Casual Perchance forum is likely a more appropriate venue.

See this post for the Complete Guide to Posting Here on the Community!

Rules

1. Please follow the Lemmy.World instance rules.

2. Be kind and friendly.

  • Please be kind to others on this community (and also in general), and remember that for many people Perchance is their first experience with coding. We have members for whom English is not their first language, so please be take that into account too :)

3. Be thankful to those who try to help you.

  • If you ask a question and someone has made a effort to help you out, please remember to be thankful! Even if they don't manage to help you solve your problem - remember that they're spending time out of their day to try to help a stranger :)

4. Only post about stuff related to perchance.

  • Please only post about perchance related stuff like generators on it, bugs, and the site.

5. Refrain from requesting Prompts for the AI Tools.

  • We would like to ask to refrain from posting here needing help specifically with prompting/achieving certain results with the AI plugins (text-to-image-plugin and ai-text-plugin) e.g. "What is the good prompt for X?", "How to achieve X with Y generator?"
  • See Perchance AI FAQ for FAQ about the AI tools.
  • You can ask for help with prompting at the 'sister' community Casual Perchance, which is for more casual discussions.
  • We will still be helping/answering questions about the plugins as long as it is related to building generators with them.

6. Search through the Community Before Posting.

  • Please Search through the Community Posts here (and on Reddit) before posting to see if what you will post has similar post/already been posted.

founded 3 years ago
MODERATORS
 

Hi! Maybe I found something for the t2i.

As far as I know... it uses flux.1 schnell with two encoders which are

  • CLIP ViT/L (openai/clip-vit-large-patch14)
  • T5xxl (google/t5-v1_1-xxl)

So the T5 is the biggest piece with up to 512 tokens monstrosity creating dense per-token map of vectors, capable of understanding context and was trained on text only. CLIP on other hand is 75 tokens long (77 with special starting and ending tokens) was trained vastly on content similar to SD, so it likes more a form of tags than natural language. And it generates a single pooled embedding for the whole in the beginning. Because of the architecture, the canvas precedes the information about it. Guess what, the CLIP overwhelms T5. Try to imagine it as a spiderweb nailed to the wall. The web is the T5 and nails are the CLIP. T5 says to the transformer "i want three apples in the left!" but CLIP was here before and already said "no, one big apple, on a table, you not changing it". Maybe if you say "three apples on a table" you'll be more lucky, because guidancescale multiplier doesn't help much with 4 steps in the schnell distro, it actually strengthen the gates that CLIP goes through... but that's a different story.

What I found is that the implementation doesn't expose something as prompt and prompt_2 parameters known in ComfyUI, which allows input the CLIP's and T5's nodes separately. With this separation trick the CLIP at least doesn't read the horrific 300 token description against the tags and simple phrases format from it's training. Then also T5 doesn't get confused with style tags and focuses only on the natural language it likes more.

Current solution is creating styles which exceed 75 tokens and leave the rest of the prompt for T5, but it reads the whole and gets fed with input vectors that strengthen it's result toward CLIP's canvas anyway, on top of being already capped by the CLIP's singular pooled vector.

So my suggestion is to expose the prompt_2 input node and leave both nodes free to use separately. Feeding two different encoders with the same input, where one is trained on short tags and second is a vast text encoder, only makes things worse.

This prompt_2 is baked into the architecture, so it doesn't need any complex crazy wrapping and exposing the parameter should be fine. Wrapper needs to extract second input as separate, have prompt_2 specified in the regex and apply to the iframe. On the server-side, API should get two separate fields from the JSON and route them separately to CLIP and T5 respectively. If the prompt_2 is null of unspecified, it backs to prompt one.

Sources:

https://arxiv.org/html/2507.09595v1#abstract1

https://www.researchgate.net/publication/387540270_EraseAnything_Enabling_Concept_Erasure_in_Rectified_Flow_Transformers

https://docs.comfy.org/built-in-nodes/ClipTextEncodeFlux

https://perchance.org/-docc#user-inputs

top 1 comments
sorted by: hot top controversial new old
[–] Mack2@lemmy.world 1 points 1 month ago