Skip to content

Remove librosa dependency#11

Merged
Blaizzy merged 3 commits intoBlaizzy:mainfrom
lucasnewman:remove-librosa
Mar 1, 2025
Merged

Remove librosa dependency#11
Blaizzy merged 3 commits intoBlaizzy:mainfrom
lucasnewman:remove-librosa

Conversation

@lucasnewman
Copy link
Copy Markdown
Collaborator

This implements a pure MLX/numpy STFT and inverse STFT to avoid the librosa & scipy dependencies (which are a bit heavy). They are numerically equivalent to ~1e-5, and performance looks the same/similar with both approaches on my M3 Max.

@Blaizzy
Copy link
Copy Markdown
Owner

Blaizzy commented Mar 1, 2025

Thank you very much @lucasnewman!

Could you run

pre-commit run --all

To clear the tests.

Copy link
Copy Markdown
Owner

@Blaizzy Blaizzy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Blaizzy Blaizzy merged commit 2e41a04 into Blaizzy:main Mar 1, 2025
1 check passed
@lucasnewman lucasnewman deleted the remove-librosa branch March 19, 2025 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants