viseron icon indicating copy to clipboard operation
viseron copied to clipboard

Post processing config causing non-start?

Open sblfc opened this issue 4 years ago • 20 comments

Hello,

My config normally works however when I add:

post_processors:
  face_recognition:
    type: dlib
    expire_after: 10
    model: hog
    face_recognition_path: /config/face_recognition
  logging:
    level: debug

I crash at

[2020-10-20 23:23:38] [root ] [INFO ] - ------------------------------------------- [2020-10-20 23:23:38] [root ] [INFO ] - Initializing... [2020-10-20 23:23:38] [root ] [DEBUG ] - Starting cleanup scheduler [2020-10-20 23:23:38] [root ] [DEBUG ] - Running initial cleanup [2020-10-20 23:23:38] [lib.cleanup ] [DEBUG ] - Running cleanup [2020-10-20 23:23:38] [lib.cleanup ] [DEBUG ] - Items in /recordings/2020-10-20: 1 [2020-10-20 23:23:38] [lib.mqtt ] [INFO ] - Initializing MQTT connection [2020-10-20 23:23:38] [lib.detector ] [DEBUG ] - Initializing object detector edgetpu [2020-10-20 23:23:42] [lib.detectors.edgetpu ] [DEBUG ] - Using USB EdgeTPU [2020-10-20 23:23:42] [lib.detector ] [DEBUG ] - Object detector initialized [2020-10-20 23:23:42] [lib.post_processors ] [DEBUG ] - Initializing post processor face_recognition

Is there any way to get a log of why it's crashing or does anyone have any idea as to why?

My face files

config/face_recognition/faces/person1/0.jpg config/face_recognition/faces/person1/1.jpg config/face_recognition/faces/person1/2.jpg ...

Edit: Full Config

 logging:
  level: debug
  
  
cameras:
  - name: Front door
    mqtt_name: viseron_front_door
    host: 192.168.1.171
    port: 8554
    username: root
    password: (willbechanged)
    path: /unicast
    width: 1920
    height: 1080
    fps: 6 
    motion_detection:
      interval: 1
      trigger_detector: true
    object_detection:
      interval: 1
      labels:
        - label: person
          confidence: 0.9
        - label: pottedplant
          confidence: 0.9
      
object_detection:
  interval: 1
  type: edgetpu
  model_path: /detectors/models/edgetpu/model.tflite
  label_path: /detectors/models/edgetpu/labels.txt
  labels:
    - label: person
      confidence: 0.9
    - label: pottedplant
      confidence: 0.9
          
post_processors:
  logging:
    level: debug 
  face_recognition:
    type: dlib
   # expire_after: 10
   # model: hog
   # face_recognition_path: /config/face_recognition
  logging:
    level: debug 

sblfc avatar Oct 20 '20 22:10 sblfc

Is this the full log output? If it crashes i would expect a stacktrace.

Could you edit your post and wrap your full config in a codeblock just as you did with your post_processors: config?

roflcoopter avatar Oct 21 '20 06:10 roflcoopter

Hello,

I have done that, here is my full config that works perfectly :

mqtt:
  broker: brokeripwashere
  port: portwashere
  username: mqttuserhere
  password: mqttpasswordhere
  
logging:
  level: debug
  
  
cameras:
  - name: Front door
    mqtt_name: viseron_front_door
    host: ipwashere
    port: portwashere
    username: userwashere
    password: passwashere
    path: pathwashere
    width: 1920
    height: 1080
    fps: 6 
    motion_detection:
      interval: 1
      trigger_detector: true
    object_detection:
      interval: 1
      labels:
        - label: person
          confidence: 0.9
        - label: pottedplant
          confidence: 0.9
      
object_detection:
  interval: 1
  type: edgetpu
  model_path: /detectors/models/edgetpu/model.tflite
  label_path: /detectors/models/edgetpu/labels.txt
  labels:
    - label: person
      confidence: 0.9
    - label: pottedplant
      confidence: 0.9

Here is my config that crashes :

mqtt:
  broker: brokeripwashere
  port: portwashere
  username: mqttuserhere
  password: mqttpasswordhere
  
logging:
  level: debug
  
  
cameras:
  - name: Front door
    mqtt_name: viseron_front_door
    host: ipwashere
    port: portwashere
    username: userwashere
    password: passwashere
    path: pathwashere
    width: 1920
    height: 1080
    fps: 6 
    motion_detection:
      interval: 1
      trigger_detector: true
    object_detection:
      interval: 1
      labels:
        - label: person
          confidence: 0.9
        - label: pottedplant
          confidence: 0.9
      
