/ymir-executor-verifier

check docker image for ymir

Primary LanguagePythonApache License 2.0Apache-2.0

ymir-executor-verifier

check docker image for ymir

pre-requiremnts (for linux)

  • nvidia-docker
  • python3

How to use

  1. clone code and download dataset
git clone https://github.com/modelai/ymir-executor-verifier.git
cd ymir-executor-verifier
pip install -e .
sudo apt install wget unzip
bash start.sh

then you will get follow dataset

tests/data/voc_dog
├── in
│   ├── annotations # txt annotations files
│   ├── assets # image files
│   ├── train-index.tsv
│   └── val-index.tsv
└── out
  1. set up python environment
export PYTHONPATH=.
pip3 install -r requirements.txt
  1. run your ymir docker images

use youdaoyzbx/ymir-executor:ymir2.0.0-yolov5-cu111-tmi as example

docker pull youdaoyzbx/ymir-executor:ymir2.0.0-yolov5-cu111-tmi

echo "youdaoyzbx/ymir-executor:ymir2.0.0-yolov5-cu111-tmi" > ymir_docker_images.txt
python3 tools/test_training.py
  1. use with your own config

view tests/configs/all-in-one.yaml for example

ymir-verifier --help
ymir-verifier --config tests/configs/all-in-one.yaml
  1. debug your docker images

view docker image debug for detail.

docker run -it --gpus all --shm-size 128G -v $PWD/tests/data/voc_dog/in:/in -v $PWD/tests/data/voc_dog/out:/out -v $HOME/code:/code youdaoyzbx/ymir-executor:ymir2.0.0-yolov5-cu111-tmi bash