tts-service / rvc /train /process /model_blender.py
jlopez00's picture
Upload folder using huggingface_hub
1378843 verified
raw
history blame contribute delete
273 Bytes
import os
import torch
from collections import OrderedDict
def extract(ckpt):
a = ckpt["model"]
opt = OrderedDict()
opt["weight"] = {}
for key in a.keys():
if "enc_q" in key:
continue
opt["weight"][key] = a[key]
return opt