-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove external filterbank dependency.
- Loading branch information
1 parent
1460718
commit 7e79b2c
Showing
4 changed files
with
48 additions
and
28 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,8 @@ | ||
import librosa | ||
import mlx.core as mx | ||
import numpy as np | ||
|
||
filterbank = librosa.filters.mel( | ||
sr=24000, | ||
n_fft=1024, | ||
n_mels=100, | ||
norm = None, | ||
htk = True | ||
) | ||
from huggingface_hub import hf_hub_download | ||
|
||
np.savez_compressed( | ||
"assets/mel_filters.npz", | ||
mel_100=filterbank | ||
) | ||
path = hf_hub_download("lucasnewman/vocos-mel-24khz", "model.safetensors") | ||
filterbank = mx.load(path)["feature_extractor.mel_spec.mel_scale.fb"].moveaxis(0, 1) | ||
np.savez_compressed("assets/mel_filters.npz", mel_100=filterbank) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[build-system] | ||
requires = [ | ||
"huggingface_hub", | ||
"mlx>=0.18.0", | ||
"mlx", | ||
"numpy", | ||
"pyyaml", | ||
"setuptools", | ||
|
@@ -10,7 +10,7 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "vocos-mlx" | ||
version = "0.0.4" | ||
version = "0.0.5" | ||
authors = [{name = "Lucas Newman", email = "[email protected]"}] | ||
license = {text = "MIT"} | ||
description = "Vocos - MLX" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters