Giter Club home page Giter Club logo

Comments (29)

pmth avatar pmth commented on June 26, 2024 1

ok - some update. installed onnxruntime-gpu and onnxruntime (cpu) and tried to use it. It turned out that estimates say 19hrs+ rather than 30mins with onnxruntime-directml.

Then, I look at GPU temperature, and temp is a bit higher than usual (70C). So, I guess, task manager may not report the right GPU metrics?

from qualityscaler.

Djdefrag avatar Djdefrag commented on June 26, 2024 1

ok - some update. installed onnxruntime-gpu and onnxruntime (cpu) and tried to use it. It turned out that estimates say 19hrs+ rather than 30mins with onnxruntime-directml.

Then, I look at GPU temperature, and temp is a bit higher than usual (70C). So, I guess, task manager may not report the right GPU metrics?

Hi my friend, yes, with Nvidia GPU Task manager does not visualize "AI processing" by default. You have to select the correct Voice from the graph menu, probably Compute 0 or High priority 3D

from qualityscaler.

SandwichIsGreat avatar SandwichIsGreat commented on June 26, 2024

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.

from qualityscaler.

xxopenxx avatar xxopenxx commented on June 26, 2024

i have python 3.11.4

from qualityscaler.

Djdefrag avatar Djdefrag commented on June 26, 2024

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

from qualityscaler.

xxopenxx avatar xxopenxx commented on June 26, 2024

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

from qualityscaler.

xxopenxx avatar xxopenxx commented on June 26, 2024

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

from qualityscaler.

Djdefrag avatar Djdefrag commented on June 26, 2024

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

from qualityscaler.

xxopenxx avatar xxopenxx commented on June 26, 2024

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

from qualityscaler.

Djdefrag avatar Djdefrag commented on June 26, 2024

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

from qualityscaler.

xxopenxx avatar xxopenxx commented on June 26, 2024

These 2 things already installed

from qualityscaler.

Djdefrag avatar Djdefrag commented on June 26, 2024

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

from qualityscaler.

xxopenxx avatar xxopenxx commented on June 26, 2024

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

from qualityscaler.

Djdefrag avatar Djdefrag commented on June 26, 2024

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

from qualityscaler.

SandwichIsGreat avatar SandwichIsGreat commented on June 26, 2024

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

from qualityscaler.

xxopenxx avatar xxopenxx commented on June 26, 2024

image

from qualityscaler.

xxopenxx avatar xxopenxx commented on June 26, 2024

image

from qualityscaler.

Djdefrag avatar Djdefrag commented on June 26, 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

from qualityscaler.

xxopenxx avatar xxopenxx commented on June 26, 2024

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

from qualityscaler.

Djdefrag avatar Djdefrag commented on June 26, 2024

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

from qualityscaler.

xxopenxx avatar xxopenxx commented on June 26, 2024

image

from qualityscaler.

xxopenxx avatar xxopenxx commented on June 26, 2024

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

from qualityscaler.

Djdefrag avatar Djdefrag commented on June 26, 2024

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

from qualityscaler.

lindathomass avatar lindathomass commented on June 26, 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 ?

from qualityscaler.

Djdefrag avatar Djdefrag commented on June 26, 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

from qualityscaler.

pmth avatar pmth commented on June 26, 2024

Hello - I have the same issue. From both steam app and version 3.6 from github. The symptom is that CPU is peak and no GPU usage (no memory allocation, CUDA is low % (e.g. 0-5% same as GPU).

I found this on stack and tried the script.
https://stackoverflow.com/questions/64452013/how-do-you-run-a-onnx-model-on-a-gpu

Mine say, "CPU-DML". Is that correct?

I also check python package and it is using

onnxconverter-common==1.14.0     
onnxruntime-directml==1.18.0     

from qualityscaler.

pmth avatar pmth commented on June 26, 2024

image

I couldn't figure out where the bottleneck is. It doesn't use full - cpu or GPU. VRAM is very low as well.

image

(note: I added hvec_nvenc for faster hardware encoding, using it with P7 still several times faster and I couldn't tell the different between software/hardware for my use case)

from qualityscaler.

Djdefrag avatar Djdefrag commented on June 26, 2024

Hi my friend,

usually Half precision is faster, i reccomend use Full precision only for old gpus (which are not compatible with Half precision).

For Nvidia gpu's, Task Manager does not show GPU usage for AI processing by default. It should show it in one of these graphs, but I don't know which one because I don't have an Nvidia GPU :(

Immagine 2024-06-22 120428

In any case, it is also useful to look at the GPU temperature, to see if it is being used. If the temperature is high, it means it is being used properly.

from qualityscaler.

pmth avatar pmth commented on June 26, 2024

For me, it shows as Graphic_1 above which is running around 67%. I don't have High priority 3D.
Yeh. I have been playing around with Half precision setting, I settled with half precision.

Do you have recommendation on interpolation? I noticed improvement selecting "None". However, I don't know if it's happening in every frame.

btw, I solved the GPU/CPU not fully used problem. I made change to allow 6 threads, now GPU goes up around 80%, I think VRAM is 1GB more and CPU is bounded :). It's reduced1.5 hours of 5 hrs processing with 4 threads. I think Real-ESRGAN can use high # of thread setting. But ESRGAN, will burn out my CPU much quicker.

Thanks for the note on watching CPU/GPU temp on the app, that's how I found out.

from qualityscaler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.