start.bat won't recognize my NVIDIA graphics card #24

Closed
opened 2023-02-23 00:19:56 +00:00 by pull_the_lever · 9 comments

Hello,

I'm having trouble getting the start.bat script to recognize my graphics card. A week or two ago, I was using your previous tortoise-tts repo without any issues with CUDA. Ever since I tried to migrate to the new repo, my graphics card isn't being recognized by this repo, or the old tortoise one.

So far I've tried re-installing the CUDA drivers multiple times, deleting and then recreating the venv folder using the setup-cuda.bat script, and changing around how my display ports are set up so that only my motherboard is processing the picture, but nothing's been a permanent fix so far.

I've attached a screenshot of my console output. This displays for a few seconds before my whole computer freezes up.

I have a AMD Ryzen 3 2200G processor, an NVIDIA GeForce GTX 1050Ti graphics card, and I'm running the latest version of Windows 11. Any help resolving this would be greatly appreciated.

Hello, I'm having trouble getting the start.bat script to recognize my graphics card. A week or two ago, I was using your previous tortoise-tts repo without any issues with CUDA. Ever since I tried to migrate to the new repo, my graphics card isn't being recognized by this repo, or the old tortoise one. So far I've tried re-installing the CUDA drivers multiple times, deleting and then recreating the `venv` folder using the `setup-cuda.bat` script, and changing around how my display ports are set up so that only my motherboard is processing the picture, but nothing's been a permanent fix so far. I've attached a screenshot of my console output. This displays for a few seconds before my whole computer freezes up. I have a AMD Ryzen 3 2200G processor, an NVIDIA GeForce GTX 1050Ti graphics card, and I'm running the latest version of Windows 11. Any help resolving this would be greatly appreciated.
Owner

That's strange. I can see if giving (most of) my venv will help, but for the mean time, if you don't mind, can you enter the following in a command prompt:

cd C:\Games\ai-voice-cloning\
.\venv\Scripts\activate.bat
python src\list_devices.py

and report what it prints?

Ryzen 3 2200G

With an iGPU right? I can't imagine it being a quirk where it tries to use your iGPU if it was working fine on the old repo.

That's strange. I can see if giving (most of) my `venv` will help, but for the mean time, if you don't mind, can you enter the following in a command prompt: ``` cd C:\Games\ai-voice-cloning\ .\venv\Scripts\activate.bat python src\list_devices.py ``` and report what it prints? > Ryzen 3 2200G With an iGPU right? I can't imagine it being a quirk where it tries to use your iGPU if it was working fine on the old repo.
Author

Here's what the console printed out.

Here's what the console printed out.
Owner

Oh, I just noticed you're using PowerShell, do:

cd C:\Games\ai-voice-cloning\
.\venv\Scripts\Activate.ps1
python src\list_devices.py

instead. My apologies.

Oh, I just noticed you're using PowerShell, do: ``` cd C:\Games\ai-voice-cloning\ .\venv\Scripts\Activate.ps1 python src\list_devices.py ``` instead. My apologies.
Author

Still nothing, I'm afraid.

Still nothing, I'm afraid.
Owner

Very strange.

If you still happen to have your old working tortoise-tts setup:

  • move .\tortoise-tts\tortoise-venv\ to .\ai-voice-cloning\venv\
  • in a Command Prompt PowerShell:
cd C:\Games\ai-voice-cloning\
.\venv\Scripts\Activate.ps1
python -m pip uninstall tortoise
python -m pip install -e .\tortoise-tts\
python .\src\list_devices.py

If that does work, then just run the update.bat script.

If that doesn't work, we'll just do some surgery and I'll zip up my working venv and I'll give some instructions on how to transplant it.

Very strange. If you still happen to have your old working `tortoise-tts` setup: * move `.\tortoise-tts\tortoise-venv\` to `.\ai-voice-cloning\venv\` * in a ~~Command Prompt~~ PowerShell: ``` cd C:\Games\ai-voice-cloning\ .\venv\Scripts\Activate.ps1 python -m pip uninstall tortoise python -m pip install -e .\tortoise-tts\ python .\src\list_devices.py ``` If that does work, then just run the `update.bat` script. If that doesn't work, we'll just do some surgery and I'll zip up my working `venv` and I'll give some instructions on how to transplant it.
Author

I just tried to transfer my venv over, no dice. The list_devices script still gives nothing but the square brackets. Running the update.bat didn't seem to fix it either.

If you could zip your venv and send it over, that would be great! Thanks again.

I just tried to transfer my venv over, no dice. The `list_devices` script still gives nothing but the square brackets. Running the `update.bat` didn't seem to fix it either. If you could zip your venv and send it over, that would be great! Thanks again.
Owner

Alrighty, they're uploading to litterbox now (again), slowly.

Make sure you have 7zip already installed, since they're much more compressed compared to zipping them up. I'll post the instructions and links when they're done.

Alrighty, they're uploading to litterbox now (again), slowly. Make sure you have 7zip already installed, since they're much more compressed compared to zipping them up. I'll post the instructions and links when they're done.
Owner

Sorry about the weight, I didn't forget; I kept timing out when the upload almost finished, three times.

Bit of a pickle of instructions (using litterbox, split into 2 7zips, because for some unsightly reason it's large):

cd C:\Games\ai-voice-cloning\
python -m venv venv
  • extract the 7z, Lib => C:\Games\ai-voice-cloning\venv\
  • then do the list_devices.py thing

If it works, hooray, run update.bat.

If not, then I genuinely don't know what's wrong.

Sorry about the weight, I didn't forget; I kept timing out when the upload almost finished, three times. Bit of a pickle of instructions (using litterbox, split into 2 7zips, because for some unsightly reason it's large): * download: 1. [venv.7z.001](https://litter.catbox.moe/rx0lba.001) 2. [venv.7z.002](https://litter.catbox.moe/xboidh.002) * run: ``` cd C:\Games\ai-voice-cloning\ python -m venv venv ``` * extract the 7z, `Lib` => `C:\Games\ai-voice-cloning\venv\` * then do the `list_devices.py` thing If it works, hooray, run `update.bat`. If not, then I genuinely don't know what's wrong.
Author

I was just able to get the thing to recognize my graphics card again. I copied the Lib folder into the place you asked and repeated the steps from your previous post. Seems like my card's being recognized again, thanks a bunch!

I was just able to get the thing to recognize my graphics card again. I copied the `Lib` folder into the place you asked and repeated the steps from [your previous post](https://git.ecker.tech/mrq/ai-voice-cloning/issues/24#issuecomment-348). Seems like my card's being recognized again, thanks a bunch!
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mrq/ai-voice-cloning#24
No description provided.