mirror of
https://github.com/SillyTavern/SillyTavern-Extras.git
synced 2026-10-15 18:11:52 +00:00
[PR #216] [MERGED] Talkinghead next4: configurability! #236
Labels
No labels
bug
duplicate
planned
pull-request
under consideration
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
SillyTavern/SillyTavern-Extras#236
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/SillyTavern/SillyTavern-Extras/pull/216
Author: @Technologicat
Created: 1/12/2024
Status: ✅ Merged
Merged: 1/14/2024
Merged by: @Cohee1207
Base:
main← Head:talkinghead-next4📝 Commits (10+)
54fad16remove commented-out old blink probability check51eac8atarget_fps will be modifiable, so rename it as lowercase1f4f2a1talkinghead now manages its threads internallyf8e1efbstartup message: highlight talkinghead device and model990c5b1add info message at launchc529f43refactor backend settings to allow making them customizable964ebc8fix heading levelbac0d48update description of talkinghead API endpoints in main READMEa1f36f3add new talkinghead options to READMEea835ednewline📊 Changes
8 files changed (+1541 additions, -985 deletions)
View changed files
📝
README.md(+71 -15)📝
server.py(+956 -889)📝
talkinghead/Character_Card_Guide.png(+0 -0)📝
talkinghead/README.md(+266 -23)📝
talkinghead/TODO.md(+27 -25)📝
talkinghead/tha3/app/app.py(+191 -32)📝
talkinghead/tha3/app/manual_poser.py(+29 -0)📝
talkinghead/tha3/app/postprocessor.py(+1 -1)📄 Description
load_emotion_templates,load_animator_settings.talkingheadREADME how to use the new configurability.launchin a separate thread. Better for predictable ordering of startup messages for the ST-extras server.talkingheadmodule, highlight the nametalkinghead, the CUDA device used, and the model variant. Makes it more explicit that it may use a CUDA device different from that of most other extras modules.server.pyto format it more like a standard Python script.mainfunction and call itif __name__ == "__main__", as the pythonic equivalent to the top-level JS IIFE goes, but OTOH,flaskmakes that difficult (since we need to instantiateappto make@app.routeavailable for the API endpoint definitions), andserver.pyis not intended to be imported as a module into other scripts anyway. So there would be no practical benefit, other than IDEs being able to catch unused variables.332b4ed. If you don't like this change, I can revert it. My own opinion is that many pythonistas will find the code more quickly readable this way.THIS PR IS NOT YET FINAL:EDIT: Now it is. :)I will add one more feature - namely, the manual poser doesn't yet automatically generate a suitably formatted_emotions.json. This will only take a few lines of code, but I'm out of time right now - I'll finish this either tonight or over the weekend. I'll update the PR once done.Meanwhile, the rest can be reviewed.Tested with the following
SillyTavern/public/characters/characternamehere/_animator.json(note: per-character config, at the client end!): EDIT: This configuration is now provided as an example in thetalkingheadREADME.The rest are defaults, but the
"postprocessor_chain"makes the character into a scifi hologram.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.