Skip to content

FAQs

1. I'm getting "Connection Failed" error when running the SDK. How do I resolve this?

Network manager might have restarted, causing Xailient daemon to terminate.

Solution: Ensure that you are connected to the internet. Manually start the Xailient daemon using the following command:

$ sudo systemctl start xailient

2. I'm getting "undefined symbol: __atomic_fetch_add_8" error when running the SDK. What should I do?

Solution: Install the correct version of OpenCV contrib.

$ python3.7 -m pip install opencv-contrib-python==4.1.0.25

If you still face this issue, add LD_PRELOAD=/usr/lib/arm-linux-gnueabihf/libatomic.so.1 to bash.rc file in the Pi.

$ export LD_PRELOAD=/usr/lib/arm-linux-gnueabihf/libatomic.so.1

3. I'm getting "ImportError: libcblas.so.3: cannot open shared object file: No such file or directory"

Some of the required libraries maybe missing on your device.

Solution: Install the following dependencies:

  • libjasper-dev
  • libqtgui4
  • libqt4-test
  • libatlas-base-dev

Use the following command:

$ sudo apt-get install libjasper-dev libqtgui4 libqt4-test libatlas-base-dev

4. I'm getting "Dnn.detector not found (AttributeError: module 'dnn' has no attribute 'Detector')" error when running hte SDK. What do I do?

You will get this error if you had previously installed the Xailient Face SDK on this device and even when you installed the latest version of the SDK using pip install, the code is still refering back to the older version.

Solution: Remove dnn.so and xailient.so from previous installation and then install new version of the SDK again.

To list all "xailient.so" files, use the following command:

$ sudo find / -type f -name "xailient.so"

To remove the file, use the following command:

$ sudo rm "[file_path]/xailient.so"

Similarly, to list all "dnn.so" files, use the following command:

$ sudo find / -type f -name "dnn.so"

To remove the file, use the following command:

$ sudo rm "[file_path]/dnn.so"

5. I'm facing issues installing OpenCV on Raspberry Pi 3B+.

Solution: Raspberry Pi 3 needs some dependencies if it has a fresh raspbian OS for opencv-python to work. Install the following dependencies:

  • libjasper-dev
  • libqtgui4
  • libqt4-test
  • libatlas-base-dev

Use the following command:

$ sudo apt-get install libjasper-dev libqtgui4 libqt4-test libatlas-base-dev

6. My model training failed.

If you’re model fails training, first thing you want to check the format of the labels file. Sometimes although the labels file passed the the Xailient Console sainity check, it might contain bad invalid data.

For example, if your xmin column had "???" value in one of the columns, it might pass the sanity check, but the model training will fail.

7. I'm getting "ImportError: libboost_python-py37.so.1.62.0: cannot open shared object file: No such file or directory"

When activating the xailient license using command sudo ./xailient-install, you should have received a confirmation message asking where xailient-agent can copy the compiled Boost library files for you. If you typed in "yes" then there is no need to do it manually. If not, then you will have to setup it up manually.

Solution: To copy the Boost library files and update ldconfig, go to xailient installation folder and use the following command:

sudo cp -r sharedLib /usr/lib/xailient
sudo sh -c "echo '/usr/lib/xailient' > /etc/ld.so.conf.d/xailient.conf"
sudo chmod +x /usr/lib/xailient/*
sudo ldconfig