SillyTavern Auto Expressions

Details

Download Files (1)

Model description

Once Upon A Time...
It was another dreary day, the only sound was the rain occasionally splashing upon the window and the *click* of my PC power button. It was not long after that I ventured deep into the shadow realm, known as reddit and chub, searching for hidden treasures and rare gems known as character cards. Lo and behold, I hath found them! But be this? I must pay gold for these artifacts generated by magic? And they do not come with lore books, nor are they written by a master scholar, and NAY- they doth not ship with EMOTIONS?! I do not deny you the truth my friend, before my very eyes, in the very same shadowlands, I see these, very much the same, character card merchants protesting against the very idea of mercantilism itself! What MADNESS?! It was by mere chance that I escaped these lands with my mind mostly intact. In time past, contemplating on how I could turn lead into gold, and slop into peak material- I tell you this, as any true friend would, the shadowrealm folk are beyond redemption, but I may have developed a magical artifact that can take even the most mundane character card and turn it into a legendary item!

Description
Okay, okay, no more fucking around. So, what is this? An Anima workflow that generates high-quality Silly Tavern character expressions in just minutes. Gives you tons of options (portrait mode, background creator, low resolution, manual selection, additional prompt tags, etc.), yet, it's designed to be easy as just clicking "run" upon first load. In addition, it will generate sex expressions for all non-extreme positions, as well as combat poses. (Currently prototype mode, meaning this is highly unrefined, so expect a lot of updates)

Installation

Pre-Requirements:

[ Download ]: ComfyUI Manager (It allows you to install missing nodes)
(Or: pip install -U --pre comfyui-manager)

[ Download ]: Pixel Color Picker (It's not included in the ComfyUI Manager Repos)
(Drop the PixelColorPicker.py into your custom nodes folder)

[ Download ]: Easy-Use Nodes (For wildcards and style selector)

Download the included ZIP file and extract it to your ComfyUI directory.
(Contains wildcards and example character style sheet as well as the workflow)

Operation

  • The Open ComfyUI, press 'W' for Workflows, click on ST_Expression_Gen

  • Then select a character from the Character Styles node.

  • Click 'Run' (Or batch run)

  • It will generate a random expression in this format: expression-##.avif
    (As well as a JSON containing the prompt and the seed)

  • Copy all avif files to SillyTavern/data/default-user/character/<character>

  • Restart SillyTavern, it now should recognize your character expressions

Making your own character:

  • Go to ComfyUI/custom_nodes/comfyui-easy-use/styles

  • Open the Characters.json
    (or better yet, make your own, so your characters don't get overwritten on update)
    Use mine as a template and go to town.
    (Use only character tags)
    (No quality tags, no action tags, gestures, posture, poses, camera, etc..)
    (Only use anatomy and clothing tags.)

Since this is in prototype mode, you'll probably have to curate about 50% of the images and delete the ones that don't turn out well.

Questions

Is it perfect? No, but it's output will outdo 99% of other expressions out there. And, I have done my best to mitigate any limitations dealing with auto generation expressions. It's also in prototype phase, there are some wrinkles to iron out.

What model should I use? Start with WAI - https://civitai.red/models/2544636/wai-anima

How do I get Silly Tavern to use the extra expressions? Set expressions to Main API. Add custom expression for each one you want. (You only have to do this once.)


Completion Status? Danbooru has so many tags and getting the right combinations down will take some time and there's going to be kinks to work out. But give it a try, its pretty quick, just set the repeat to 50 or more and come back after a cup of coffee and check out your new expressions.

Images made by this model