Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not using gpu #76

Open
xxopenxx opened this issue May 15, 2024 · 23 comments
Open

not using gpu #76

xxopenxx opened this issue May 15, 2024 · 23 comments

Comments

@xxopenxx
Copy link

Hi, it's using 100% of my cpu and 0% of gpu all the time, memory is 0.0gb too

@SandwichIsGreat
Copy link

What version of python ate you using? This issue can occur when using an outdated python version. I know that Python 3.11.4 works for certain. 3.10 does not work.

@xxopenxx
Copy link
Author

i have python 3.11.4

@Djdefrag
Copy link
Owner

Hi @xxopenxx.

Are you on Windows 10 or Windows 11? because onnxruntime-directml (the AI engine) is only compatible with this OS.

Otherwhise it will use the CPU

@xxopenxx
Copy link
Author

Hi @xxopenxx.

Are you on Windows 10 or Windows 11? because onnxruntime-directml (the AI engine) is only compatible with this OS.

Otherwhise it will use the CPU

WINDOWS 10

@xxopenxx
Copy link
Author

Python 3.10.14, I never had problem with any ai open source apps, like stable diffusion, ollama etc

@Djdefrag
Copy link
Owner

@xxopenxx can you send your PC specs? (Task manager / performance tab)

@xxopenxx
Copy link
Author

i5 12400f, rtx 4070 12gb vram, 16gb ram

@Djdefrag
Copy link
Owner

Have you installed Visual C Redistributable and DXRuntime?

  1. (If not already installed) install Visual-C-Runtimes:

  2. (If not already installed) install Directx:

typically should already be installed

@xxopenxx
Copy link
Author

These 2 things already installed

@Djdefrag
Copy link
Owner

Strange, are you sure it is not using your gpu? the temperature is "normal" while upscaling?

Also, if you are on Python, you should see an error that says "onnxruntime will use CPU" in the terminal

@xxopenxx
Copy link
Author

i dont have that error, there are no errors at all in terminal of quality scaler

@Djdefrag
Copy link
Owner

Are you selecting "High performance" GPU in the options right? and if you select Power saving?

@SandwichIsGreat
Copy link

Python 3.10.14, I never had problem with any ai open source apps, like stable diffusion, ollama etc

wait.... do you have python 3.10.14 or 3.11.4? Because this looks an awfully lot like this issue #69

@xxopenxx
Copy link
Author

image

@xxopenxx
Copy link
Author

image

@Djdefrag
Copy link
Owner

Djdefrag commented May 18, 2024

Hi my friend, maibe you do not see the correct "graph". In fact, you are seeing only "Video encode" e "Video decode", but there are more options. To see if the gpu is being used, you have to switch to "3D" graph.

Also, you can use VsCode to run QualityScaler.py and you should see all logs

@xxopenxx
Copy link
Author

But while im using stable diffusion and im upscaling photo for example, I have 99% gpu usage in task manager, it's same for ollama and video diffusion. Upscaling using qualityscaler takes 2h to upscale 2minutes video from 360 p to 760p, using multihreading

@Djdefrag
Copy link
Owner

sorry but, just a stupid question, have you installed the correct dependencies in requirements.txt?

@xxopenxx
Copy link
Author

image

@xxopenxx
Copy link
Author

i can share screen on discord or something like that if you want

@Djdefrag
Copy link
Owner

can you unistall everything and re-install? i think there is some problem somewere because the latest version of onnxruntime-directml is 1.17.3, but you have 1.17.0

  • pip freeze > requirements.txt
  • pip uninstall -r requirements.txt -y
  • pip cache purge

@lindathomass
Copy link

lindathomass commented Jun 6, 2024

@Djdefrag Can I run it if I don't have GPU ?
If so how long would it take to process lets say a 5 min video on a 8GM RAM (I5 3rd gen) machine ?

@Djdefrag
Copy link
Owner

Djdefrag commented Jun 7, 2024

Hi my friend,

yes, it will run without GPU, but will be really slow.

Maibe you can try using the lightest AI model, RealSR_Gx4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants