8000 [WIP] Update readme for docker by fco-dv · Pull Request #1254 · pytorch/ignite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[WIP] Update readme for docker #1254

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Aug 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,26 @@ version as dependency):
```bash
conda install ignite -c pytorch-nightly
```
## Docker Images

### Using pre-built images

Pull a pre-built docker image from [our Docker Hub](https://hub.docker.com/u/pytorchignite) and run it with docker v19.03+.

```bash
docker run --gpus all -it -v $PWD:/workspace/project --network=host --shm-size 16G pytorchignite/base:latest
```

Available pre-built images are :

- `pytorchignite/base:latest`
- `pytorchignite/apex:latest`
- `pytorchignite/vision:latest`
- `pytorchignite/apex-vision:latest`
- `pytorchignite/nlp:latest`
- `pytorchignite/apex-nlp:latest`

For more details, see [here](docker).

<!-- ############################################################################################################### -->

Expand Down
11 changes: 10 additions & 1 deletion docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,14 @@ We provide Dockerfiles in order to build containerized execution environment tha
## How to use

```bash
docker run --rm -it -v $PWD:/workspace/project --network=host --shm-size 16G pytorchignite/base:latest
docker run -it -v $PWD:/workspace/project --network=host --shm-size 16G pytorchignite/base:latest
```

## Building the image yourself

Dockerfiles are supplied to build images with dependencies that ease the use of Ignite for computer vision / NLP tasks:

```bash
cd main
docker build -t pytorchignite/base:latest -f Dockerfile.base .
```
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ignore = E402, E721
max_line_length = 120

[isort]
known_third_party=dill,matplotlib,numpy,pytest,setuptools,sklearn,torch,torchvision,trains
known_third_party=dill,matplotlib,numpy,pkg_resources,pytest,setuptools,sklearn,torch,torchvision,trains
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
Expand Down
0