Skip to main content

Ultimate Vocal Remover using MDX Net

Project description

MDXNet

Ultimate Vocal Remover powered by MDX Net

License: MIT Python Version GitHub

MDXNet is a high-quality vocal separation tool that uses the MDX Net architecture. It leverages GPU acceleration (when available) and multi-threaded processing to deliver fast and efficient separation of vocals from audio files.


Table of Contents


Features

  • High-Quality Vocal Separation: Utilizes MDX Net for precise separation.
  • GPU Acceleration: Automatically uses GPU if available.
  • Multi-Threaded Processing: Optimized for faster processing on multi-core systems.

Installation

Install MDXNet directly from GitHub using pip:

pip install git+https://github.com/TheNeodev/mdxnet.git

Make sure you have Python 3.7 or later installed.


Downloading Models

MDXNet requires pre-trained models to operate. Download the required models from the releases page:

After downloading, place the model file (e.g., uvr_models.onnx) in a directory of your choice, and update the model path accordingly in your configuration.


Usage

MDXNet can be used within your Python scripts.

Python API

Below is an example of how to use the Python API for vocal separation:

from mdxnet import MDXProcessor

# Define your model parameters
model_params = {
    # Customize model parameters here
    # e.g., "param1": value, "param2": value,
}

if __name__ == "__main__":
    # Initialize the processor with the model path and parameters.
    processor = MDXProcessor(
        model_path="./uvr_models.onnx",  # Update this path to your downloaded model
        model_params=model_params,
        processor=0  # Set processor index (use 0 for CPU, or specify GPU device index)
    )

    # Process the audio file to separate vocals and instrumental tracks.
    main_path, invert_path = processor.process(
        input_path="./Test.mp3",   # Path to the input audio file
        output_dir="./output",     # Output directory for the separated tracks
        denoise=True,              # Enable denoising (set to False if not needed)
        suffix="Vocals",           # Suffix for the vocal track file
        invert_suffix="Instrumental"  # Suffix for the instrumental track file
    )

    print(f"Separated vocals saved to: {main_path}")
    print(f"Instrumental track saved to: {invert_path}")

Notes:

  • Ensure the model file is correctly placed and the path is updated.
  • Customize the model_params dictionary based on your specific requirements.

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix.
  3. Make your changes and commit them with clear messages.
  4. Submit a pull request detailing your changes.

For major changes, please open an issue first to discuss what you would like to change.


License

This project is licensed under the MIT License.


Acknowledgments

  • Thanks to the developers behind MDX Net/UVR for their groundbreaking work.
  • Special thanks to all contributors and the community for continuous support.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mdxnet-1.0.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mdxnet-1.0.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file mdxnet-1.0.0.tar.gz.

File metadata

  • Download URL: mdxnet-1.0.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for mdxnet-1.0.0.tar.gz
Algorithm Hash digest
SHA256 34283d12f9f9b6f9305c5f38a519071a45597b656da71ddcfd29fa941a6fbe49
MD5 02259fe4f5cb2bbca4055621a7133b83
BLAKE2b-256 c4fd8aa543cbcf69359a7d94b49f30f671e16a7f34a2c87fb365933c5cf12c9f

See more details on using hashes here.

File details

Details for the file mdxnet-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: mdxnet-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for mdxnet-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6daf890975d6ed11964b67bfc259297fa20676f3fef1804b9c3339cd61284058
MD5 0c4afd55c98c6aefc23bdd87c0504f25
BLAKE2b-256 f61e6c8681d05cb1c06d3aa8608dedc210710a1a9bbdedebe7bdb2e10272f8b4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page