object_detection:
  interval: 1
  type: edgetpu
  model_path: /detectors/models/edgetpu/model.tflite
  label_path: /detectors/models/edgetpu/labels.txt
  labels:
    - label: person
      confidence: 0.9
    - label: pottedplant
      confidence: 0.9
          
post_processors:
  face_recognition:
    type: dlib
    expire_after: 10
  logging:
    level: debug

Here is the output:

tensorflow@tensorflow:~$ sudo docker run --rm -v /home/tensorflow/roflcoopter/rec:/recordings -v /home/tensorflow/roflcoopter:/config -v /etc/localtime:/etc/localtime:ro -v /dev/bus/usb:/dev/bus/usb --privileged --name viseron roflcoopter/viseron:latest
[2020-10-21 10:03:54] [root                    ] [INFO    ] - -------------------------------------------
[2020-10-21 10:03:54] [root                    ] [INFO    ] - Initializing...
[2020-10-21 10:03:54] [root                    ] [DEBUG   ] - Starting cleanup scheduler
[2020-10-21 10:03:54] [root                    ] [DEBUG   ] - Running initial cleanup
[2020-10-21 10:03:54] [lib.cleanup             ] [DEBUG   ] - Running cleanup
[2020-10-21 10:03:54] [lib.cleanup             ] [DEBUG   ] - Items in /recordings/2020-10-20: 1
[2020-10-21 10:03:54] [lib.mqtt                ] [INFO    ] - Initializing MQTT connection
[2020-10-21 10:03:54] [lib.detector            ] [DEBUG   ] - Initializing object detector edgetpu
[2020-10-21 10:03:58] [lib.detectors.edgetpu   ] [DEBUG   ] - Using USB EdgeTPU
[2020-10-21 10:03:58] [lib.detector            ] [DEBUG   ] - Object detector initialized
[2020-10-21 10:03:58] [lib.post_processors     ] [DEBUG   ] - Initializing post processor face_recognition
tensorflow@tensorflow:~$

Please let me know if theres any more info you might need?

Thanks for your your time!

ghost avatar Oct 21 '20 10:10 ghost

Hmm seems correct. Still baffled why it just exits and no error is thrown.

What is your hardware?

roflcoopter avatar Oct 21 '20 15:10 roflcoopter

It is a proxmox VM running Ubuntu 18.04.4 using an old r610 (2*X5670). I have the coral TPU plugged in and working just fine with the rest just not the postprocessing (the important bit for my automation).

Is there any way to debug this further?

ghost avatar Oct 21 '20 15:10 ghost

How much RAM does it have?

roflcoopter avatar Oct 23 '20 04:10 roflcoopter

How much RAM does it have?

Over 20 gig

ghost avatar Oct 23 '20 09:10 ghost

Does the same thing happen when you run it in detached mode? (the command below is untested)

sudo docker run -d --rm -v /home/tensorflow/roflcoopter/rec:/recordings -v /home/tensorflow/roflcoopter:/config -v /etc/localtime:/etc/localtime:ro -v /dev/bus/usb:/dev/bus/usb --privileged --name viseron roflcoopter/viseron:latest && docker logs -f viseron

roflcoopter avatar Oct 23 '20 10:10 roflcoopter

Yes, sorry.

bbe052738e326e3ca06228448a1370fda80da013d1d2c6592ee590613ab3005e
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers/viseron/json: dial unix /var/run/docker.sock: connect: permission denied
tensorflow@tensorflow:~$ sudo docker run -d --rm -v /home/tensorflow/roflcoopter/rec:/recordings -v /home/tensorflow/roflcoopter:/config -v /etc/localtime:/etc/localtime:ro -v /dev/bus/usb:/dev/bus/usb --privileged --name viseron roflcoopter/viseron:latest && sudo docker logs -f viseron
f22778431743265cbf79db10c585e9fa5c87171193f34c8eb6563384a87af171
[2020-10-23 14:26:06] [root                    ] [INFO    ] - -------------------------------------------
[2020-10-23 14:26:06] [root                    ] [INFO    ] - Initializing...
[2020-10-23 14:26:06] [root                    ] [DEBUG   ] - Starting cleanup scheduler
[2020-10-23 14:26:06] [root                    ] [DEBUG   ] - Running initial cleanup
[2020-10-23 14:26:06] [lib.cleanup             ] [DEBUG   ] - Running cleanup
[2020-10-23 14:26:06] [lib.cleanup             ] [DEBUG   ] - Items in /recordings/2020-10-21: 1
[2020-10-23 14:26:06] [lib.cleanup             ] [DEBUG   ] - Items in /recordings/2020-10-20: 1
[2020-10-23 14:26:06] [lib.mqtt                ] [INFO    ] - Initializing MQTT connection
[2020-10-23 14:26:06] [lib.detector            ] [DEBUG   ] - Initializing object detector edgetpu
[2020-10-23 14:26:10] [lib.detectors.edgetpu   ] [DEBUG   ] - Using USB EdgeTPU
[2020-10-23 14:26:10] [lib.detector            ] [DEBUG   ] - Object detector initialized
[2020-10-23 14:26:10] [lib.post_processors     ] [DEBUG   ] - Initializing post processor face_recognition
tensorflow@tensorflow:~$

ghost avatar Oct 23 '20 14:10 ghost

Can you try to explicitly pull roflcoopter/visern:1.6.2 instead of latest?

roflcoopter avatar Oct 23 '20 14:10 roflcoopter

Same thing sorry.

tensorflow@tensorflow:~$ sudo docker run -d --rm -v /home/tensorflow/roflcoopter/rec:/recordings -v /home/tensorflow/roflcoopter:/config -v /etc/localtime:/etc/localtime:ro -v /dev/bus/usb:/dev/bus/usb --privileged --name viseron roflcoopter/visern:1.6.2 && sudo docker logs -f viseron
[sudo] password for tensorflow:
Unable to find image 'roflcoopter/visern:1.6.2' locally
docker: Error response from daemon: pull access denied for roflcoopter/visern, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
tensorflow@tensorflow:~$ sudo docker run -d --rm -v /home/tensorflow/roflcoopter/rec:/recordings -v /home/tensorflow/roflcoopter:/config -v /etc/localtime:/etc/localtime:ro -v /dev/bus/usb:/dev/bus/usb --privileged --name viseron roflcoopter/viseron:1.6.2 && sudo docker logs -f viseron
Unable to find image 'roflcoopter/viseron:1.6.2' locally
1.6.2: Pulling from roflcoopter/viseron
Digest: sha256:c40f86c714efc6a8e5ae12c7277be9a2f6840ef7d4c6a8882f3ca447a9cd3a7d
Status: Downloaded newer image for roflcoopter/viseron:1.6.2
d0c14c815538f0b3d68fa83b84ad2fdd0e352b06a8708d4633b613746a9e2ad1
[2020-10-23 15:51:05] [root                    ] [INFO    ] - -------------------------------------------
[2020-10-23 15:51:05] [root                    ] [INFO    ] - Initializing...
[2020-10-23 15:51:05] [root                    ] [DEBUG   ] - Starting cleanup scheduler
[2020-10-23 15:51:05] [root                    ] [DEBUG   ] - Running initial cleanup
[2020-10-23 15:51:05] [lib.cleanup             ] [DEBUG   ] - Running cleanup
[2020-10-23 15:51:05] [lib.cleanup             ] [DEBUG   ] - Items in /recordings/2020-10-21: 1
[2020-10-23 15:51:05] [lib.cleanup             ] [DEBUG   ] - Items in /recordings/2020-10-20: 1
[2020-10-23 15:51:05] [lib.mqtt                ] [INFO    ] - Initializing MQTT connection
[2020-10-23 15:51:05] [lib.detector            ] [DEBUG   ] - Initializing object detector edgetpu
[2020-10-23 15:51:09] [lib.detectors.edgetpu   ] [DEBUG   ] - Using USB EdgeTPU
[2020-10-23 15:51:09] [lib.detector            ] [DEBUG   ] - Object detector initialized
[2020-10-23 15:51:09] [lib.post_processors     ] [DEBUG   ] - Initializing post processor face_recognition
tensorflow@tensorflow:~$

ghost avatar Oct 23 '20 15:10 ghost

I really dont know whats causing this. I will add some more debug logging in the next beta which i will release soon

roflcoopter avatar Oct 25 '20 18:10 roflcoopter

Ok thank you, it is rather strange that it just crashes.

edit: I have tried on a fresh install of centos, same thing

ghost avatar Oct 26 '20 16:10 ghost

Yes indeed it is. Can you try the latest beta? I added a debug log statement to see if it imports the dlib face recognition properly

roflcoopter avatar Oct 26 '20 18:10 roflcoopter

7217e30c0889604699c402574c62f20d87ca9202d6e4dfe025dc73dc7fd95a43
[2020-10-26 18:25:33] [root                    ] [INFO    ] - -------------------------------------------
[2020-10-26 18:25:33] [root                    ] [INFO    ] - Initializing...
[2020-10-26 18:25:33] [root                    ] [DEBUG   ] - Starting cleanup scheduler
[2020-10-26 18:25:33] [root                    ] [DEBUG   ] - Running initial cleanup
[2020-10-26 18:25:33] [lib.cleanup             ] [DEBUG   ] - Running cleanup
[2020-10-26 18:25:33] [lib.mqtt                ] [INFO    ] - Initializing MQTT connection
[2020-10-26 18:25:33] [lib.detector            ] [DEBUG   ] - Initializing object detector edgetpu
[2020-10-26 18:25:37] [lib.detectors.edgetpu   ] [DEBUG   ] - Using USB EdgeTPU
[2020-10-26 18:25:37] [lib.detector            ] [DEBUG   ] - Object detector initialized
[2020-10-26 18:25:37] [lib.post_processors     ] [DEBUG   ] - Initializing post processor face_recognition
[root@tensorflow ~]#

Weirdly when I removed "type: dlib" from my config, I get an error, maybe the issue is in there? (sorry not a python programmer)

Thanks for your help so far though!

edit:

When I try to run everything without docker (yes im aware old python) and try to install dlib I get this error, im not sure if its normal or not but maybe it offers some insight.

[root@tensorflow ~]# pip install face_recognition
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Collecting face_recognition
  Using cached face_recognition-1.3.0-py2.py3-none-any.whl (15 kB)
Requirement already satisfied: face-recognition-models>=0.3.0 in /usr/lib/python2.7/site-packages (from face_recognition) (0.3.0)
Collecting dlib>=19.7
  Using cached dlib-19.21.0.tar.gz (3.2 MB)
Collecting Pillow
  Using cached Pillow-6.2.2-cp27-cp27mu-manylinux1_x86_64.whl (2.1 MB)
Requirement already satisfied: numpy in /usr/lib64/python2.7/site-packages (from face_recognition) (1.16.6)
Collecting Click>=6.0
  Using cached click-7.1.2-py2.py3-none-any.whl (82 kB)
