Closed bxjg1987 closed 1 year ago
What is your image size in foreach (var item in fs) if they are large image then CPU use will be high.
I am also trying to avoid this, and use GPU but facing issues.
My image has a maximum size of 427kb, 2592 * 1944 px
PaddleDevice. Mkldnn (cpuMathThreadCount: 2) or 4
The problem still exists.
Please try this:
@bxjg1987 CPU 100% is expected when using mkldnn, CpuMathThreadCount
won't working as your expectation.
If you wants to reduce your CPU, can either using GPU or Openblas as jaydubal said.
If you have multiple cpu cores, you may use https://en.wikipedia.org/wiki/Processor_affinity to limit which core to run with your program.
Thank you very much, everyone!
try installing Sdcb.PaddleInference.runtime.win64.openblas and use PaddleDevice.Openblas() instead
Works well
nuget package
test code
I don't understand ocr, just need to recognize text, I'm not sure if this is a normal phenomenon.