Versions Compared

Key

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

目次

Table of Contents
minLevel1
maxLevel4

...

Preparation

...

Info

See here for how to get the CV Tool.

Installation target OS in the tutorial

  • Ubuntu 1820.04 .6 LTS

Install docker

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

Please refer to the docker official cite website to learn details 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
\$ sudo install -m 0755 gnupg-agent \
    software-properties-common
$ d /etc/apt/keyrings
$ sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$ sudo add-apt-repository-o /etc/apt/keyrings/docker.asc
$ sudo chmod a+r /etc/apt/keyrings/docker.asc

$ echo \
   "deb [arch=amd64=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] 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)

It takes several minutes until the import completecompletes.

[image name]is any

Code Block
$ cat cvtool_vx.xx.tar.bz2 | sudo docker import - [image name]

Create docker container (First time only)

Option “-v” is needed in sharing files between host and container.

...

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.

Code Block
$ sudo docker start [container name]

...

Code Block
$ sudo docker exec -it -u cvtool [container name] /bin/bash

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

Set the environment (inside the container).

  • For ambaCV2X camera

Code Block
$ cd /home/cvtool
$ source setup_env.sh
  • For ambaCV5X camera

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

Conversion

...

Please refer to the following page for model conversion.

  設定ファイル仕様・サンプルモデル変換(Caffe編)AI model convert tool: Caffe

  設定ファイル仕様・サンプルモデル変換(Tensorflow編)  設定ファイル仕様・サンプルモデル変換(ONNX/PyTorch編)AI model convert tool: Tensorflow

 AI model convert: ONNX(PyTorch)