MRSU_NOI_2_man / extract_wavegru_model.py
ntt123's picture
update
04a69d4
raw
history blame
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")
)