mirror of
https://github.com/storytold/storyteller-ml.git
synced 2026-10-18 07:41:03 +00:00
Add SadTalker @ ae0b26359d44c9379450a8e02a38b45eeec15549
MIT license Commit: https://github.com/OpenTalker/SadTalker commit ae0b26359d44c9379450a8e02a38b45eeec15549 (HEAD -> main, origin/main, origin/HEAD) Author: shadowcun <shadowcun@tencent.com> Date: Mon Jul 3 13:48:35 2023 +0800 fixed bug: hacking facexlib of FAN
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
|
||||
|
||||
def load_x_from_safetensor(checkpoint, key):
|
||||
x_generator = {}
|
||||
for k,v in checkpoint.items():
|
||||
if key in k:
|
||||
x_generator[k.replace(key+'.', '')] = v
|
||||
return x_generator
|
||||
Reference in New Issue
Block a user