vietnam-male-voice-wavegru-tts / extract_wavegru_model.py
ntt123's picture
update
04a69d4
raw
history blame contribute delete
276 Bytes
import pickle
import jax
dic = pickle.load(
open("./wavegru_vocoder_tpu_gta_preemphasis_pruning_0800000.ckpt", "rb")
)
dic = jax.device_get(dic)
del dic["optim_state_dict"]
pickle.dump(
dic, open("./wavegru_vocoder_tpu_gta_preemphasis_pruning_0800000.ckpt", "wb")
)