Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
Duplicated from
kevinwang676/SadTalker
manyone
/
SadTalker
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
9dae5fb
SadTalker
/
src
/
utils
/
safetensor_helper.py
kevinwang676
Upload folder using huggingface_hub
9aaf024
about 3 years ago
Raw
Download with hf CLI
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