Code Monkey home page Code Monkey logo

mamba-tasnet's Introduction

Mamba-TasNet arXiv and Dual-Path Mamba arXiv

An official implementation of Mamba-TasNet and dual-path Mamba for speech separation.

Architectures

mambatasnet

dpmamba

Prerequisites

  1. Download WSJ0 corpus and follow an example instruction to create WSJ0-2Mix.

  2. Install Packages.

conda create --name Slytherin python=3.9
conda activate Slytherin
pip install -r requirements.txt

You may need to install lower or higher versions of torch, torchaudio, causal-conv1d and mamba-ssm based on your hardware and system. Make sure they are compatible.

Training

python train_wsj0mix.py hparams/WSJ0Mix/{mambatasnet, dpmamba}_{XS, S, M, L}.yaml \
--data_folder </yourpath/wsj0-mix/2speakers> \
--dynamic_mixing True \
--base_folder_dm </yourpath/wsj0_processed/si_tr_s> \
--precision bf16

You might encounter numerical instablity in training L-sized model.

We recommend training with fp32 if GPU memory permits.

Please check a related issue and Section 6.4 in the Jamba paper on stabilizing loss.

Inference and Checkpoints (Later)

Performance

performance

Acknowledgement

We acknowledge the wonderful work of Mamba and Vision Mamba. We borrowed their implementation of Mamba and bidirectional Mamba. The training recipes are adapted from SpeechBrain.

Citation

If you find this work helpful, please consider citing:

@article{jiang2024speechslytherin,
      title={Speech Slytherin: Examining the Performance and Efficiency of Mamba for Speech Separation, Recognition, and Synthesis}, 
      author={Xilin Jiang and Yinghao Aaron Li and Adrian Nicolas Florea and Cong Han and Nima Mesgarani},
      year={2024},
      eprint={2407.09732},
      archivePrefix={arXiv},
      primaryClass={eess.AS},
      url={https://arxiv.org/abs/2407.09732}, 
}
@misc{jiang2024dual,
  title={Dual-path Mamba: Short and Long-term Bidirectional Selective Structured State Space Models for Speech Separation},
  author={Jiang, Xilin and Han, Cong and Mesgarani, Nima},
  journal={arXiv preprint arXiv:2403.18257},
  year={2024}
}

You may also like our Mamba for speech recognition : https://github.com/xi-j/Mamba-ASR

mamba-tasnet's People

Contributors

xi-j avatar

Stargazers

Alex Wu avatar  avatar Zephyr avatar taro avatar  avatar  avatar Лэюань  avatar MaxMax avatar kk avatar Sofian Mejjoute avatar  avatar Zhongweiyang Xu avatar titizheng avatar remby avatar Yuan-Man avatar Iver Jordal avatar  avatar SangMin Kim avatar tfm_hitesh avatar Kenny Falkær Olsen avatar Christopher Landschoot avatar Shirunwu avatar Stan Kirdey avatar 爱可可-爱生活 avatar DS.Xu avatar  avatar Helin Wang avatar  avatar Kai Li (李凯) avatar MichaelChen avatar Nickolay V. Shmyrev avatar  avatar  avatar Pawel Cyrta avatar  avatar Tworan avatar  avatar lvke avatar  avatar Siavash avatar

Watchers

Nickolay V. Shmyrev avatar  avatar Amantur Amatov avatar Sofian Mejjoute avatar

mamba-tasnet's Issues

No module named 'mamba_ssm.ops.triton.layernorm'

"from mamba_ssm.ops.triton.layernorm import RMSNorm, layer_norm_fn, rms_norm_fn" have error,when use try except to import, such as
"try:
from mamba_ssm.ops.triton.layernorm import RMSNorm, layer_norm_fn, rms_norm_fn
except ImportError:
RMSNorm, layer_norm_fn, rms_norm_fn = None, None, None"
the python console does not return an error, but RMSNorm, layer_norm_fn, rms_norm_fn = None, None, None

We looked through dir(mamba_ssm.ops.triton) , but layernorm does exist.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.