Duplicate registration of device factory for type XLA_CPU with the same priority 50

287 views
Skip to first unread message

Dmitry Kondratenko

unread,
Jul 6, 2021, 8:05:03 PM7/6/21
to doubango-ai

I tried to ultimateCreditCard Python sample on lInux and got following error.
How can I resolve this?
Thanks.

image_2021_07_07T00_04_08_678Z.png

Mamadou DIOP

unread,
Jul 6, 2021, 10:35:36 PM7/6/21
to Dmitry Kondratenko, doubango-ai

Please share full logs as text (no cuts).

--
You received this message because you are subscribed to the Google Groups "doubango-ai" group.
To unsubscribe from this group and stop receiving emails from it, send an email to doubango-ai...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/doubango-ai/82a27d3a-536b-4fca-b950-82ffb1dfbd49n%40googlegroups.com.

Dmitry Kondratenko

unread,
Jul 6, 2021, 10:52:29 PM7/6/21
to doubango-ai
*[COMPV INFO]: [UltCreditCardSdkEngine] Call: init
*[COMPV INFO]: [UltCreditCardSdkEngine] jsonConfig: {"debug_level": "info", "debug_write_input_image_enabled": false, "debug_internal_data_path": ".", "num_threads": -1, "gpgpu_enabled": false, "detect_minscore": 0.5, "detect_roi": [0, 0, 0, 0], "recogn_minscore": 0.2, "recogn_score_type": "min", "recogn_rectify_enabled": false, "assets_folder": "../../../assets", "ielcd": true}
*[COMPV INFO]: /!\ Code in file '/home/ultimate/ultimateCreditCard/SDK_dev/lib/source/ultimate_ccard_sdk_public_engine.cxx' in function 'init' starting at line #79: Not optimized -> Code not built for mobile devices but for clouds. Are you sure this is what you want?
*[COMPV INFO]: [UltCreditCardSdkEngine] **** Copyright (C) 2011-2021 Doubango Telecom <https://www.doubango.org> ****
ultimateCreditCard-SDK <https://github.com/DoubangoTelecom/ultimateCreditCard-SDK> version 2.3.0

