Skip to content

zeittresor/SDXL_Prompt_Token_Viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

SDXL_Prompt_Token_Viewer

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

token_analyser

Releases

No releases published

Packages

No packages published

Languages