Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
vinthony
/
SadTalker
like
1.12k
Running
on
A10G
App
Files
Files
Community
27
d3a0c03
SadTalker
/
src
/
utils
/
safetensor_helper.py
shadowcun
new version of sadtalker
9ab094a
about 1 year ago
raw
Copy download link
history
blame
No virus
198 Bytes
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