Closed rsxdalv closed 1 year ago
This enables hubert_path = HuBERTManager.make_sure_hubert_installed() hubert_model = CustomHubert(checkpoint_path=hubert_path)
tokenizer_path = HuBERTManager.make_sure_tokenizer_installed() tokenizer = CustomTokenizer() tokenizer.load_state_dict(torch.load(tokenizer_path))
Good idea. This should simplify it even more.
This enables hubert_path = HuBERTManager.make_sure_hubert_installed() hubert_model = CustomHubert(checkpoint_path=hubert_path)
tokenizer_path = HuBERTManager.make_sure_tokenizer_installed() tokenizer = CustomTokenizer() tokenizer.load_state_dict(torch.load(tokenizer_path))