Training issue

Hi all,

I re-build the project from source running the following commands (as said in HELLO AI WORLD):

sudo apt-get update
sudo apt-get install git cmake libpython3-dev python3-numpy
git clone --recursive --depth=1 GitHub - dusty-nv/jetson-inference: Hello AI World guide to deploying deep-learning inference networks and deep vision primitives with TensorRT and NVIDIA Jetson.
cd jetson-inference
mkdir build
cd build
cmake …/
make -j$(nproc)
sudo make install
sudo ldconfig

but when I try to train on my own data :

python3 --dataset-type=voc --data=data/Icone --model-dir=models/Icone --batch-size=4 --epochs=100

I got this:

Traceback (most recent call last):
File “”, line 20, in
from vision.ssd.vgg_ssd import create_vgg_ssd
File “/home/nano/jetson-inference/python/training/detection/ssd/vision/ssd/”, line 6, in
from .predictor import Predictor
File “/home/nano/jetson-inference/python/training/detection/ssd/vision/ssd/”, line 4, in
from .data_preprocessing import PredictionTransform
File “/home/nano/jetson-inference/python/training/detection/ssd/vision/ssd/”, line 1, in
from …transforms.transforms import *
File “/home/nano/jetson-inference/python/training/detection/ssd/vision/transforms/”, line 6, in
import cv2
File “/home/nano/.local/lib/python3.8/site-packages/cv2/”, line 181, in
File “/home/nano/.local/lib/python3.8/site-packages/cv2/”, line 153, in bootstrap
native_module = importlib.import_module(“cv2”)
File “/usr/lib/python3.8/importlib/”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: /lib/aarch64-linux-gnu/ cannot allocate memory in static TLS block

What should I do to fix it?

(# R35 (release), REVISION: 1.0, GCID: 31346300, BOARD: t186ref, EABI: aarch64, DATE: Thu Aug 25 18:41:45 UTC 2022)

Hi @domenico.depascale, try running export LD_PRELOAD=/lib/aarch64-linux-gnu/ in your terminal first.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.