Welcome to JetCobot repository
3. Jetson-inference environment construction (optional)
Jetson-inference environment setup
Jetson-inference environment setup1. Pre-use instructions2. The environment version configuration of this tutorial is shown in the figure:3. Start building3.1 Download the required dependencies3.2 Download the relevant source code3.3 Download related python modules3.4 Modify the file4. Install the model5. Start compiling6. Verify whether the installation is successfulAppendix
1. Pre-use instructions
This tutorial is suitable for building a JETSON NANO image by yourself. If you directly use the YAHBOOM version of the image, you can ignore the tutorial.
2. The environment version configuration of this tutorial is shown in the figure:
If you don't want to build it completely by yourself, you can use the jetson-inference compression package we provide, transfer the compression package to JETSON NANO, decompress it, and start directly from "Install Module"
3. Start building
3.1 Download the required dependencies
xxxxxxxxxxsudo apt-get updatesudo apt-get install git cmake3.2 Download the relevant source code
xxxxxxxxxxgit clone https://github.com/dusty-nv/jetson-inferencecd jetson-inferencegit submodule update --init ##If a network error is reported in the middle, you need to access the Internet scientifically and run it several times, otherwise the download will be incomplete3.3 Download related python modules
Find the torch-1.8.0-cp36-cp36m-linux_aarch64.whl file from the attachments of our environment and transfer it to jetson nano
xxxxxxxxxxsudo apt-get install libpython3-dev python3-numpysudo apt-get install python3-scipysudo apt-get install python3-pandassudo apt-get install python3-matplotlibsudo apt-get install python3-sklearnpip3 install torch-1.8.0-cp36-cp36m-linux_aarch64.whl3.4 Modify the file
Edit jetson-inference/CMakePrebuild.sh. Comment out ./download-models.sh (add a # comment in front) as shown in the figure)

4. Install the model
Method 1: You can perform the following steps
xxxxxxxxxxcd jetson-inference/tools./download-models.sh
After making the selection, the model will be automatically downloaded to the file path of data/network. You need to access the Internet to download it normally
Method 2: You can find the package required by jetson-inference in the attachment provided by us for environment construction, transfer the compressed package in it to jetson-inference/data/network of jetso nano, and then decompress it Decompression command
xxxxxxxxxxfor tar in *.tar.gz; do tar xvf $tar; done
Note:
- For decompressing multiple .gz files, use this command: for gz in *.gz; do gunzip $gz; done
- To decompress multiple .tar.gz files, use the following command: for tar in *.tar.gz; do tar xvf $tar; done
5. Start compiling
xxxxxxxxxxcd jetson-inferencemkdir build #Use the package we provide, this sentence can be omittedcd buildcmake ../make (or make -j4) #(in the build directory)sudo make install #(in the build directory)If an error is reported during the process, it means that the source code is not fully downloaded. Please return to step 3.2 and execute the git submodule update --init command, or download it from the browser. The method can be found on Baidu