1 Star 3 Fork 3

OpenMMLab/mmengine

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Docker images

There are two Dockerfile files to build docker images, one to build an image with the mmengine package and the other with the mmengine development environment.

.
|-- README.md
|-- dev  # build with mmengine development environment
|   `-- Dockerfile
`-- release  # build with mmengine package
    `-- Dockerfile

Build docker images

Build with mmengine package

Build with local repository

git clone https://github.com/open-mmlab/mmengine.git && cd mmengine
docker build -t mmengine -f docker/release/Dockerfile .

Or build with remote repository

docker build -t mmengine https://github.com/open-mmlab/mmengine.git#main:docker/release

The Dockerfile installs the latest released version of mmengine by default, but you can specify mmengine versions to install expected versions.

docker image build -t mmengine -f docker/release/Dockerfile --build-arg MMENGINE=0.1.0 .

If you also want to use other versions of PyTorch and CUDA, you can also pass them when building docker images.

An example to build an image with PyTorch 1.11 and CUDA 11.3.

docker build -t mmengine -f docker/release/Dockerfile \
    --build-arg PYTORCH=1.9.0 \
    --build-arg CUDA=11.1 \
    --build-arg CUDNN=8 .

More available versions of PyTorch and CUDA can be found at dockerhub/pytorch.

Build with mmengine development environment

If you want to build an docker image with the mmengine development environment, you can use the following command

git clone https://github.com/open-mmlab/mmengine.git && cd mmengine
docker build -t mmengine -f docker/dev/Dockerfile .

Run images

docker run --gpus all --shm-size=8g -it mmengine

See docker run for more usages.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/open-mmlab/mmengine.git
git@gitee.com:open-mmlab/mmengine.git
open-mmlab
mmengine
mmengine
main

搜索帮助