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

Error upscaling video - CPU used instead of GPU #124

Open
catclaw opened this issue Feb 14, 2025 · 1 comment
Open

Error upscaling video - CPU used instead of GPU #124

catclaw opened this issue Feb 14, 2025 · 1 comment

Comments

@catclaw
Copy link

catclaw commented Feb 14, 2025

Hi again!

I tried to upscale a 5 sec. video for testing, but both tries failed.
Instead of using GPU, my both CPUs (dual Xeon Gold) were used to try and upscale the video - and nothing happened?
The load of both CPUs were ~85% (Python 97%).
For the first run, I changed the GPU setting to use GPU 2 (my second GPU) and set VRAM to 12 (24 GB VRAM available).
For the second run, I changed the GPU setting to Auto, and set VRAM to 12, but nothing happened besides both CPUs going from 41C to 89C despite I have water cooling!
Here is the output in the VSCode terminal:

PS F:\QualityScaler-main\QualityScaler-main> & f:/QualityScaler-main/QualityScaler-main/.venv/Scripts/python.exe f:/QualityScaler-main/QualityScaler-main/QualityScaler.py
[QualityScaler] ffmpeg.exe found
[QualityScaler] Preference file does not exist, using default coded value

Uploaded files: 1 => Supported files: 1
==================================================
Starting upscale:
Files to upscale: 1
Output path: F:/AI bloopers/Upscaled
Selected AI model: BSRGANx4
Selected GPU: GPU 2
AI multithreading: 8
Blending factor: 0.7
Selected image output extension: .png
Selected video output extension: .mp4
Selected video output codec: h264_nvenc
Tiles resolution for selected GPU VRAM: 719x719px
Input resize factor: 50%
Output resize factor: 100%
Cpu number: 28
Save frames: True
==================================================
[QualityScaler] ffmpeg.exe found
[QualityScaler] Preference file does not exist, using default coded value
Loading AI model

  1. Extracting video frames
    Frames supported simultaneously by GPU: 8
  2. Upscaling video
  3. Upscaling video (8 threads)
    F:\QualityScaler-main\QualityScaler-main.venv\Lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py:115: UserWarning: Specified provider 'DmlExecutionProvider' is not in available provider names.Available providers: 'AzureExecutionProvider, CPUExecutionProvider'
    warnings.warn(
    Stop
    ==================================================

Starting upscale:
Files to upscale: 1
Output path: F:/AI bloopers/Upscaled
Selected AI model: BSRGANx4
Selected GPU: Auto
AI multithreading: 4
Blending factor: 0.7
Selected image output extension: .png
Selected video output extension: .mp4
Selected video output codec: h264_nvenc
Tiles resolution for selected GPU VRAM: 719x719px
Input resize factor: 75%
Output resize factor: 100%
Cpu number: 28
Save frames: True
==================================================
[QualityScaler] ffmpeg.exe found
[QualityScaler] Preference file does not exist, using default coded value
Loading AI model

  1. Extracting video frames
    Frames supported simultaneously by GPU: 3
  2. Upscaling video
  3. Upscaling video (3 threads)
    F:\QualityScaler-main\QualityScaler-main.venv\Lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py:115: UserWarning: Specified provider 'DmlExecutionProvider' is not in available provider names.Available providers: 'AzureExecutionProvider, CPUExecutionProvider'
    warnings.warn(
    Stop
@Djdefrag
Copy link
Owner

Hi my friend,

your gpu does not have support for DMLExecutionProvider. Are you on an Azure server?

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

2 participants