mirror of
https://github.com/SillyTavern/SillyTavern-Extras.git
synced 2026-10-15 18:11:52 +00:00
[PR #207] [MERGED] Talkinghead performance improvements and refactoring #234
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#234
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/207
Author: @Technologicat
Created: 12/20/2023
Status: ✅ Merged
Merged: 12/21/2023
Merged by: @Cohee1207
Base:
main← Head:appfixes📝 Commits (10+)
23823fdtalkinghead: fix and improve THA3 manual posere6f3380server.py: no, don't yet use fp16 for talkingheade02c1d9talkinghead: remove wxPython dependency from live mode6c7ff71comment out unused functionsbc0a832add TODO listdd741b6coding style0114634remove unused import2e01125add TODO marker15ce843message wordings6d3f32cfix typos in variable names📊 Changes
22 files changed (+532 additions, -2370 deletions)
View changed files
📝
.gitignore(+1 -0)📝
requirements-rocm.txt(+1 -0)📝
requirements-silicon.txt(+1 -0)📝
requirements.txt(+1 -1)📝
server.py(+36 -7)➖
talkinghead/start_standalone_app.sh(+0 -20)📝
talkinghead/tha3/app/app.py(+286 -928)📝
talkinghead/tha3/app/manual_poser.py(+12 -159)➕
talkinghead/tha3/app/util.py(+194 -0)➖
talkinghead/tha3/mocap/__init__.py(+0 -0)➖
talkinghead/tha3/mocap/ifacialmocap_constants.py(+0 -239)➖
talkinghead/tha3/mocap/ifacialmocap_pose.py(+0 -27)➖
talkinghead/tha3/mocap/ifacialmocap_pose_converter.py(+0 -12)➖
talkinghead/tha3/mocap/ifacialmocap_poser_converter_25.py(+0 -491)➖
talkinghead/tha3/mocap/ifacialmocap_v2.py(+0 -89)➖
talkinghead/tha3/models/LICENSE.txt(+0 -396)➖
talkinghead/tha3/models/placeholder.txt(+0 -1)➖
talkinghead/tha3/models/separable_float/editor.pt(+0 -0)➖
talkinghead/tha3/models/separable_float/eyebrow_decomposer.pt(+0 -0)➖
talkinghead/tha3/models/separable_float/eyebrow_morphing_combiner.pt(+0 -0)...and 2 more files
📄 Description
Here's the next PR for
talkinghead.talkingheadmodule is enabled, and also exits faster.talkinghead/tha3/app/app.pynow only provides the live mode.talkinghead/tha3/app/util.py.NOTE: In this version,
server.pyalways loads the live mode atfloat16precision, as this saves VRAM with no visible difference in output, and should give a performance boost according to the original author (now that the live mode actually uses enough GPU compute for its inference performance to matter).Thus, this version requires theEDIT: Autodownloader added. If theseparable_halfmodel files to run.talkinghead/tha3/models/directory is missing, the models will be automatically pulled in from HuggingFace. The default repo to install from is OktayAlpk/talking-head-anime-3, but for future-proofing, there's an option--talkinghead-models=somehfuser/somehfrepoto download from another repo. Note the plural in the option name, models.I intend to later add an option to choose whichEDIT: Added, e.g.talkingheadmodel to use.--talkinghead-model=separable_half. The default is 'auto', which picksseparable_halfon GPU andseparable_floaton CPU.New options TL;DR: generally, just use
--talkinghead-gpuas before, and don't worry. But before the first run, delete (or rename) yourtalkinghead/tha3/models/directory to trigger a one-time download of all four available THA3 models.@Cohee1207: Opinion, please?
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.