We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tried to load model locally using this:
def load_vocos(path, device): config_path = os.path.join(path, 'config.yaml') model_path = os.path.join(path, 'pytorch_model.bin') model = Vocos.from_hparams(config_path) state_dict = torch.load(model_path, map_location="cpu") if isinstance(model.feature_extractor, EncodecFeatures): encodec_parameters = { "feature_extractor.encodec." + key: value for key, value in model.feature_extractor.encodec.state_dict().items() } state_dict.update(encodec_parameters) model.load_state_dict(state_dict) model.eval() model.to(device) return model
However, this line is hard-coded to load pretrained encodec, preventing offline usage:
vocos/vocos/feature_extractors.py
Line 68 in c859e3b
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Tried to load model locally using this:
However, this line is hard-coded to load pretrained encodec, preventing offline usage:
vocos/vocos/feature_extractors.py
Line 68 in c859e3b
The text was updated successfully, but these errors were encountered: