Spaces:
Build error
Build error
Download tools/infer/trans_weights.py from NeoPy/EasyGUI-Download-Hub: direct link, hf CLI and curl.
- Browser
- Download file 744 Bytes
-
https://huggingface.co/spaces/NeoPy/EasyGUI-Download-Hub/resolve/main/tools/infer/trans_weights.py
- Command line
-
hf download hf://spaces/NeoPy/EasyGUI-Download-Hub/tools/infer/trans_weights.py
-
curl -L -o trans_weights.py https://huggingface.co/spaces/NeoPy/EasyGUI-Download-Hub/resolve/main/tools/infer/trans_weights.py
744 Bytes
| import pdb | |
| import torch | |
| # a=torch.load(r"E:\codes\py39\vits_vc_gpu_train\logs\ft-mi-suc\G_1000.pth")["model"]#sim_nsf# | |
| # a=torch.load(r"E:\codes\py39\vits_vc_gpu_train\logs\ft-mi-freeze-vocoder-flow-enc_q\G_1000.pth")["model"]#sim_nsf# | |
| # a=torch.load(r"E:\codes\py39\vits_vc_gpu_train\logs\ft-mi-freeze-vocoder\G_1000.pth")["model"]#sim_nsf# | |
| # a=torch.load(r"E:\codes\py39\vits_vc_gpu_train\logs\ft-mi-test\G_1000.pth")["model"]#sim_nsf# | |
| a = torch.load( | |
| r"E:\codes\py39\vits_vc_gpu_train\logs\ft-mi-no_opt-no_dropout\G_1000.pth" | |
| )[ | |
| "model" | |
| ] # sim_nsf# | |
| for key in a.keys(): | |
| a[key] = a[key].half() | |
| # torch.save(a,"ft-mi-freeze-vocoder_true_1k.pt")# | |
| # torch.save(a,"ft-mi-sim1k.pt")# | |
| torch.save(a, "ft-mi-no_opt-no_dropout.pt") # | |