OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Models

Dual Path Rnn Pytorch

A Python and PyTorch code repository implementing dual-path recurrent neural networks for time-domain, single-channel speech separation, with training and inference scripts.

Independent OpenViST project profile, based on linked sources.

Dual Path Rnn Pytorch — Single-channel speech-separation experiments
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when you want code and documented scripts for training or running a PyTorch speech-separation model on single-channel audio.

Who it is for

  • Researchers studying recurrent neural networks for speech separation.
  • Developers who want to train or run the provided model scripts.
  • Practitioners exploring a starting point for single-channel audio-separation work.

Documented uses

  • Prepare a file-to-audio-path list for training.
  • Configure and launch Dual-Path-RNN training.
  • Run the documented inference script for one or multiple audio files.
  • Review an implementation that also provides a separate Conv-TasNet model path.
Before you choose

Requirements & limits

The repository is public, open source and licensed under Apache-2.0.

  • Dual-Path-RNN and Conv-TasNet have distinct configuration, training and inference scripts.
  • Inference requires editing default test-file and model parameters in the relevant Python script.
  • The README links a pretrained Dual-Path-RNN model as well as WSJ0 dataset resources.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Train the Dual-Path-RNN model

Prepare the documented file list and configuration, then start Dual-Path-RNN training.

Before you start

  • Python and PyTorch
  • Audio data and an SCP file containing filename and path entries
  • A Dual_RNN training configuration

Steps

  1. Run the command below to generate the SCP file.

    Documented command
    python create_scp.py
  2. Edit config/Dual_RNN/train.yml to set training and model parameters.

  3. From the repository root, run the command below.

    Documented command
    python train_rnn.py --opt config/Dual_RNN/train.yml

Expected outcome

The repository's Dual-Path-RNN training script starts with the selected YAML configuration.

Guide limitations

  • The README identifies WSJ0 as the dataset used for training, validation and testing.
  • The guide documents the launch process, not a verified training run or a guaranteed result.
Source-based practical guide

Run documented Dual-Path-RNN inference

Configure the provided script for one audio file or multiple audio files and invoke it.

Before you start

  • Python and PyTorch
  • The Dual-Path-RNN test script
  • Test-file and model parameters set in the script

Steps

  1. Edit the default test-file and model parameters in test_dualrnn.py.

  2. For multiple audio files, run the command below.

    Documented command
    python test_dualrnn.py
  3. For a single audio file, configure the corresponding parameters in test_dualrnn_wav.py and run the command below.

    Documented command
    python test_dualrnn_wav.py

Expected outcome

The selected Dual-Path-RNN inference script is invoked for the configured input type.

Guide limitations

  • The README requires modifying the scripts' default parameters before inference.
  • It does not document detailed output handling or a verified inference result.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
13 November 2026
Original website title
JusperLee/Dual-Path-RNN-Pytorch · Official homepage title · retained in its source language