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

[Bug] DirectML performs the same as CPU and using CPU > GPU #3154

Open
2 tasks done
aihkla opened this issue Nov 18, 2024 · 0 comments
Open
2 tasks done

[Bug] DirectML performs the same as CPU and using CPU > GPU #3154

aihkla opened this issue Nov 18, 2024 · 0 comments

Comments

@aihkla
Copy link

aihkla commented Nov 18, 2024

Prerequisite

Environment

Windows using ONNX runtime

Reproduces the problem - code sample

import cv2
import time
from rtmlib import Wholebody, Body, RTMPose, RTMO, draw_skeleton
import onnxruntime as ort

device = 'dml' # cpu, cuda, mps, dml
backend = 'onnxruntime' # opencv, onnxruntime, openvino

openpose_skeleton = False

ort.set_default_logger_severity(0)

Reproduces the problem - command or script

Device is set to DML, but GPU occupy only 2-3% and CPU usage is over 60%

Reproduces the problem - error message

Device is set to DML, but GPU occupy only 2-3% and CPU usage is over 60%

Additional information

DML supposed to run faster than CPU only mode and occupy more GPU

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

1 participant