cog-sdxl icon indicating copy to clipboard operation
cog-sdxl copied to clipboard

Fix caption token casing not working with punctuation

Open levi opened this issue 1 year ago • 0 comments

When using token prefixes like A photo of TOK, , the BLIP caption outputs no longer received the substitution token uppercasing treatment because of the punctuation. Using re's word boundary search, which will support various edge cases like beginning and ending of words, along with punctuation like commas.

/cc @cloneofsimo

levi avatar Aug 13 '23 14:08 levi