Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

Table of contents


Preparation


See here for how to get the CV Tool.

Installation target OS in the tutorial

  • Ubuntu 18.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/install/

$ sudo apt-get update
$ sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \
    software-properties-common
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$ sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"
$ sudo apt-get update
$ sudo apt-get install docker-ce docker-ce-cli containerd.io

Import docker image file (First time only)

It takes several minutes until the import completes.

[image name]is any

$ 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.

[container name]is any

$ sudo docker run -d -it --name [container name] [image name] /bin/bash

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.onthefly/network/proxy/

Run CV Tool

Start the container.

$ sudo docker start [container name]

Log in to the container.

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

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.

Edit the /home/cvtool/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).

$ cd /home/cvtool
$ source setup_env.sh

Conversion


Please refer to the following page for model conversion.

 AI model convert tool: Caffe

 AI model convert tool: Tensorflow

 AI model convert: ONNX(PyTorch)

  • No labels