| tag | |
|---|---|
| latest | 多分完動版. このタグのイメージをベースとしてAWS Lambda + ECR用の推論コンテナイメージを作ると良い. |
| 1.1 | 九工大林研究室が作成したモデルが導入済みのイメージ. - 推論モデル: mask_rcnn - チェックポイントファイル: /mmdetection/checkpoints/mask_rcnn/maskrcnn_r50_fpn_1x_HayashiLab_20220408_epoch_5000.pth - コンフィグファイル: /mmdetection/configs/mask_rcnn/maskrcnn_r50_fpn_1x_HayashiLab_20220408_taco.py |
| 1.0 | mmdetectionを動作させるための基本イメージ. mmdetection公式Dockerfileをベースに作成. チェックポイントファイルは含まれていないため,コンテナ起動後に別途コンテナ内でダウンロードする必要があることに注意. |
python demo/image_demo.py demo/sample_bottle.png configs/mask_rcnn/maskrcnn_r50_fpn_1x_HayashiLab_20220408_taco.py checkpoints/mask_rcnn/maskrcnn_r50_fpn_1x_HayashiLab_20220408_epoch_5000.pth --out-file output file path --device cpu
output file path には出力先のディレクトリおよび画像ファイル名(result.jpg)をフルパスで入れます.
Dockerfileのサンプルを示します.
FROM tominagalab/inference:latest
COPY checkpoints/{model}/{checkpoint file} /mmdetection/checkpoints/{model}/{checkpoint file}
COPY configs/{model}/{config file} /mmdetection/configs/{model}/{config file}
{model}の文字列,{checkpoint file},{config file}の文字列については適切に設定してください.
これに加えて,以下に示すようにAWS Lambdaで実行するpythonファイルを含むappディレクトリをコンテナ内に配置する必要があります.
COPY app /home/app
Content type
Image
Digest
sha256:722ed4bb4…
Size
4.2 GB
Last updated
almost 4 years ago
docker pull tominagalab/inference