Comments (5)
After applying this commit RapidAI/RapidOcrOnnx@83886d1, on my computer, the number of threads is set to 2 or 3 for the fastest recognition.
from ahk2_lib.
The current version supports only CPUs. I have tested the directml version on my computer, but no performance advantage.
from ahk2_lib.
The current version supports only CPUs. I have tested the directml version on my computer, but no performance advantage.
Ah that's unfortunate. Thanks for checking it out for me.
In that same vein, are you sure that you compiled the the dll with multithreading enabled?
I ran the following code with a variety of threads
values:
#Requires AutoHotkey v2.0
#Include <RapidOcr>
image := "1.bmp"
threads := 999
param := RapidOcr.OcrParam()
param.doAngle := false
ocr := RapidOcr({ models: A_ScriptDir "\models", numThread: threads },A_ScriptDir "\RapidOcrOnnx.dll")
num := 100
loop num{
ToolTip(Round((a_index / num)*100,2) "%")
ocr.ocr_from_file(image, param?)
}
I've tried 1,2,4,6,8, and 999 threads, but all of them gave extremely similar (within milliseconds) results. The time varies a little bit per image, but never per thread value per given image. That suggests that the DLL isn't actually running multithreaded. Am I doing something wrong?
from ahk2_lib.
I appreciate you looking into that!
from ahk2_lib.
Requires onnxruntime-gpu v1.18.0, cuda 12.x, cudnn 8.x
from ahk2_lib.
Related Issues (20)
- Chrome.ahk not compatible with latest Websocket.ahk HOT 1
- WebSocket.ahk: Error: Malformed _JSON - unrecognized character-
- [Webview2] Add example for bypassing CORS? HOT 4
- Why aren't my headers being set? HOT 3
- [WebView2] Examples for working with cookies. HOT 3
- [WebView2.ahk] In some rare cases WebView2.create(placeholder.Hwnd) returns 0 HOT 2
- JSON库无法正确解析四个连续的反斜杠
- [WebView2] New version of library gives error when compiled HOT 2
- stuck on wait for response HOT 5
- Native 不适用 AutoHotkey.dll HOT 1
- Is the cpp JSON parser officially part of ahk_lib? HOT 2
- unsuccessful attempt to upgrade Native.ahk
- [Crypt.ahk] Is this lib unfinished? HOT 7
- WebView2 support local files? HOT 1
- After compile to Exe, LoadScript does not work. HOT 3
- Using WebView2 to open local html-page HOT 1
- Chrome still prompts one to select the chrome profile even after providing full path HOT 4
- [Audio.ahk] How to use IAudioEndpointVolume ControlChangeNotify HOT 1
- [WebView2] Invalid return type HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ahk2_lib.