OCR returns slightly different results on different machines
4 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
Nathan Hardenberg
2023 年 7 月 8 日
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
採用された回答
Deep
2023 年 7 月 9 日
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 件のコメント
Deep
2023 年 7 月 9 日
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?
Walter Roberson
2023 年 7 月 9 日
I see a recommendation for OpenBLAS; https://mattermodeling.stackexchange.com/questions/1103/since-mkl-is-not-optimized-for-amd-hardware-should-i-use-a-math-library-specifi
その他の回答 (1 件)
Joss Knight
2023 年 7 月 13 日
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.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で GPU Computing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!