Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Adding --gpu={gpu index} flag to docker option in tutorials. #1212

Merged
merged 10 commits into from
Sep 23, 2020
5 changes: 3 additions & 2 deletions docs/tutorial/image_cls.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,16 @@ If configuration finishes, the configuration file is generated in the `cifar10_t
Train your model by running `blueoil train` with model configuration.

$ docker run --rm \
-e CUDA_VISIBLE_DEVICES=0 \
--gpus '"device=0"' \
-v $(pwd)/cifar:/home/blueoil/cifar \
-v $(pwd)/config:/home/blueoil/config \
-v $(pwd)/saved:/home/blueoil/saved \
blueoil_$(id -un):{TAG} \
blueoil train -c config/cifar10_test.py

Just like init, set the value of `{TAG}` to the value obtained by `docker images`.
Change the value of `CUDA_VISIBLE_DEVICES` according to your environment.
Change the value of `--gpus '"device=<gpu indices>"'` according to your environment.
For detail check the official [documentation](https://docs.docker.com/config/containers/resource_constraints/#gpu).

When training has started, the training log and checkpoints are generated under `./saved/{MODEL_NAME}`.
The value of `{MODEL_NAME}` will be `{Configuration file}_{TIMESTAMP}`.
Expand Down
5 changes: 3 additions & 2 deletions docs/tutorial/image_det.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,16 @@ If configuration finishes, the configuration file is generated in the `objectdet
Train your model by running `blueoil train` with a model configuration.

$ docker run --rm \
-e CUDA_VISIBLE_DEVICES=0 \
--gpus '"device=0"' \
-v $(pwd)/openimages_face:/home/blueoil/openimages_face \
-v $(pwd)/config:/home/blueoil/config \
-v $(pwd)/saved:/home/blueoil/saved \
blueoil_$(id -un):{TAG} \
blueoil train -c config/objectdetection.py

Just like init, set the value of `{TAG}` to the value obtained by `docker images`.
Change the value of `CUDA_VISIBLE_DEVICES` according to your environment.
Change the value of `--gpus '"device=<gpu indices>"'` according to your environment.
For detail check the official [documentation](https://docs.docker.com/config/containers/resource_constraints/#gpu).

When training has started, the training log and checkpoints are generated under `./saved/{MODEL_NAME}`.
The value of `{MODEL_NAME}` will be `{Configuration file}_{TIMESTAMP}`.
Expand Down
5 changes: 3 additions & 2 deletions docs/tutorial/image_keypoint_detection.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ If configuration finishes, the configuration file is generated in the `keypoint_
Train your model by running `blueoil train` with a model configuration.

$ docker run --rm \
-e CUDA_VISIBLE_DEVICES=0 \
--gpus '"device=0"' \
-e DATA_DIR=/home/blueoil \
-e OUTPUT_DIR=/home/blueoil/saved \
-v /storage/dataset/MSCOCO_2017:/home/blueoil/MSCOCO_2017 \
Expand All @@ -71,7 +71,8 @@ Train your model by running `blueoil train` with a model configuration.
blueoil train -c config/keypoint_detection_demo.py

Just like init, set the value of `{TAG}` to the value obtained by `docker images`.
Change the value of `CUDA_VISIBLE_DEVICES` according to your environment.
Change the value of `--gpus '"device=<gpu indices>"'` according to your environment.
For detail check the official [documentation](https://docs.docker.com/config/containers/resource_constraints/#gpu).

When training has started, the training log and checkpoints are generated under `./saved/{MODEL_NAME}`.
The value of `{MODEL_NAME}` will be `{Configuration file}_{TIMESTAMP}`.
Expand Down
5 changes: 3 additions & 2 deletions docs/tutorial/image_seg.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,16 @@ If configuration finishes, the configuration file is generated in the `camvid.py
Train your model by running `blueoil train` command with model configuration.

$ docker run --rm \
-e CUDA_VISIBLE_DEVICES=0 \
--gpus '"device=0"' \
-v $(pwd)/CamVid:/home/blueoil/CamVid \
-v $(pwd)/config:/home/blueoil/config \
-v $(pwd)/saved:/home/blueoil/saved \
blueoil_$(id -un):{TAG} \
blueoil train -c config/camvid.py

Just like init, set the value of `{TAG}` to the value obtained by `docker images`.
Change the value of `CUDA_VISIBLE_DEVICES` according to your environment.
Change the value of `--gpus '"device=<gpu indices>"'` according to your environment.
For detail check the official [documentation](https://docs.docker.com/config/containers/resource_constraints/#gpu).

When training has started, the training log and checkpoints are generated under `./saved/{MODEL_NAME}`.
The value of `{MODEL_NAME}` will be `{Configuration file}_{TIMESTAMP}`.
Expand Down