Dadangdut33 / Speech-Translate

A realtime speech transcription and translation application using Whisper OpenAI and free translation API. Interface made using Tkinter. Code written fully in Python.
MIT License
436 stars 55 forks source link

[BUG]Cannot find PyTorch #14

Closed dreammu closed 1 year ago

dreammu commented 1 year ago

Describe the bug I'm using Python 3.8.10 on Windows which installed the GPU version of PyTorch, but it shows me that "None of PyTorch, TensorFlow >= 2.0, or Flax have been found".

To Reproduce Steps to reproduce the behavior:

  1. Run the program
  2. On CLI it shows "None of PyTorch, TensorFlow >= 2.0, or Flax have been found"
  3. When recording sound or importing file, it will download and use the CPU version of PyTorch

Expected behavior It can detect PyTorch existed on my system.

Screenshots image image

Desktop (please complete the following information):

Additional context I guess maybe it is because different versions of Python are used? I don't know:(

Dadangdut33 commented 1 year ago

Hmm have you tried downgrading the pytorch version? Is your gpu cuda compatible?

Dadangdut33 commented 1 year ago

I tried to recreate this bug on my local but there seems to be no problem?. It might be that your gpu is not cuda compatible.

and about the python version, i recommend that you use pyenv to easily manage or switch your python version.

dreammu commented 1 year ago

I didn't try to downgrade my PyTorch version but it can be correctly called by Whisper, so CUDA should be compatible.

dreammu commented 1 year ago

Ok, after I re-extract the release file it seems to work properly... I don't know what made it go wrong. Thank you for your answering!