rakuri255 / UltraSinger

AI based tool to convert vocals lyrics and pitch from music to autogenerate Ultrastar Deluxe, Midi and notes. It automatic tapping, adding text, pitch vocals and creates karaoke files.
MIT License
287 stars 26 forks source link

WSL support #141

Open rakuri255 opened 6 months ago

rakuri255 commented 6 months ago

BTW, I wouldn't mind to try the WSL solution, but I don't know how to follow after running the command:

sudo apt update && sudo apt install nvidia-cuda-toolkit

Because following the tutorial makes this issue:

/mnt/c/Programas/UltraSinger-WSL$ .venv\Scripts\activate
.venvScriptsactivate: command not found
/mnt/c/Programas/UltraSinger-WSL$ cd .venv
/mnt/c/Programas/UltraSinger-WSL/.venv$ ls -a
.  ..  bin  include  lib  lib64  pyvenv.cfg
/mnt/c/Programas/UltraSinger-WSL/.venv$ cd Scripts
-bash: cd: Scripts: No such file or directory

I imagine that the instructions for using python on linux would be different, but I never used so I don't know how to proceed.

Originally posted by @BanCrash in https://github.com/rakuri255/UltraSinger/issues/140#issuecomment-2094920530

BanCrash commented 6 months ago

Ok, after a lot of try and error, just found the way to use in WSL. However, since I have to try and install a lot of things, I don't remember the full steps, but here I'll write some of them at least.

Some previous steps (not all the necessary previous steps unfortunately):

Installing python venv: sudo apt-get install python3-venv

Setting up the venv: python3 -m venv .venv

Installing ffmpeg on WSL (thanks to https://gist.github.com/ScottJWalter/eab4f534fa2fc9eb51278768fd229d70)

sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install ffmpeg

For using:

source .venv/bin/activate
cd src
python3 UltraSinger.py <commands>
rakuri255 commented 5 months ago

For gpu you need sudo apt install nvidia-cuda-toolkit