*[COMPV INFO]: [CompVBase] Initializing [base] modules (v 1.0.0, nt -1)...
*[COMPV INFO]: [CompVBase] sizeof(compv_scalar_t)= #8
*[COMPV INFO]: [CompVBase] sizeof(float)= #4
*[COMPV INFO]: Initializing window registery
*[COMPV INFO]: [ImageDecoder] Initializing image decoder...
*[COMPV INFO]: [CompVCpu] H: 'GenuineIntel', S: '', M: '85', MN: 'Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz'
*[COMPV INFO]: [CompVBase] CPU features: (intel);[x86];[x64];mmx;sse;sse2;sse3;ssse3;sse41;sse42;avx;avx2;fma3;erms;bmi1;bmi2;popcnt;cmov;aes;rdrand;avx512_f;avx512_cd;avx512_vl;avx512_bw;avx512_dq;
*[COMPV INFO]: [CompVBase] CPU cores: #4
*[COMPV INFO]: [CompVBase] CPU cache1: line size: #64B, size :#32KB
*[COMPV INFO]: [CompVBase] CPU Phys RAM size: #31654GB
*[COMPV INFO]: [CompVBase] CPU endianness: LITTLE
*[COMPV INFO]: [CompVBase] Binary type: X86_64
*[COMPV INFO]: [CompVBase] Intrinsic enabled
*[COMPV INFO]: [CompVBase] Assembler enabled
*[COMPV INFO]: [CompVBase] Code built with option /arch:SSE
*[COMPV INFO]: [CompVBase] Code built with option /arch:SSE2
*[COMPV INFO]: [CompVBase] Math Fast Trig.: true
*[COMPV INFO]: [CompVBase] Math Fixed Point: true
*[COMPV INFO]: [CompVMathExp] Init
*[COMPV INFO]: [CompVBase] Default alignment: #64
*[COMPV INFO]: [CompVBase] Best alignment: #64
*[COMPV INFO]: [CompVBase] Heap limit: #1620687KB (#1582MB)
*[COMPV INFO]: [CompVParallel] Initializing [parallel] module...
*[COMPV INFO]: /!\ Code in file '/home/ultimate/compv/base/compv_mem.cxx' in function 'CompVMemZero_C' starting at line #504: Not optimized -> No SIMD implementation found
*[COMPV INFO]: [CompVAsyncTask11] run(coreId:requested=0,set=useless, threadId:0x7f8f32a22700, kThreadSetAffinity:false) - ENTER
*[COMPV INFO]: [CompVAsyncTask11] run(coreId:requested=1,set=useless, threadId:0x7f8f32221700, kThreadSetAffinity:false) - ENTER
*[COMPV INFO]: [CompVAsyncTask11] run(coreId:requested=2,set=useless, threadId:0x7f8f31a20700, kThreadSetAffinity:false) - ENTER
*[COMPV INFO]: [CompVThreadDispatcher] Thread dispatcher created with #4 threads/#4 cores
*[COMPV INFO]: [CompVParallel] [Parallel] module initialized
*[COMPV INFO]: [CompVBase] [Base] modules initialized
*[COMPV INFO]: [CompVCore] Initializing [core] module (v 1.0.0)...
*[COMPV INFO]: [CompVAsyncTask11] run(coreId:requested=3,set=useless, threadId:0x7f8f3121f700, kThreadSetAffinity:false) - ENTER
*[COMPV INFO]: [CompVFeature] Registering feature factory with id = 1 and name = 'FAST (Features from Accelerated Segment Test)'...
*[COMPV INFO]: [CompVFeature] Registering feature factory with id = 8 and name = 'ORB (Oriented FAST and Rotated BRIEF)'...
*[COMPV INFO]: [CompVFeature] Registering feature factory with id = 27 and name = 'Sobel edge detector'...
*[COMPV INFO]: [CompVFeature] Registering feature factory with id = 28 and name = 'Scharr edge detector'...
*[COMPV INFO]: [CompVFeature] Registering feature factory with id = 29 and name = 'Prewitt edge detector'...
*[COMPV INFO]: [CompVFeature] Registering feature factory with id = 20 and name = 'Canny edge detector'...
*[COMPV INFO]: [CompVFeature] Registering feature factory with id = 30 and name = 'Hough standard (STD)'...
*[COMPV INFO]: [CompVFeature] Registering feature factory with id = 31 and name = 'Kernel-based Hough transform (KHT)'...
*[COMPV INFO]: [CompVFeature] Registering feature factory with id = 41 and name = 'Standard Histogram of oriented gradients (S-HOG)'...
*[COMPV INFO]: [CompVMatcher] Registering matcher factory with id = 0 and name = 'Brute force matcher'...
*[COMPV INFO]: [CompVConnectedComponentLabeling] Registering connected component labeling factory with id = 1 and name = 'PLSL (Parallel Light Speed Labeling)'...
*[COMPV INFO]: [CompVConnectedComponentLabeling] Registering connected component labeling factory with id = 19 and name = 'LMSER (Linear Time Maximally Stable Extremal Regions)'...
*[COMPV INFO]: [CompVGL] Initializing [gl] module (v 1.0.0)...
*[COMPV INFO]: [CompVGL] GL module initialized
*[COMPV INFO]: [CompVGpu] Initializing [gpu] module (v 1.0.0)...
*[COMPV INFO]: [CompVCamera] Initializing [camera] module (v 1.0.0)...
*[COMPV INFO]: [CompVDrawing] Initializing [drawing] module (v 1.0.0)...
*[COMPV INFO]: [CompVDrawing] /!\ No jpeg decoder found
*[COMPV INFO]: [CompVDrawing] Drawing module initialized
*[COMPV INFO]: [CompVGpu] GPU enabled: false
*[COMPV INFO]: /!\ Code in file '/home/ultimate/ultimateBase/lib/source/ultimate_base_engine.cxx' in function 'init' starting at line #75: Not optimized for GPU -> GPGPU computing not enabled or deactivated
*[COMPV INFO]: [UltOcrEngine] Tensorflow version: 1.14.0
*[COMPV INFO]: [UltCreditCardSdkEnginePrivate] **** Copyright (C) 2011-2021 Doubango Telecom <https://www.doubango.org> ****
You're using an unlicensed version of ultimateCreditCard-SDK <https://github.com/DoubangoTelecom/ultimateCreditCard-SDK>
without the rights to include the SDK in any form of commercial product.
2021-07-07 00:01:37.962000: F tensorflow/core/common_runtime/device_factory.cc:78] Duplicate registration of device factory for type XLA_CPU with the same priority 50
./run_linux_x64.sh: line 3: 23199 Aborted                 (core dumped) PYTHONPATH=../../../binaries/linux/x86_64:../../../python LD_LIBRARY_PATH=../../../binaries/linux/x86_64:$LD_LIBRARY_PATH python3 recognizer.py --image ../../../assets/images/revolut.jpg --assets ../../../assets --ielcd True

Mamadou DIOP

unread,
Jul 6, 2021, 11:12:46 PM7/6/21
to Dmitry Kondratenko, doubango-ai

The error suggests that one of the Tensorflow libraries loaded by the process do not match the C++ header files (1.14).

Use TF from https://doubango.org/deep_learning/libtensorflow_r1.14_cpu_linux_x86-64.tar.gz and copy it to binaries/linux/x86_64

You probably have multiple TF (e.g. under /usr/local/lib64) on the machine.

Dmitry Kondratenko

unread,
Jul 6, 2021, 11:46:58 PM7/6/21
to doubango-ai
I used libtensorflow_r1.14 from your site and copied it into /usr/lib.
I checked "locate libtensorflow", and it only shows libraries in /usr/lib.
But still problem persists..

Mamadou DIOP

unread,
Jul 6, 2021, 11:55:41 PM7/6/21
to Dmitry Kondratenko, doubango-ai

Do you have same issue with C++ samples (instead of Python)?

Mamadou DIOP

unread,
Jul 7, 2021, 12:34:50 AM7/7/21
to Dmitry Kondratenko, doubango-ai

Dmitry Kondratenko

unread,
Jul 7, 2021, 7:46:01 AM7/7/21
to doubango-ai
Thanks, it works

Dmitry Kondratenko

unread,
Jul 7, 2021, 9:04:16 AM7/7/21
to doubango-ai
ultimateMICR seems to have same issue.

Mamadou DIOP

unread,
Jul 7, 2021, 1:25:39 PM7/7/21
to Dmitry Kondratenko, doubango-ai
Reply all
Reply to author
Forward
0 new messages