Skip to content

Instantly share code, notes, and snippets.

@KyanainsGate
Last active February 7, 2021 04:35
Show Gist options
  • Save KyanainsGate/3bd8e6d5ff778c26078eef7d60e5401f to your computer and use it in GitHub Desktop.
Save KyanainsGate/3bd8e6d5ff778c26078eef7d60e5401f to your computer and use it in GitHub Desktop.
Jetson setup (japanese)

Setup for Jetbot (Jetpack 4.3)

What to be installed

  • Jetpack 4.3
    • SD card version is r32.3.1
    • Other lib versions (e.g. cuda, cuDNN, tensorrt...) showed in here
  • Japanese languages
  • ROS and so on

Minimul setup

  • Flash Jetbot images to SD card

    • Pre-build images here
    • Instructions here here
  • Using jetbot_image_v0p4p0.zip for this example

  • Update as you do eveytime for Ubuntu

    $ sudo apt update
    $ sudo apt upgrade
  • Change power mode

    • Default of pre-build images are 5W mode(2 Core), so follwings change the fast mode
    $ sudo nvpmodel -m 0 # Change to MAXN(4 Core) mode, 1 is 5W mode
    $ sudo jetson_clocks # Maximise performance
    
    • Check performance
    $ sudo nvpmodel -q
    $ sudo jetson_clocks --show
    
  • Tensorrt test

    • Though the jetbot demo., check tensorrt can work well
    • Demo is here
      1. Dwonload model ssd_mobilenet_v2_coco.engine (v0.4) from here
      2. Call Python interpreter
      3. Check whether ObjectDetector go
      >> from jetbot import ObjectDetector
      >> model = ObjectDetector('ssd_mobilenet_v2_coco.engine')
      >> from jetbot import Camera
      >> camera = Camera.instance(width=300, height=300)
      >> detections = model(camera.value)
      >> print(detections)
      
  • Japanize keyboard

    • Follwing may not be optimal or clever.
      1. Follow this from Ch.14 "日本語入力設定"
      2. Download required packages as here
      3. Change Settings (not only Language support) to Japansese like this
    • In short, both Settings and Language support should be set correctly
    • If you rebooted and japanize-setting were ignored, Open Settings -> Region and language and remove all languages except 日本語(mozc)

Others setup

  • jetop
$ sudo apt install python-pip
$ sudo -H pip install jetson-stats
  • Set path(ver.CUDA10.0)
$ echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
$ echo "export PATH=/usr/local/cuda-10.0/bin:${PATH}" >> ~/.bashrc
$ echo "export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64:${LD_LIBRARY_PATH}" >> ~/.bashrc
$ source ~/.bashrc

Tips

  • Show Jetpack version
$ cat /etc/nv_tegra_release # 

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment