Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Installation target OS in the tutorial

  • Ubuntu 1820.04 .6 LTS

Install docker

Install the packages necessary for building the docker environment and set environment.

Please refer to the docker official website to learn more about installation (ex. installing on other Linux distribution).

参考:https://docs.docker.com/engine/install/

Code Block
$ sudo apt-get update
$ sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \gnupg
$ sudo install  gnupg-agentm \0755     software-properties-common-d /etc/apt/keyrings
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo aptgpg --keydearmor add --o /etc/apt/keyrings/docker.gpg
$ sudo add-apt-repository chmod a+r /etc/apt/keyrings/docker.gpg

$ echo \
   "deb [arch=amd64=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \

  $(lsb_release -cs) . /etc/os-release && echo "$VERSION_CODENAME") stable" | \
   stable"sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
$ sudo apt-get update

$ sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

Import docker image file (First time only)

...

If you have set a proxy, please refer to the link below to set the proxy for docker.

Reference:https://matsuand.github.io/docs.docker.jp.ontheflycom/network/proxy/

Run CV Tool

Start the container.

...

If you need a password, please use "cv".

...

If you want to run it for ambaCV5X, please do the following. It is not necessary when running for ambaCV2X.

...

Set the environment (inside the container).

  • For ambaCV2X camera

Code Block
$ cd /home/cvtool
/

$ source setup_env.sh
file to configure for ambaCV5X.

Edit the first line as shown below.(cv22 to cv52)

before
source /usr/local/amba-cv-tools-basic.2.5.2.0.1210.ubuntu-18.04/env/cv22.env

after
source /usr/local/amba-cv-tools-basic.2.5.2.0.1210.ubuntu-18.04/env/cv52.env

Set the environment (inside the container).

  • For ambaCV5X camera

Code Block
$ cd /home/cvtool
$ source setup_env.sh ipro-ambaCV5X

Conversion

...

Please refer to the following page for model conversion.

...

 AI model convert tool: Tensorflow

 AI model convert: ONNX(PyTorch)