Closed ClaireCJS closed 1 year ago
I was hoping to get this running, but I think I'm not quite currently knowledgeable enough to get it working 😅
did you install tts?
I did everything as instructed
Did you notice that the name of the Conda enviroment was not correct ? I just fixed it todat
conda create -n tts-voice python=3.8 conda activate tts -> fixed to conda activate tts-voice
I see the log and you noticed that
Did you run it from Anaconda command prompt , after you activate the enviroment ? I cannot see in your log the Python starting command :
"python tortoise/do_tts.py --text "Hi, Lets go to the mall to buy a new shirt" --voice train_dotrice --preset fast"
Hi! Thanks for responding go quickly!
Unfortunately between now and then i blew away my tts3 environment and started on a new one called tts4, my 4th attempt to get this going.
The 3rd one actually did succeed at test_cuda at one point, but I ended up breaking it and not being able to fix it, it never actually spoke, and gave me this:
Fatal Python error: init_sys_streams: can't initialize sys standard streams
Python runtime state: core initialized
Traceback (most recent call last):
File "C:\ProgramData\anaconda3\lib\io.py", line 54, in
The first 2 attempts I really messed up by using the wrong versions of python i think, and not rebooting after installing visual studio. I also was confused about whether one of the TTS folders was supposed to be within another TTS folder, or if I had messed up. At one point it was \tts3\TTS\TTS\tts\ or such (if i recall correctly) and it seemed wrong.
Anyway, This time, the 4th time, "tts4", , i had everything that needed to be installed installed in advance, then created the new environment and took a lot of care to try to follow the instructions as close as possible.
test_cuda worked on the first try! Sort of!
At first, it gave a Numy warning:
(tts4) C:\ProgramData\anaconda3\envs\tts4\TTS>..\python.exe test_cuda.py test_cuda.py:2: UserWarning: Failed to initialize NumPy: numpy.core.multiarray failed to import (Triggered internally at C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\torch\csrc\utils\tensor_numpy.cpp:84.) x = torch.rand(5, 3) tensor([[0.0165, 0.8247, 0.3321], [0.2408, 0.1185, 0.7754], [0.3005, 0.5455, 0.1416], [0.5895, 0.4286, 0.6721], [0.9268, 0.4512, 0.6637]]) False
I did a pip install numpy which updated it to 1-24.3 which fixed the numpy warning, so now I get that same output without the numpy warning.
But it says "False' at the end.
I know I had a "true" at the end in tts3 before i screwed it up, but this time I'm getting a false this time.
But I know "true" is possible on my setup, so of course, I'm wondering how to fix it, and am a bit lost at this point. I'm a patient person. I can certainly train my model using CPU only, I have a 16-core Ryzen 9 5950X. But of course I'd rather use cuda and have it be faster.
And just to make things worse...
I did this:
conda install pytorch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 pytorch-cuda==11.7 -c pytorch -c nvidia
because in my personal notes for my specific machine, i had this listed as a set of packages that successfully pulled CUDA off at one point.
And now if I try test_cuda, I get a NumPy warning again!
[[[ I really hate NumPy. The way they change things between versions without backwards compatibility really seems to make it conflict with a lot of projects ]]]
(tts4) C:\ProgramData\anaconda3\envs\tts4\TTS>python test_cuda.py test_cuda.py:2: UserWarning: Failed to initialize NumPy: DLL load failed while importing _multiarray_umath: The specified module could not be found. (Triggered internally at C:\cb\pytorch_1000000000000\work\torch\csrc\utils\tensor_numpy.cpp:77.) x = torch.rand(5, 3) tensor([[0.4786, 0.9564, 0.9519], [0.2311, 0.7921, 0.5535], [0.4547, 0.6616, 0.0719], [0.8732, 0.9087, 0.5277], [0.4312, 0.7793, 0.7252]]) False
Hi, I have just updated the instructions.txt file. Create a new Conda enviroment and run all the updated commands.
Good luck Eran
I was reading the instructions line by line, so when I got to the line:
install Pytorch from here : https://pytorch.org/get-started/locally/
I went to that website and installed it from the website. They only offer 11.7 minimum. on the site.
But then the next line in your instructions says:
# what is my Cuda version :
nvcc --version
#The following command is for Cuda 11.7.
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117
Because my output to nvcc is this:
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Fri_Feb__8_19:08:26_Pacific_Standard_Time_2019
Cuda compilation tools, release 10.1, V10.1.105
I am wondering if that means I should have done: pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu101
instead of what I did do, which was: pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117
I'm scared that I've already taken the wrong path! :)
Please look at this link and download a previous version that suitable for your card : https://pytorch.org/get-started/previous-versions/
Are you sure that that you cannot upgrade your Cuda version ? Did you check the Nvidia website ?
Eran
It's a GeForce RTX 3060 Eagle OC Rev 2.0 12GB card - I'll see about getting a new cuda version
I am using the same card. You should update your Cuda version
Okay! That was the problem! I forget what other project had me downgrade my cuda. It generates voices now!
thank you so much!
I have a long dead celebrity voice I'd like to resurrect.... I think now it may be possible
Great :)
I use Windows. i followed the youtube video. it seemed impossible to install packages that made it happy.
In particular, it seemed llvmlite version was not something it liked, but changing it to one it liked would make another package complain, and so forth.
Ultimately, I only get this output once i get up to running it: