Views
No views yet
1from huggingface_hub import hf_hub_download
2import torch
3from models import FLAV
4
5model = FLAV.from_pretrained(args.model_ckpt)
6
7hf_hub_download(repo_id="MaverickAlex/R-FLAV-B-1-LS", filename="vocoder/config.json")
8vocoder_path = hf_hub_download(repo_id="MaverickAlex/R-FLAV-B-1-LS", filename="vocoder/vocoder.pt")
9
10vocoder_path = vocoder_path.replace("vocoder.pt", "")
11vocoder = Generator.from_pretrained(vocoder_path)