OCR returns slightly different results on different machines

With exactly the same code and the same input image.
Both results are accetable but they are slightly different. What it could be?
The only difference between the two system I can think of is one machine has an GPU and the other does not. Could GPU be a factor?

댓글 수: 1

I heard of a story where a calculation (not OCR) gave different results on an AMD-maschine than on an intel one. But I can't remember the details

댓글을 달려면 로그인하십시오.

 채택된 답변

colordepth
colordepth 2023년 7월 9일

1 개 추천

GPUs and CPUs can handle floating-point operations differently due to their distinct hardware architectures, potentially leading to minor discrepancies in results. I've seen that variations in CUDA versions can also contribute to this. Furthermore, the precision of computation (like float-16, float-32 or mixed precision) can affect the final output. Minor discrepancies can stack up in tasks involving multiple processing layers.

댓글 수: 3

AMD and Intel machines have different high-performance vectorized machine instructions, so the Math Kernel Library (MKL) for AMD is not the same binary as for Intel, so high performance libraries will not necessarily get exactly the same result.
Yeah, MKL is optimized for Intel processors and takes full advantage of Intel-specific instruction sets. I always see a prompt for it when installing tensorflow/pytorch (one of these), but never bothered to look into it as I have an AMD processor. Was this in response to Nathan's comment?

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Joss Knight
Joss Knight 2023년 7월 13일

1 개 추천

This is expected for any highly optimized code like this. Even for two Intel machines, the core count will affect how operations are parallelized.

Try calling maxNumCompThreads(1) and see if that fixes it.

카테고리

도움말 센터File Exchange에서 Language Support에 대해 자세히 알아보기

제품

릴리스

R2023a

태그

질문:

2023년 7월 8일

답변:

2023년 7월 13일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by