目次
...
Table of Contents | ||||
---|---|---|---|---|
|
環境構築
...
Info |
---|
CVツールの入手方法はこちらをご参照ください。 |
...
See here for how to get the CV Tool. |
Installation target OS in the tutorial
Ubuntu 18.04.6 LTS
Dockerをインストールする
Docker環境の構築に必要なパッケージをインストール、環境設定を行います。
...
Install docker
Install the packages necessary for building the docker environment and set the environment.
Please refer the docker official cite to learn details about installation (ex. installing on other Linux distribution).
Code Block |
---|
$ 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 |
Dockerイメージをインポートする(初回のみ)
...
Import docker image file (First time only)
It takes several minutes until import complete.
[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.
[container name]
は任意の名前is any
Code Block |
---|
$ sudo docker run -d -it --name [container name] [image name] /bin/bash |
プロキシを設定している場合は、以下のリンクを参考にdockerのプロキシ設定を行ってください。
...
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/
CVツールを実行する
...
Run CV Tool
Start the container.
Code Block |
---|
$ sudo docker start [container name] |
コンテナに入ります。Log in to the container.
Code Block |
---|
$ sudo docker exec -it -u cvtool [container name] /bin/bash |
(コンテナ内で)環境設定を行います。Set the environment (inside the container).
Code Block |
---|
$ cd /home/cvtool $ source setup_env.sh |
モデルの変換
...
Conversion
...
Please refer to the following page for model conversion.
設定ファイル仕様・サンプルモデル変換(Tensorflow編)
設定ファイル仕様・サンプルモデル変換(ONNX/PyTorch編)
...