Skip to content

feat: lazy-load PerthNet without importing librosa - #21

Open
yhayarannvidia wants to merge 2 commits into
resemble-ai:masterfrom
yhayarannvidia:feat/lazy-perth-net-imports
Open

yhayarannvidia wants to merge 2 commits into
resemble-ai:masterfrom
yhayarannvidia:feat/lazy-perth-net-imports

Conversation

@yhayarannvidia

Copy link
Copy Markdown

Keep perth.perth_net and PerthNet importable without librosa/soxr so serving stacks can use the encoder on torchaudio STFT only.

Keep perth.perth_net and PerthNet importable without librosa/soxr so serving stacks can use the encoder on torchaudio STFT only.

Signed-off-by: Yash Hayaran <yhayaran@nvidia.com>
Keep PerthNet installable with torch/torchaudio only. librosa remains an optional [audio] extra and a resample fallback so serving stacks are not forced to pull LGPL soxr.

Signed-off-by: Yash Hayaran <yhayaran@nvidia.com>
@yhayarannvidia
yhayarannvidia force-pushed the feat/lazy-perth-net-imports branch from 86082e3 to c12bf20 Compare September 16, 2026 14:56
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.

1 participant