Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion mlx_audio/codec/models/vocos/vocos.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,9 @@ def from_pretrained(cls, path_or_repo: str) -> Vocos:
weights = mx.load(f)

config_path = path / "config.yaml"
model = cls.from_hparams(config_path)
with open(config_path, "r") as f:
config = yaml.safe_load(f)
model = cls.from_hparams(config)

# remove unused weights
try:
Expand Down
4 changes: 2 additions & 2 deletions mlx_audio/tts/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def parse_args():
def main():
args = parse_args()
generate_audio(model_path=args.model, **vars(args))


if __name__ == "__main__":
main()