Skip to main content

D3Net (Music Source Separation) for Spleeter Web

This is a modified version of the official D3Net repo made to be compatible with Spleeter Web!

This is inference code for D3Net based music source separation.

Quick Music Source Separation Demo by D3Net

From the Colab link below, you can try using D3Net to generate and listen to separated audio sources of your audio music file. Please give it a try!

Open In Colab

Getting started

Prerequisites

  • nnabla
  • librosa
  • pydub
  • numpy
  • soundfile
  • yaml

Inference: Music source separation with pretrained model

Download the pre-trained D3Net model for Music Source Separation here.

Run the below inference command for a sample audio file test.wav in current directory:

 python ./separate.py -i ./test.wav -o output/ -m d3net-mss.h5 -c cudnn

Arguments:
-i : Input files. (Any audio format files supported by FFMPEG.)
-o : Output directory. (Output folder path to save separated instruments)
-m : Model file. (Pre-trained model)
-c : Context. (Extension modules : cpu or cudnn)

Training: Train the music source separation model from scratch (coming soon)

Metadata

Release files for d3net-spleeterweb 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for d3net-spleeterweb 0.1.3
File Size Uploaded
d3net-spleeterweb-0.1.3.tar.gz 17.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for d3net-spleeterweb 0.1.3
File Interpreter ABI Platform
d3net_spleeterweb-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 43.7 kB

Release files / d3net-spleeterweb-0.1.3.tar.gz

Download URL d3net-spleeterweb-0.1.3.tar.gz
Size 17.7 kB
Tags Source
SHA-256 checksum
How to use checksums
50531045410968207aa1d7cd5e4a1ae870316d3f5396371d7ac642602ca2f908
BLAKE2b-256 checksum
How to use checksums
ec154530826b74f9306454c7f17f7398e231b8e3cfa287f261dd2692b2d7e05a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.27.1 setuptools/59.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.9

Release files / d3net_spleeterweb-0.1.3-py3-none-any.whl

Download URL d3net_spleeterweb-0.1.3-py3-none-any.whl
Size 26.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0ed7a8578686aad99686e30dfbf74b38dbbbf6c816ded5f4ef7304ad4730494f
BLAKE2b-256 checksum
How to use checksums
4a6c830a790d83b7e31ef0a87015bba7c456ca23c4ba70f4c1be360f37bd9b74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.27.1 setuptools/59.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.9

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page