JonathanFly / bark

🚀 BARK INFINITY GUI CMD 🎶 Powered Up Bark Text-prompted Generative Audio Model
MIT License
998 stars 91 forks source link

GPU Not working again #83

Open gitihobo opened 1 year ago

gitihobo commented 1 year ago

Reinstalled Bark infinity, simply git cloned and installed requirements-pip.txt but GPU no longer loads, what do we install?

JonathanFly commented 1 year ago

I'll be around tomorrow night in the official Bark discord, but try for now, it's what I used to to install music gen in the same as conda:

Option 1) Mamba/Conda https://github.com/JonathanFly/bark/commit/738f20f570e4531f42efa1ddac85af31d1f28219

or

Option 2) All pip, not tested. https://github.com/JonathanFly

If you do option 2 recommend doing this to install a venv instead of conda

venv install
python -m venv barkvenv
barkvenv\Scripts\activate
python.exe -m pip install --upgrade pip

m_small

Been too distracted...

gitihobo commented 1 year ago

I am really confused now, I am new to this, all I did was git clone this repo and install requirements-pip.txt inside my real anaconda venv, It never installed Mamba, all I do is enter python bark_webui.py to see the webui, I now installed musicgen-conda-pip.txt to see if I could fix the no GPU issue for BARK AND try out MusicGen at the same time, I do not see GPU fixed in Bark and I don't see a musicgen_webui.py file

JonathanFly commented 1 year ago

Updating shortly.

gitihobo commented 1 year ago

Awesome thank you Jon

JonathanFly commented 1 year ago

Awesome thank you Jon

I'm fixing the one click installer, so you may need some help if you installed it a different way. But I'll be in Bark discord for new few hours.

gitihobo commented 1 year ago

I don't use discord, can you tell us the basics here? I'm guessing it's even easier than my method.

JonathanFly commented 1 year ago

Try the zip file method: https://github.com/JonathanFly/bark#install-steps

I'll be online for a few hours, let me know if anything isn't working and I can fix.

gitihobo commented 1 year ago

Ok so for orders sake I made another anaconda enviroment, put the extracted zip file and launched install, I got this one-click-bark-installer_june16_23\installer_files\env" >nul && conda install -y -k ffmpeg-downloader --solver=libmamba' failed with exit status code '2'. Exiting...Press any key to continue . . .

JonathanFly commented 1 year ago

Ok so for orders sake I made another anaconda enviroment, put the extracted zip file and launched install, I got this one-click-bark-installer_june16_23\installer_files\env" >nul && conda install -y -k ffmpeg-downloader --solver=libmamba' failed with exit status code '2'. Exiting...Press any key to continue . . .

I put the wrong files in the zip, just fixed it. Way too sleepy tonight...

gitihobo commented 1 year ago

I will try it out now, we don't blame you, we appreciate you and we depend on you

JonathanFly commented 1 year ago

BTW if you do get it installed, start the TROUBLESHOOT_bark_setup_manually_by_entering_the_conda_environment.bat file and type conda clean --all and it should clear up a bunch of disk space from the failed installations with file that are no longer needed.

gitihobo commented 1 year ago

So I have a couple of questions, first thing is the script seems to turn my directory path into a virtual environment, does that mean I dont need to make the environment myself? I would prefer to since that way I can have all my envs in anaconda>envs but anyway, this is the error I seem to get conda-script.py install: error: argument --solver: invalid choice: 'libmamba' (choose from 'classic') Command nul && conda install -y -k pip --solver=libmamba' failed with exit status code '2'. Exiting... Press any key to continue . . .

JonathanFly commented 1 year ago

Yeah it installs basically a standalone conda. You don't need to make the environment tor even download the conda exe.

The problem you're getting is because I used the mamba fast solver in the version I downloaded. If you want to install it in your own ENV, you might have to wait for me to update regular install.

You can type:

conda install -n base -y conda-libmamba-solver

That will install the solver in your base conda. It is pretty safe because it's not on by default, I just call it with extra params

Update: I'm getting a fairseq error again... I think I need one more change on a fresh windows install. God.

mediashock commented 1 year ago

hey, What version is that MusicGen screenshot of?

JonathanFly commented 1 year ago

hey, What version is that MusicGen screenshot of?

I was working on a MusicGen UI but never finished it. I might just push the half working version though. It still has some cool features. I couldn't get the scripted sequence stuff to work, and need to redo it.

mediashock commented 1 year ago

I'd love to play around with it. I'm curious what features you added and about the music sequences section, what was your plan for that?. I'm playing around with MusicGen generating specific chord sequences and stuff but so far i find it limiting. I wish i had the tags it was trained on at least.

JonathanFly commented 1 year ago

The queue is just a list of JSON files with parameters but the main thing it's iterative, so you can say, use last sample output file, but use it as as input field for next segment melody, etc. It's really just the bare minimum to do anything, but I'm not very fast at making the stuff I am hoping for.

If you can give me examples of what you're trying to do, it might help. I'll keep it mind when I come back to music gen (maybe tomorrow) and maybe I'll think of some features to make your stuff work. I'm also in Discord same name.