Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
Uhhy/SadTalkerxxx
Uhhy
/
SadTalkerjggj
like
0
Build error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
f599b88
SadTalkerjggj
/
src
/
utils
/
safetensor_helper.py
abreza
init
8f6558d
about 1 year ago
raw
Copy download link
history
blame
Safe
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