klimaleksus / stable-diffusion-webui-embedding-merge

Extension for AUTOMATIC1111/stable-diffusion-webui for creating and merging Textual Inversion embeddings at runtime from string literals.
The Unlicense
110 stars 10 forks source link

Prompt length counter is buggy when attention parenthesis are used around merge expressions. #1

Closed aleksusklim closed 1 year ago

aleksusklim commented 1 year ago

Steps to reproduce: 1) Write a prompt X, it would have length = 1 2) Change it to (X) – it is still 1 3) Retry with merge expression: <'X'>, it is correctly 1 4) Change to (<'X'>) – it shows 2, while it should be still 1

I'll try to fix this by creating another empty type of ephemeral embeddings on the fly and caching it, then call WebUI to count everything as it should be done in the first place.