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

DirectML returning empty result with ObjectDetection (Mobilinet V2 FPN Keras) #20386

Open
willianwrm opened this issue Apr 19, 2024 · 2 comments
Labels
ep:DML issues related to the DirectML execution provider platform:windows issues related to the Windows platform

Comments

@willianwrm
Copy link

willianwrm commented Apr 19, 2024

Describe the issue

Result is empty when using DirectML but works as expected when using only CPU.
Tested for ObjectDection with ssd_mobilenet_v2_fpn_keras model.

I first reported it in tensorflow-onnx but it seems like a runtime issue.
There is another issue that looks like similar to this one but I don't know for sure so I did open as a new issue.

To reproduce

Use this C# .NET 8.0 Windows Forms App, select a file image and wait for the result, the CPU result is printed in blue and DirectML result in red.
The project contains the onnx model and image examples can be found here. Tested opset 18 to 13, no change.

08b87f1b-c6aa-4654-a53b-1e9da3b3369a

I did notice that the detection_boxes are in fact OK but the num_detections and detection_scores are not -- raw_detection_scores is surprising OK.

Training configuration, data set, command lines and tensorflow exported graph can be found here

Urgency

Low since the CPU result is fine.

Platform

Windows

OS Version

11 23H2 22631.3447

ONNX Runtime Installation

Released Package

ONNX Runtime Version or Commit ID

1.17.3

ONNX Runtime API

C#

Architecture

X64

Execution Provider

DirectML

Execution Provider Library Version

No response

@github-actions github-actions bot added ep:DML issues related to the DirectML execution provider platform:windows issues related to the Windows platform labels Apr 19, 2024
@sophies927 sophies927 added the platform:mobile issues related to ONNX Runtime mobile; typically submitted using template label Apr 25, 2024
@skottmckay skottmckay removed the platform:mobile issues related to ONNX Runtime mobile; typically submitted using template label Apr 26, 2024
Copy link
Contributor

This issue has been automatically marked as stale due to inactivity and will be closed in 30 days if no further activity occurs. If further support is needed, please provide an update and/or more details.

@github-actions github-actions bot added the stale issues that have not been addressed in a while; categorized by a bot label May 26, 2024
@willianwrm
Copy link
Author

Update: tested with DirectML version 1.18.0 but the problem persists.

@github-actions github-actions bot removed the stale issues that have not been addressed in a while; categorized by a bot label May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ep:DML issues related to the DirectML execution provider platform:windows issues related to the Windows platform
Projects
None yet
Development

No branches or pull requests

3 participants