feat: switch to onnxruntime-directml for GPU acceleration#22
Merged
Conversation
574d353 to
48c1f8a
Compare
|
✅ Build succeeded! Artifact: |
Owner
Author
|
After switching to onnxruntime-directml, on my 2070 Super GPU, the ui_parse duration from 4s to 1.1s. |
48c1f8a to
8038001
Compare
- Replace onnxruntime with onnxruntime-directml>=1.24.0 in dependencies - Auto-detect DmlExecutionProvider availability in UIParser - Enable DirectML for both YOLO and RapidOCR inference - Add threading lock to protect DML inference (not thread-safe) - Run OCR/YOLO sequentially when DML is active - Update enikk.spec comment to reflect onnxruntime-directml
8038001 to
1a77350
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
onnxruntimewithonnxruntime-directml>=1.24.0in dependenciesDmlExecutionProvideravailability in UIParserTesting
DmlExecutionProvideris available at runtimeFixes #16