Show the token/chunk relevance of prompts for Forge/A1111
SDXL Prompt Token Viewer (Forge/A1111-style)
- Shows CLIP-like 75-token chunks with a smooth green->red gradient per chunk
- Supports PROMPT + NEGATIVE PROMPT
- Parses common A1111/Forge "parameters" text blocks (Negative prompt: ... Steps: ...)
- Supports BREAK operator (pads to next chunk boundary)
- Minimal deps: PyQt5 + (recommended) tiktoken
Notes:
- Color is "position within chunk", not guaranteed "importance".
- For accurate chunk boundaries you really want tiktoken installed.
Requirements:
pip install PyQt5 tiktoken