ultimatevocalremovergui/README.md

163 lines
12 KiB
Markdown
Raw Normal View History

2020-11-09 11:41:36 +01:00
# Ultimate Vocal Remover GUI v4.0.0
2020-11-10 12:20:27 +01:00
<img src="https://raw.githubusercontent.com/Anjok07/ultimatevocalremovergui/beta/img/UVRBETA.jpg" />
2020-11-10 12:20:37 +01:00
2020-11-09 19:49:25 +01:00
[![Release](https://img.shields.io/github/release/anjok07/ultimatevocalremovergui.svg)](https://github.com/anjok07/ultimatevocalremovergui/releases/latest)
2020-11-09 19:48:10 +01:00
[![Downloads](https://img.shields.io/github/downloads/anjok07/ultimatevocalremovergui/total.svg)](https://github.com/anjok07/ultimatevocalremovergui/releases)
2020-11-09 11:40:12 +01:00
2020-11-10 10:21:11 +01:00
## About
2020-11-09 11:40:12 +01:00
2020-11-11 02:29:24 +01:00
This application is a GUI version of the vocal remover AI created and posted by GitHub user [tsurumeso](https://github.com/tsurumeso). You can find tsurumeso's original command line version [here](https://github.com/tsurumeso/vocal-remover).
2020-11-09 11:40:12 +01:00
2020-11-10 10:21:11 +01:00
- **Special Thanks**
2020-11-11 02:29:24 +01:00
- [tsurumeso](https://github.com/tsurumeso) - The engineer who authored the AI code. Thank you for the hard work and dedication you put into the AI application this GUI is built around!
2020-11-11 03:41:08 +01:00
- [DilanBoskan](https://github.com/DilanBoskan) - The main GUI code contributor. Thank you for helping bring this GUI to life! Your hard work and continued support is greatly appreciated.
2020-11-09 11:40:12 +01:00
## Installation
2020-11-11 02:29:24 +01:00
The application was made with Tkinter for cross-platform compatibility, so it should work with Windows, Mac, and Linux systems. However, this application has only been tested on Windows 10 & Linux Ubuntu.
2020-11-09 11:40:12 +01:00
### Install Required Applications & Packages
2020-11-10 10:21:11 +01:00
1. Download & install Python 3.7 [here](https://www.python.org/ftp/python/3.7.0/python-3.7.0-amd64.exe) (Windows link)
2020-11-11 03:41:08 +01:00
- **Note:** Ensure the *"Add Python 3.7 to PATH"* box is checked
2020-11-10 10:59:02 +01:00
2. Once Python has installed, download **Ultimate Vocal Remover GUI Version 4.0.0** here (link pending)
2020-11-10 09:19:02 +01:00
3. Place the UVR-V4GUI folder contained within the *.zip* file where ever you wish.
2020-11-11 03:41:08 +01:00
- Your documents folder or home directory is recommended for easy access.
2020-11-10 04:56:35 +01:00
4. From the UVR-V4GUI directory, open the Windows Command Prompt and run the following installs -
2020-11-09 11:40:12 +01:00
```
2020-11-09 13:12:14 +01:00
pip install --no-cache-dir -r requirements.txt
2020-11-09 11:40:12 +01:00
pip install torch==1.6.0+cu101 torchvision==0.7.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html
```
2020-11-11 03:59:27 +01:00
### FFmpeg
FFmpeg must be installed and configured in order for the application to be able to process any track that isn't a *.wav* file. Instructions for installing FFmpeg can be found on YouTube, WikiHow, Reddit, GitHub, and many other sources around the web.
2020-11-11 10:01:40 +01:00
- **Note:** If you are experiencing any errors when attempting to process any media audio files that are not the *.wav* format, please ensure FFmpeg is installed & configured correctly.
2020-11-11 03:59:27 +01:00
2020-11-10 04:56:35 +01:00
### Running the Vocal Remover GUI & Models
2020-11-09 11:40:12 +01:00
2020-11-10 10:21:11 +01:00
- Open the file labeled *'VocalRemover.py'*.
- It's recommended that you create a shortcut for the file labeled *'VocalRemover.py'* to your desktop for easy access.
2020-11-11 02:29:24 +01:00
- **Note:** If you are unable to open the *'VocalRemover.py'* file, please go to the [**troubleshooting**](https://github.com/Anjok07/ultimatevocalremovergui/tree/beta#troubleshooting) section below.
2020-11-09 11:40:12 +01:00
## Option Guide
### Choose AI Engine:
- This option allows you to toggle between tsurumeso's v2 & v4 AI engines.
2020-11-11 03:41:08 +01:00
- **Note:** Each engine comes with it's own set of models.
- **Note:** The TTA option and the ability to set the N_FFT value is limited to the v4 engine only.
2020-11-09 11:40:12 +01:00
### Model Selections:
2020-11-11 03:41:08 +01:00
The v2 & v4 AI engines use different sets of models. When selected, the models available for v2 or v4 will automatically populate within the model selection dropdowns.
2020-11-10 09:19:02 +01:00
2020-11-11 03:41:08 +01:00
- **Choose Main Model** - Here is where you choose the main model to perform a deep vocal removal.
2020-11-10 09:19:02 +01:00
- Each of the models provided were trained on different parameters, though they can convert tracks of all genres.
2020-11-11 10:01:40 +01:00
- Each model differs in the way they process given tracks.
2020-11-11 03:41:08 +01:00
- The [*'Model Test Mode'*](https://github.com/Anjok07/ultimatevocalremovergui/tree/beta#checkboxes) option makes it easier for the user to test different models on given tracks.
2020-11-10 09:19:02 +01:00
- **Choose Stacked Model** - These models are meant to clean up vocal artifacts from instrumental outputs.
- The stacked models provided are only meant to process instrumental outputs created by a main model.
2020-11-11 02:29:24 +01:00
- Selecting the [*'Stack Passes'*](https://github.com/Anjok07/ultimatevocalremovergui/tree/beta#checkboxes) option will enable you to select a stacked model to run with a main model.
- If you wish to only run a stacked model on a track, make sure the [*'Stack Conversion Only'*](https://github.com/Anjok07/ultimatevocalremovergui/tree/beta#checkboxes) option is checked.
2020-11-11 03:41:08 +01:00
- The wide range of main model/stacked model combinations gives the user more flexibility in discovering what model blend works best for the track(s) they are proessing.
- To reiterate, the [*'Model Test Mode'*](https://github.com/Anjok07/ultimatevocalremovergui/tree/beta#checkboxes) option streamlines the process of testing different main model/stacked model combinations on a given track. More information on this option can be found in the next section.
2020-11-09 11:40:12 +01:00
2020-11-10 10:21:11 +01:00
### Checkboxes
2020-11-11 03:41:08 +01:00
- **GPU Conversion** - Selecting this option ensures the GPU is used to process conversions.
- **Note:** This option will not work if you don't have a Cuda compatible GPU.
- Nividia GPU's are most compatible with Cuda.
- **Note:** CPU conversions are much slower compared to those processed through the GPU.
2020-11-10 10:46:17 +01:00
- **Post-process** - This option can potentially identify leftover instrumental artifacts within the vocal outputs. This option may improve the separation on *some* songs.
2020-11-11 02:29:24 +01:00
- **Note:** Having this option selected can potentially have an adverse effect on the conversion process, depending on the track. Because of this, it's only recommended as a last resort.
2020-11-10 09:19:02 +01:00
- **TTA** - This option performs Test-Time-Augmentation to improve the separation quality.
2020-11-11 02:29:24 +01:00
- **Note:** Having this selected will increase the time it takes to complete a conversion.
2020-11-11 03:41:08 +01:00
- **Note:** This option is ***not*** compatible with the *v2* AI engine.
- **Output Image** - Selecting this option will include the spectrograms in *.jpg* format for the instrumental & vocal audio outputs.
- **Stack Passes** - This option activates the stacked model conversion process and allows the user to set the number of times a track runs through a stacked model.
- **Note:** The best range is 3-7 passes. 8 or more passes can result in degraded sound quality for the track.
2020-11-10 09:19:02 +01:00
- **Stack Conversion Only** - Selecting this option allows the user to bypass the main model and run a track through a stacked model only.
2020-11-11 03:41:08 +01:00
- **Save All Stacked Outputs** - Having this option selected will auto-generate a new directory with the track name to your *'Save to'* path. The new directory will contain all of the outputs generated by each stack pass. The amount of audio outputs will depend on the number of stack passes chosen.
2020-11-11 02:29:24 +01:00
- **Note:** Each output filename will be appended with the number of passes it has had.
2020-11-11 03:41:08 +01:00
- **Example:** If 5 stack passes are chosen, the application will provide you with all 5 pairs of audio outputs generated after each pass, if this option is enabled.
2020-11-10 09:19:02 +01:00
- This option can be very useful in determining the optimal number of passes needed to clean a track.
2020-11-11 10:01:40 +01:00
- **Model Test Mode** - This option makes it easier for users to test the results of different models, and model combinations, by eliminating the hassel of having to manually create new folders and/or change the filenames when processing the same track through multiple models. This option structures the model testing process.
- When selected, the application will auto-generate a new folder in the *'Save to'* path you have chosen.
- The new auto-generated folder will be named after the model(s) selected.
- The output audio files will be saved to the auto-generated directory.
2020-11-11 03:41:08 +01:00
- The filenames for the instrumental & vocal outputs will have the selected model(s) name(s) appended to them.
### Parameter Values
All models released here will have the values they were trained with appended to the end of their filenames like so, **'MGM-HIGHEND_sr44100_hl512_w512_nf2048.pth'**. The *'_sr44100_hl512_w512_nf2048'* portion automatically sets the *SR*, *HOP LENGNTH*, *WINDOW SIZE*, & *N_FFT* values within the application. If there are no values appended to the end of a selected model filename, the *SR*, *HOP LENGNTH*, *WINDOW SIZE*, & *N_FFT* fields will be editable and auto-populate with default values.
- **Default Values:**
- **SR** - 44100
- **HOP LENGTH** - 1024
- **WINDOW SIZE** - 512
- **N_FFT** - 2048
2020-11-09 11:40:12 +01:00
### Other Buttons:
2020-11-11 03:41:08 +01:00
- **Add New Model** - This button will automatically open the models folder.
- **Note:** If you are adding a new model, make sure to add it accordingly based on the AI engine it was trained on.
- **Example:** If you wish to add a model trained on the v4 engine, add it to the correct folder located in the 'models/v4/' directory.
2020-11-11 02:29:24 +01:00
- **Note:** The application will automatically detect any models added the correct directories without needing a restart.
2020-11-10 05:02:53 +01:00
- **Restart Button** - If the application hangs for any reason, you can hit the circular arrow button immediately to the right of the *'Start Conversion'* button.
2020-11-09 11:40:12 +01:00
2020-11-10 10:21:11 +01:00
## Models Included
2020-11-09 11:40:12 +01:00
2020-11-10 10:46:17 +01:00
**PLEASE NOTE:** Do not change the name of the models provided! The required parameters are specified and appended to the end of the filenames.
2020-11-09 11:40:12 +01:00
2020-11-10 10:46:17 +01:00
Here's a list of the models included within the package -
2020-11-09 11:42:47 +01:00
2020-11-10 10:46:17 +01:00
- **v2 AI Engine**
- **Main Models**
- *(list pending)*
- **Stacked Models**
- *(list pending)*
- **v4 AI Engine**
- **Main Models**
- *(list pending)*
- **Stacked Models**
- *(list pending)*
2020-11-10 05:02:53 +01:00
2020-11-10 10:46:17 +01:00
A special thank you to aufr33 for helping me expand the dataset used to train these models and for the helpful training tips.
2020-11-10 04:56:35 +01:00
2020-11-10 10:21:11 +01:00
## Other GUI Notes
2020-11-11 03:41:08 +01:00
- The application will automatically remember your *'save to'* path upon closing and reopening until it's changed.
- **Note:** The last directory accessed within the application will also be remembered.
2020-11-10 10:21:11 +01:00
- Multiple conversions are supported.
- The ability to drag & drop audio files to convert has also been added.
2020-11-10 10:46:17 +01:00
- Conversion times will greatly depend on your hardware.
2020-11-11 02:29:24 +01:00
- **Note:** This application will *not* be friendly to older or budget hardware. Please proceed with caution! Pay attention to your PC and make sure it doesn't overheat. ***We are not responsible for any hardware damage.***
2020-11-10 10:21:11 +01:00
## Troubleshooting
2020-11-09 11:40:12 +01:00
2020-11-11 03:59:27 +01:00
Please be as detailed as possible when posting a new issue. Make sure to provide any error outputs and/or screenshots/gif's to give us a clearer understanding of the issue you are experiencing.
2020-11-10 10:59:02 +01:00
If the *'VocalRemover.py'* file won't open *under any circumstances* and all other resources have been exhausted, please do the following -
2020-11-09 11:40:12 +01:00
1. Open the cmd prompt from the UVR-V4GUI directory
2. Run the following command -
```
2020-11-09 11:53:22 +01:00
python VocalRemover.py
2020-11-09 11:40:12 +01:00
```
2020-11-10 05:02:53 +01:00
3. Copy and paste the error output in the cmd prompt to the issues center on the GitHub repository.
2020-11-09 11:40:12 +01:00
2020-11-10 10:21:11 +01:00
## License
2020-11-09 11:40:12 +01:00
2020-11-10 10:21:11 +01:00
The **Ultimate Vocal Remover GUI** code is [MIT-licensed](LICENSE).
## Contributing
2020-11-11 02:29:24 +01:00
- For anyone interested in the ongoing development of **Ultimate Vocal Remover GUI** please send us a pull request and we will review it. This project is 100% open-source and free for anyone to use and/or modify as they wish.
- Please note that we do not maintain or directly support any of tsurumesos AI application code. We only maintain the development and support for the **Ultimate Vocal Remover GUI**.
2020-11-09 11:40:12 +01:00
## References
2020-11-10 10:21:11 +01:00
- [1] Takahashi et al., "Multi-scale Multi-band DenseNets for Audio Source Separation", https://arxiv.org/pdf/1706.09588.pdf