spleeter | Deezer source separation library | Machine Learning library

 by   deezer Python Version: 2.4.0 License: MIT

kandi X-RAY | spleeter Summary

kandi X-RAY | spleeter Summary

spleeter is a Python library typically used in Artificial Intelligence, Machine Learning, Deep Learning, Pytorch, Tensorflow applications. spleeter has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. However spleeter build file is not available. You can install using 'pip install spleeter' or download it from GitHub, PyPI.

Spleeter is Deezer source separation library with pretrained models written in Python and uses Tensorflow. It makes it easy to train source separation model (assuming you have a dataset of isolated sources), and provides already trained state of the art model for performing various flavour of separation :. 2 stems and 4 stems models have high performances on the musdb dataset. Spleeter is also very fast as it can perform separation of audio files to 4 stems 100x faster than real-time when run on a GPU. We designed Spleeter so you can use it straight from command line as well as directly in your own development pipeline as a Python library. It can be installed with pip or be used with Docker.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              spleeter has a medium active ecosystem.
              It has 22739 star(s) with 2487 fork(s). There are 374 watchers for this library.
              There were 1 major release(s) in the last 12 months.
              There are 176 open issues and 554 have been closed. On average issues are closed in 23 days. There are 23 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of spleeter is 2.4.0

            kandi-Quality Quality

              spleeter has 0 bugs and 0 code smells.

            kandi-Security Security

              spleeter has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              spleeter code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              spleeter is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              spleeter releases are available to install and integrate.
              Deployable package is available in PyPI.
              spleeter has no build file. You will be need to create the build yourself to build the component from source.
              Installation instructions, examples and code snippets are available.
              spleeter saves you 780 person hours of effort in developing the same functionality from scratch.
              It has 2454 lines of code, 161 functions and 29 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed spleeter and discovered the below as its top functions. This is intended to give you an instant insight into spleeter implemented functionality, and help decide if they suit your requirements.
            • Save data to file
            • Wait for all tasks to finish
            • Return an AudioAdapter instance
            • Train the model
            • Load a configuration file
            • Configures the TensorFlow logger
            • Performs softmax smoothing on input tensors
            • Apply unetization
            • Return the activation layer
            • Convert to float32
            • Return a random sampling time stretch
            • Reshape the spectrogram
            • Return Github model provider
            • Convert the spectrogram to an unsigned integer
            • Return the shape of the image
            • Entry point
            • Applies unet tensors
            • Load a waveform
            • Build training dataset
            • Calculate the random pitch - shift
            • Download the given model
            • Build validation dataset
            • Get model directory
            • Build the model function
            • Randomly crop the spectrogram
            • Compute the spectrogram
            Get all kandi verified functions for this library.

            spleeter Key Features

            No Key Features are available at this moment for spleeter.

            spleeter Examples and Code Snippets

            Instruments Activity Detection using Spleeter and Auditok,Output
            Pythondot img1Lines of Code : 71dot img1no licencesLicense : No License
            copy iconCopy
            Instruments Timeline
            
                 start tags
            0      8.0   🎤🎶
            265   10.0    🎶
            140   10.0    🎹
            266   12.0    🎶
            210   12.0    🎸
            ..     ...  ...
            136  239.0    🥁
            137  239.0    🥁
            264  239.0    🎸
            138  241.0    🥁
            139  243.0    🥁
            
             drums 
            
               start    end  
            JumpCutter2, 使用
            Pythondot img2Lines of Code : 41dot img2License : Weak Copyleft (MPL-2.0)
            copy iconCopy
            python -m JumpCutter2
            
            python -m JumpCutter2 -h
            
            > python -m JumpCutter2
            
            你没有输入任何文件,因此进入文字引导。
            你可以在命令行加上 -h 参数运行此程序以获得
            命令行运行的帮助。
            
            程序的用处主要是对视频中的声音进行分析,
            分成静音部分和非静音部分,
            分别施加不同的速度,最后合成到一个新视频。
            
            
            请输入要处理的视频或音频文件
            请输入文件路径 或 直接拖入:
            
            > python -m JumpCutter2   
            Spleeter,Integration
            C++dot img3Lines of Code : 41dot img3License : Permissive (MIT)
            copy iconCopy
            ///
            /// @file
            /// @copyright Copyright (c) 2020, MIT License
            ///
            #include "spleeter/argument_parser/cli_options.h"
            #include "spleeter/spleeter.h"
            
            #include 
            #include 
            
            int main(void)
            {
                try
                {
                    /// Initialize
                    auto cli_options = s  

            Community Discussions

            QUESTION

            Several problems when packaging with pyinstaller
            Asked 2021-Aug-17 at 07:47

            I was packaging my python program with PyInstaller, and several problems occurred. Here's my code below:

            ...

            ANSWER

            Answered 2021-Aug-17 at 07:38

            It seems like a simple error, it just looks like your trying to import libraries you don't have, using the command prompt you should be able to do

            Source https://stackoverflow.com/questions/68811534

            QUESTION

            AttributeError: 'str' object has no attribute 'tk' when running Tkinter
            Asked 2021-Aug-12 at 09:09

            I was writing a python GUI program with Spleeter. And when it comes to the Separation function, the error occurs. Here's my code:

            ...

            ANSWER

            Answered 2021-Aug-12 at 09:09
            separator = Separator(stems)
            

            Source https://stackoverflow.com/questions/68753814

            QUESTION

            Python36.dll is missing
            Asked 2021-Aug-09 at 18:19

            This is technically a duplicate of this question and this other question, but there are no answers to any of these. I've also been googling this problem and could almost find no information, thus I ask here.

            Issue

            When I run python in a Command Prompt (windows) I get the following error

            The code execution cannot proceed because python36.dll was not found. Reinstalling the program may fix this problem.

            Some Background

            (I think) the problem began after installing python 3.8 via this website which had a direct download link to an installer. It is of course not the best idea to install python from any external source, and since the problems began here, I decided to check if this was a virus. I ran Avast and nothing was found. I also downloaded the same version of python from the official website and used a file compare tool to check if anything had been changed in the installer, and it found nothing. I can thus confirm a virus did not cause this.

            I've tried to...
            • Reinstall python - Did not fix the problem
            • Restart my pc - Did not fix the problem
            My question is...

            How would one go about solving this issue?

            (Also, if there indeed is an answer to this question which I have missed, I apologize. I'm kinda new on stackoverflow!)

            ...

            ANSWER

            Answered 2021-Aug-09 at 18:19

            Your $PATH variable is most likely not set properly. Most likely, some other app modified your $PATH variable on your system to direct python towards a folder that doesn't contain a Python installation. Check out this article for some information on how to check your PATH and modify it. (disclosure: I randomly googled and picked this article out of the top 5 results because it looks like it gives the clearest explanation.)

            Also, try using PowerShell and not cmd.exe, PowerShell behaves as expected with $PATH changes, cmd.exe sometimes doesn't work.

            A potentially overkill solution: Use the Windows Application manager in Settings to uninstall any existing Python installations, get a fresh copy of the installer from the official Python website (be sure you get the installer for the right version, if you need a specific version), and run the installation again, fresh. Double check the installation prompts to be sure it adds Python to your $PATH, and then use PowerShell to run Python. That specific .dll is for Python 3.6, so start by trying to install that version first.

            Source https://stackoverflow.com/questions/68714934

            QUESTION

            Problems installing python 3.6 with pyenv on Mac OS Big Sur
            Asked 2021-May-14 at 13:38

            When installing Python 3.6.13 on my MacBook Air, OS Big Sur, using the command pyenv install 3.6.13 I get this error:

            ...

            ANSWER

            Answered 2021-May-14 at 13:38

            QUESTION

            How to handle FFMPEG module missing probe inside docker?
            Asked 2021-Apr-02 at 09:09

            I am AWARE of how to solve this problem of missing problem module with spleeter on WINDOWS. Here is the solution https://github.com/deezer/spleeter/issues/101

            How can I achieve the same inside my docker container? In my docker file, the FFMPEG is being installed but it is missing the probe module. This is a common problem but one that I don't know how to solve inside of Docker.

            I tried doing

            ...

            ANSWER

            Answered 2021-Apr-02 at 09:09

            As a hack, this worked for me -

            Source https://stackoverflow.com/questions/66851132

            QUESTION

            How to write this type of code in "vim test.py"
            Asked 2021-Mar-24 at 09:56
            "!spleeter separate -o output/ converted.mp3"
            
            ...

            ANSWER

            Answered 2021-Mar-24 at 09:56

            If you want to run terminal commands in python use subprocess library in python.

            Source https://stackoverflow.com/questions/66777022

            QUESTION

            How do I pass a format-able string to a python function?
            Asked 2021-Mar-12 at 23:19

            I am using a software library that saves its results in a few sound files. I want to save them with a better name in a different directory other than the default one. The software provides the optional parameter filename_format for this purpose. The docs say to use it this way:

            ...

            ANSWER

            Answered 2021-Mar-12 at 23:19

            See where it's calling

            Source https://stackoverflow.com/questions/66608404

            QUESTION

            How to prompt for user input and place that value in a terminal command using applescript?
            Asked 2020-Aug-12 at 16:29

            I'm trying to create a script that asks the user what .mp3 they want to split using Terminal through AppleScript / Script Editor. Here's what I have so far.

            I am trying to get input to display in this line:

            ...

            ANSWER

            Answered 2020-Aug-12 at 16:29

            You are placing a command inside a string, so it is not getting evaluated. The solution for that is to concatenate the results of the command and the string parts in the desired order.

            When using the Terminal, unless specified otherwise, each do script command is run in its own window/tab. If you don't neccessarily need a Terminal window, the do shell script command can be used instead (note that it uses a default shell, so you should use full paths), but to use multiple commands with either one you need to combine the various shell commands into a single statement, otherwise they will be run in separate shells.

            I don't have that utility to test, but in the following script I am getting the text in the dialog statement, and quoting the result for the shell script in case it contains spaces, etc:

            Source https://stackoverflow.com/questions/63376576

            QUESTION

            Cannot find 'audio_example.mp3' when using deezer/spleeter
            Asked 2020-Jul-12 at 15:16

            After installing Spleeter in Docker, I tried to run the example docker run -v $(pwd)/output:/output researchdeezer/spleeter separate -i audio_example.mp3 -o /output in Ubuntu as the doc shows.

            But the terminal returned audio_example.mp3: No such file or directory.

            ...

            ANSWER

            Answered 2020-Jul-12 at 15:16

            Create a directory input and place there your file. Then run the following:

            Source https://stackoverflow.com/questions/62862134

            QUESTION

            Extract AUDIO, manipulate & merge again
            Asked 2020-Jan-21 at 14:33

            I'm using Spleeter to remove music from audios.

            My goal is to build a script that automates the process of extracting audio from the video, execute Spleeter on the extracted audio & than merge the manipulated audio back to the video replacing the original one.

            The main issue I had is that I don't have enough ram to process the whole extracted audio. I need to split it the into multiple pieces & execute Spleeter upon each piece.

            Then concatenate the manipulated pieces together and merge the result to the video.

            Here's what I tried:

            ...

            ANSWER

            Answered 2020-Jan-21 at 14:33

            the problem you are experiencing is that ffmpeg's concat demuxer requires an input file that contains directives, rather than a naive file-list.

            Your find invocation creates a file like:

            Source https://stackoverflow.com/questions/59840282

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install spleeter

            Want to try it out but don't want to install anything ? We have set up a Google Colab.

            Support

            Spleeter is a complex piece of software and although we continously try to improve and test it you may encounter unexpected issues running it. If that's the case please check the FAQ page first as well as the list of currently open issues.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install spleeter

          • CLONE
          • HTTPS

            https://github.com/deezer/spleeter.git

          • CLI

            gh repo clone deezer/spleeter

          • sshUrl

            git@github.com:deezer/spleeter.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link