Using legacy 'setup.py install' for dlib, since package 'wheel' is not installed.
Installing collected packages: dlib, Pillow, Click, face-recognition
    Running setup.py install for dlib ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python2 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-xyv0OW/dlib/setup.py'"'"'; __file__='"'"'/tmp/pip-install-xyv0OW/dlib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-uCMt2y/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python2.7/dlib
         cwd: /tmp/pip-install-xyv0OW/dlib/
    Complete output (341 lines):
    running install
    running build
    running build_py
    package init file 'tools/python/dlib/__init__.py' not found (or not a regular file)
    running build_ext
    Building extension for Python 2.7.5 (default, Apr  2 2020, 13:16:51)
    Invoking CMake setup: 'cmake /tmp/pip-install-xyv0OW/dlib/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-xyv0OW/dlib/build/lib.linux-x86_64-2.7 -DPYTHON_EXECUTABLE=/usr/bin/python2 -DCMAKE_BUILD_TYPE=Release'
    -- The C compiler identification is GNU 4.8.5
    -- The CXX compiler identification is GNU 4.8.5
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: /usr/bin/cc - skipped
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/c++ - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Found PythonInterp: /usr/bin/python2 (found version "2.7.5")
    -- Found PythonLibs: python2.7
    -- Performing Test HAS_CPP14_FLAG
    -- Performing Test HAS_CPP14_FLAG - Failed
    -- Performing Test HAS_CPP11_FLAG
    -- Performing Test HAS_CPP11_FLAG - Success
    -- pybind11 v2.2.2
    -- Using CMake version: 3.18.2
    -- Compiling dlib version: 19.21.0
    -- SSE4 instructions can be executed by the host processor.
    -- Enabling SSE4 instructions
    -- Looking for pthread.h
    -- Looking for pthread.h - found
    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
    -- Looking for pthread_create in pthreads
    -- Looking for pthread_create in pthreads - not found
    -- Looking for pthread_create in pthread
    -- Looking for pthread_create in pthread - found
    -- Found Threads: TRUE
    -- Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB)
     *****************************************************************************
     *** DLIB GUI SUPPORT DISABLED BECAUSE X11 DEVELOPMENT LIBRARIES NOT FOUND ***
     *** Make sure libx11-dev is installed if you want GUI support.            ***
     *** On Ubuntu run: sudo apt-get install libx11-dev                        ***
     *****************************************************************************
    -- Searching for BLAS and LAPACK
    -- Searching for BLAS and LAPACK
    -- Found PkgConfig: /usr/bin/pkg-config (found version "0.27.1")
    -- Checking for module 'cblas'
    --   No package 'cblas' found
    -- Checking for module 'lapack'
    --   No package 'lapack' found
    -- Looking for sys/types.h
    -- Looking for sys/types.h - found
    -- Looking for stdint.h
    -- Looking for stdint.h - found
    -- Looking for stddef.h
    -- Looking for stddef.h - found
    -- Check size of void*
    -- Check size of void* - done
     *****************************************************************************
     *** No BLAS library found so using dlib's built in BLAS.  However, if you ***
     *** install an optimized BLAS such as OpenBLAS or the Intel MKL your code ***
     *** will run faster.  On Ubuntu you can install OpenBLAS by executing:    ***
     ***    sudo apt-get install libopenblas-dev liblapack-dev                 ***
     *** Or you can easily install OpenBLAS from source by downloading the     ***
     *** source tar file from http://www.openblas.net, extracting it, and      ***
     *** running:                                                              ***
     ***    make; sudo make install                                            ***
     *****************************************************************************
    CUDA_TOOLKIT_ROOT_DIR not found or specified
    -- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (Required is at least version "7.5")
    -- DID NOT FIND CUDA
    -- Disabling CUDA support for dlib.  DLIB WILL NOT USE CUDA
    -- C++11 activated.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /tmp/pip-install-xyv0OW/dlib/build/temp.linux-x86_64-2.7
    Invoking CMake build: 'cmake --build . --config Release -- -j7'
    Scanning dependencies of target dlib
    [  1%] Building CXX object dlib_build/CMakeFiles/dlib.dir/base64/base64_kernel_1.cpp.o
    [  1%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bigint/bigint_kernel_2.cpp.o
    [  2%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bigint/bigint_kernel_1.cpp.o
    [  3%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_1.cpp.o
    [  4%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bit_stream/bit_stream_kernel_1.cpp.o
    [  4%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_2.cpp.o
    [  5%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_1.cpp.o
    [  6%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_2.cpp.o
    [  6%] Building CXX object dlib_build/CMakeFiles/dlib.dir/md5/md5_kernel_1.cpp.o
    [  7%] Building CXX object dlib_build/CMakeFiles/dlib.dir/tokenizer/tokenizer_kernel_1.cpp.o
    [  8%] Building CXX object dlib_build/CMakeFiles/dlib.dir/unicode/unicode.cpp.o
    [  8%] Building CXX object dlib_build/CMakeFiles/dlib.dir/test_for_odr_violations.cpp.o
    [  9%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_kernel_1.cpp.o
    [ 10%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bsp/bsp.cpp.o
    [ 10%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_1.cpp.o
    [ 11%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_2.cpp.o
    [ 12%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_extensions.cpp.o
    [ 12%] Building CXX object dlib_build/CMakeFiles/dlib.dir/linker/linker_kernel_1.cpp.o
    [ 13%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/extra_logger_headers.cpp.o
    [ 14%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/logger_kernel_1.cpp.o
    [ 14%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/logger_config_file.cpp.o
    [ 15%] Building CXX object dlib_build/CMakeFiles/dlib.dir/misc_api/misc_api_kernel_1.cpp.o
    [ 16%] Building CXX object dlib_build/CMakeFiles/dlib.dir/misc_api/misc_api_kernel_2.cpp.o
    [ 16%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_extensions.cpp.o
    [ 17%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_kernel_2.cpp.o
    [ 17%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf.cpp.o
    [ 18%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf_unbuffered.cpp.o
    [ 19%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_kernel.cpp.o
    [ 19%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_iostream.cpp.o
    [ 20%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_http.cpp.o
    [ 21%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/multithreaded_object_extension.cpp.o
    [ 21%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threaded_object_extension.cpp.o
    [ 22%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_1.cpp.o
    [ 23%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_2.cpp.o
    [ 23%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_shared.cpp.o
    [ 24%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/thread_pool_extension.cpp.o
    [ 25%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/async.cpp.o
    [ 25%] Building CXX object dlib_build/CMakeFiles/dlib.dir/timer/timer.cpp.o
    [ 26%] Building CXX object dlib_build/CMakeFiles/dlib.dir/stack_trace.cpp.o
    [ 27%] Building CXX object dlib_build/CMakeFiles/dlib.dir/cuda/cpu_dlib.cpp.o
    [ 27%] Building CXX object dlib_build/CMakeFiles/dlib.dir/cuda/tensor_tools.cpp.o
    [ 28%] Building CXX object dlib_build/CMakeFiles/dlib.dir/data_io/image_dataset_metadata.cpp.o
    [ 29%] Building CXX object dlib_build/CMakeFiles/dlib.dir/data_io/mnist.cpp.o
    [ 29%] Building CXX object dlib_build/CMakeFiles/dlib.dir/global_optimization/global_function_search.cpp.o
    [ 30%] Building CXX object dlib_build/CMakeFiles/dlib.dir/filtering/kalman_filter.cpp.o
    [ 31%] Building CXX object dlib_build/CMakeFiles/dlib.dir/svm/auto.cpp.o
    [ 31%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/arm/arm_init.c.o
    [ 32%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/arm/filter_neon_intrinsics.c.o
    [ 33%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/png.c.o
    [ 33%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngerror.c.o
    [ 34%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngget.c.o
    [ 34%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngmem.c.o
    [ 35%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngpread.c.o
    [ 36%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngread.c.o
    [ 36%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngrio.c.o
    [ 37%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngrtran.c.o
    [ 38%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngrutil.c.o
    [ 38%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngset.c.o
    [ 39%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngtrans.c.o
    [ 40%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngwio.c.o
    [ 40%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngwrite.c.o
    [ 41%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngwtran.c.o
    [ 42%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngwutil.c.o
    [ 42%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/adler32.c.o
    [ 43%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/compress.c.o
    [ 44%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/crc32.c.o
    [ 44%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/deflate.c.o
    [ 45%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/gzclose.c.o
    [ 46%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/gzlib.c.o
    [ 46%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/gzread.c.o
    [ 47%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/gzwrite.c.o
    [ 48%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/infback.c.o
    [ 48%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/inffast.c.o
    [ 49%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/inflate.c.o
    [ 50%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/inftrees.c.o
    [ 50%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/trees.c.o
    [ 51%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/uncompr.c.o
    [ 51%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/zutil.c.o
    [ 52%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_loader/png_loader.cpp.o
    [ 53%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_saver/save_png.cpp.o
    [ 53%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jaricom.c.o
    [ 54%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcapimin.c.o
    [ 55%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcapistd.c.o
    [ 55%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcarith.c.o
    [ 56%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jccoefct.c.o
    [ 57%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jccolor.c.o
    [ 57%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcdctmgr.c.o
    [ 58%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jchuff.c.o
    [ 59%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcinit.c.o
    [ 59%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcmainct.c.o
    [ 60%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcmarker.c.o
    [ 61%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcmaster.c.o
    [ 61%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcomapi.c.o
    [ 62%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcparam.c.o
    [ 63%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcprepct.c.o
    [ 63%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcsample.c.o
    [ 64%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdapimin.c.o
    [ 65%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdapistd.c.o
    [ 65%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdarith.c.o
    [ 66%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdatadst.c.o
    [ 67%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdatasrc.c.o
    [ 67%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdcoefct.c.o
    [ 68%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdcolor.c.o
    [ 68%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jddctmgr.c.o
    [ 69%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdhuff.c.o
    [ 70%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdinput.c.o
    [ 70%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdmainct.c.o
    [ 71%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdmarker.c.o
    [ 72%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdmaster.c.o
    [ 72%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdmerge.c.o
    [ 73%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdpostct.c.o
    [ 74%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdsample.c.o
    [ 74%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jerror.c.o
    [ 75%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jfdctflt.c.o
    [ 76%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jfdctfst.c.o
    [ 76%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jfdctint.c.o
    [ 77%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jidctflt.c.o
    [ 78%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jidctfst.c.o
    [ 78%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jidctint.c.o
    [ 79%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jmemmgr.c.o
    [ 80%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jmemnobs.c.o
    [ 80%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jquant1.c.o
    [ 81%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jquant2.c.o
    [ 82%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jutils.c.o
    [ 82%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_loader/jpeg_loader.cpp.o
    [ 83%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_saver/save_jpeg.cpp.o
    [ 84%] Linking CXX static library libdlib.a
    [ 84%] Built target dlib
    Scanning dependencies of target _dlib_pybind11
    [ 84%] Building CXX object CMakeFiles/_dlib_pybind11.dir/src/dlib.cpp.o
    [ 85%] Building CXX object CMakeFiles/_dlib_pybind11.dir/src/matrix.cpp.o
    [ 85%] Building CXX object CMakeFiles/_dlib_pybind11.dir/src/vector.cpp.o
    [ 86%] Building CXX object CMakeFiles/_dlib_pybind11.dir/src/svm_c_trainer.cpp.o
    [ 87%] Building CXX object CMakeFiles/_dlib_pybind11.dir/src/svm_rank_trainer.cpp.o
    [ 87%] Building CXX object CMakeFiles/_dlib_pybind11.dir/src/decision_functions.cpp.o
    [ 88%] Building CXX object CMakeFiles/_dlib_pybind11.dir/src/other.cpp.o
    In file included from /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12:0,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/../dlib/python/pybind_utils.h:6,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/../dlib/python.h:6,
                     from /tmp/pip-install-xyv0OW/dlib/tools/python/src/opaque_types.h:6,
                     from /tmp/pip-install-xyv0OW/dlib/tools/python/src/matrix.cpp:4:
    /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111:20: fatal error: Python.h: No such file or directory
     #include <Python.h>
                        ^
    compilation terminated.
    In file included from /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12:0,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/../dlib/python/pybind_utils.h:6,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/../dlib/python.h:6,
                     from /tmp/pip-install-xyv0OW/dlib/tools/python/src/opaque_types.h:6,
                     from /tmp/pip-install-xyv0OW/dlib/tools/python/src/dlib.cpp:4:
    /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111:20: fatal error: Python.h: No such file or directory
     #include <Python.h>
                        ^
    compilation terminated.
    In file included from /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12:0,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/../dlib/python/pybind_utils.h:6,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/../dlib/python.h:6,
                     from /tmp/pip-install-xyv0OW/dlib/tools/python/src/opaque_types.h:6,
                     from /tmp/pip-install-xyv0OW/dlib/tools/python/src/svm_c_trainer.cpp:4:
    /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111:20: fatal error: Python.h: No such file or directory
     #include <Python.h>
                        ^
    compilation terminated.
    In file included from /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12:0,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/../dlib/python/pybind_utils.h:6,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/../dlib/python.h:6,
                     from /tmp/pip-install-xyv0OW/dlib/tools/python/src/opaque_types.h:6,
                     from /tmp/pip-install-xyv0OW/dlib/tools/python/src/svm_rank_trainer.cpp:4:
    /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111:20: fatal error: Python.h: No such file or directory
     #include <Python.h>
                        ^
    compilation terminated.
    In file included from /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12:0,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/../dlib/python/pybind_utils.h:6,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/../dlib/python.h:6,
                     from /tmp/pip-install-xyv0OW/dlib/tools/python/src/opaque_types.h:6,
                     from /tmp/pip-install-xyv0OW/dlib/tools/python/src/vector.cpp:4:
    /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111:20: fatal error: Python.h: No such file or directory
     #include <Python.h>
                        ^
    compilation terminated.
    In file included from /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12:0,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/../dlib/python/pybind_utils.h:6,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/../dlib/python.h:6,
                     from /tmp/pip-install-xyv0OW/dlib/tools/python/src/opaque_types.h:6,
                     from /tmp/pip-install-xyv0OW/dlib/tools/python/src/decision_functions.cpp:4:
    /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111:20: fatal error: Python.h: No such file or directory
     #include <Python.h>
                        ^
    compilation terminated.
    In file included from /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12:0,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/../dlib/python/pybind_utils.h:6,
                     from /tmp/pip-install-xyv0OW/dlib/dlib/../dlib/python.h:6,
                     from /tmp/pip-install-xyv0OW/dlib/tools/python/src/opaque_types.h:6,
                     from /tmp/pip-install-xyv0OW/dlib/tools/python/src/other.cpp:4:
    /tmp/pip-install-xyv0OW/dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111:20: fatal error: Python.h: No such file or directory
     #include <Python.h>
                        ^
    compilation terminated.
    gmake[2]: *** [CMakeFiles/_dlib_pybind11.dir/src/matrix.cpp.o] Error 1
    gmake[2]: *** Waiting for unfinished jobs....
    gmake[2]: *** [CMakeFiles/_dlib_pybind11.dir/src/svm_rank_trainer.cpp.o] Error 1
    gmake[2]: *** [CMakeFiles/_dlib_pybind11.dir/src/decision_functions.cpp.o] Error 1
    gmake[2]: *** [CMakeFiles/_dlib_pybind11.dir/src/dlib.cpp.o] Error 1
    gmake[2]: *** [CMakeFiles/_dlib_pybind11.dir/src/svm_c_trainer.cpp.o] Error 1
    gmake[2]: *** [CMakeFiles/_dlib_pybind11.dir/src/vector.cpp.o] Error 1
    gmake[2]: *** [CMakeFiles/_dlib_pybind11.dir/src/other.cpp.o] Error 1
    gmake[1]: *** [CMakeFiles/_dlib_pybind11.dir/all] Error 2
    gmake: *** [all] Error 2
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-xyv0OW/dlib/setup.py", line 262, in <module>
        'Topic :: Software Development',
      File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup
        dist.run_commands()
      File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands
        self.run_command(cmd)
      File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/usr/lib/python2.7/site-packages/setuptools/command/install.py", line 53, in run
        return _install.run(self)
      File "/usr/lib64/python2.7/distutils/command/install.py", line 563, in run
        self.run_command('build')
      File "/usr/lib64/python2.7/distutils/cmd.py", line 326, in run_command
        self.distribution.run_command(command)
      File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/usr/lib64/python2.7/distutils/command/build.py", line 127, in run
        self.run_command(cmd_name)
      File "/usr/lib64/python2.7/distutils/cmd.py", line 326, in run_command
        self.distribution.run_command(command)
      File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/tmp/pip-install-xyv0OW/dlib/setup.py", line 135, in run
        self.build_extension(ext)
      File "/tmp/pip-install-xyv0OW/dlib/setup.py", line 175, in build_extension
        subprocess.check_call(cmake_build, cwd=build_folder)
      File "/usr/lib64/python2.7/subprocess.py", line 542, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j7']' returned non-zero exit status 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python2 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-xyv0OW/dlib/setup.py'"'"'; __file__='"'"'/tmp/pip-install-xyv0OW/dlib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-uCMt2y/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python2.7/dlib Check the logs for full command output.
[root@tensorflow ~]#

ghost avatar Oct 26 '20 18:10 ghost

Is your CPU old?

Can you show me the output of lscpu?

roflcoopter avatar Oct 27 '20 07:10 roflcoopter

My CPU is over 10 years old, so yeah, very old.

The VM:

Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                20
On-line CPU(s) list:   0-19
Thread(s) per core:    1
Core(s) per socket:    10
Socket(s):             2
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            15
Model:                 6
Model name:            Common KVM processor
Stepping:              1
CPU MHz:               2925.998
BogoMIPS:              5851.99
Hypervisor vendor:     KVM
Virtualization type:   full
L1d cache:             32K
L1i cache:             32K
L2 cache:              4096K
L3 cache:              16384K
NUMA node0 CPU(s):     0-19
Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx lm constant_tsc nopl xtopology eagerfpu pni cx16 x2apic hypervisor lahf_lm

The r610 host machine:

 lscpu
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
Address sizes:       40 bits physical, 48 bits virtual
CPU(s):              24
On-line CPU(s) list: 0-23
Thread(s) per core:  2
Core(s) per socket:  6
Socket(s):           2
NUMA node(s):        2
Vendor ID:           GenuineIntel
CPU family:          6
Model:               44
Model name:          Intel(R) Xeon(R) CPU           X5670  @ 2.93GHz
Stepping:            2
CPU MHz:             1596.185
BogoMIPS:            5852.36
Virtualization:      VT-x
L1d cache:           32K
L1i cache:           32K
L2 cache:            256K
L3 cache:            12288K
NUMA node0 CPU(s):   0,2,4,6,8,10,12,14,16,18,20,22
NUMA node1 CPU(s):   1,3,5,7,9,11,13,15,17,19,21,23
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 popcnt aes lahf_lm pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid dtherm ida arat flush_l1d

ghost avatar Oct 27 '20 07:10 ghost

Ahh then thats the reason. DLIB is being compiled with AVX and AVX2 instruction sets which is not available on your machine.

I will make some research to see if it can be solved but i cant promise anything

roflcoopter avatar Oct 27 '20 09:10 roflcoopter

Ok thanks a lot, hopefully there is a fix.

Does the post processing use CPU only and not coral tpu?

ghost avatar Oct 27 '20 09:10 ghost

CPU only, or NVIDIA GPU if that is available.

I think theoretically you can run face recognition on the Coral, but for that you would need two Corals because when a model is loaded it needs time to initialize so swapping back and forth between object detection and face recognition would be painfully slow

roflcoopter avatar Oct 27 '20 10:10 roflcoopter

I see, ok thank you.

I hope there's a workaround as I'm sure I'm not the only person with an old CPU but I realise this is FOSS so probably not your top priority. Thanks for all your hard work either way this is a great project!

ghost avatar Oct 27 '20 10:10 ghost

Gonna close this as it will be too much to maintain special Docker containers for older hardware, sorry for the inconvenience

roflcoopter avatar Dec 19 '22 14:12 roflcoopter