Skip to content

Commit 4b1d801

Browse files
authored
Merge branch 'dev' into 6676_port_generative_losses
Signed-off-by: Mark Graham <markgraham539@gmail.com>
2 parents ea158ca + c4ff70b commit 4b1d801

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+2384
-152
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ jobs:
6464

6565
- name: Build
6666
run: |
67+
rm -rf /opt/hostedtoolcache/{node,go,Ruby,Java*}
68+
ls -al /opt/hostedtoolcache
69+
rm -rf /usr/share/dotnet/
6770
python -m pip install -U pip wheel
6871
python -m pip install -r requirements-dev.txt
6972
BUILD_MONAI=1 ./runtests.sh --build

.github/workflows/cron.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
environment:
1616
- "PT191+CUDA113"
1717
- "PT110+CUDA113"
18-
- "PT112+CUDA113"
19-
- "PTLATEST+CUDA118"
18+
- "PT113+CUDA113"
19+
- "PTLATEST+CUDA121"
2020
include:
2121
# https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes
2222
- environment: PT191+CUDA113
@@ -25,12 +25,12 @@ jobs:
2525
- environment: PT110+CUDA113
2626
pytorch: "torch==1.10.2 torchvision==0.11.3 --extra-index-url https://download.pytorch.org/whl/cu113"
2727
base: "nvcr.io/nvidia/pytorch:21.06-py3" # CUDA 11.3
28-
- environment: PT112+CUDA113
29-
pytorch: "torch==1.12.1 torchvision==0.13.1 --extra-index-url https://download.pytorch.org/whl/cu113"
28+
- environment: PT113+CUDA113
29+
pytorch: "torch==1.13.1 torchvision==0.14.1 --extra-index-url https://download.pytorch.org/whl/cu113"
3030
base: "nvcr.io/nvidia/pytorch:21.06-py3" # CUDA 11.3
31-
- environment: PTLATEST+CUDA118
31+
- environment: PTLATEST+CUDA121
3232
pytorch: "-U torch torchvision --extra-index-url https://download.pytorch.org/whl/cu118"
33-
base: "nvcr.io/nvidia/pytorch:23.03-py3" # CUDA 11.8
33+
base: "nvcr.io/nvidia/pytorch:23.06-py3" # CUDA 12.1
3434
container:
3535
image: ${{ matrix.base }}
3636
options: "--gpus all"
@@ -76,7 +76,7 @@ jobs:
7676
if: github.repository == 'Project-MONAI/MONAI'
7777
strategy:
7878
matrix:
79-
container: ["pytorch:22.09", "pytorch:22.11", "pytorch:23.03"]
79+
container: ["pytorch:22.10", "pytorch:23.06"]
8080
container:
8181
image: nvcr.io/nvidia/${{ matrix.container }}-py3 # testing with the latest pytorch base image
8282
options: "--gpus all"
@@ -121,7 +121,7 @@ jobs:
121121
if: github.repository == 'Project-MONAI/MONAI'
122122
strategy:
123123
matrix:
124-
container: ["pytorch:22.09", "pytorch:22.11", "pytorch:23.03"]
124+
container: ["pytorch:23.06"]
125125
container:
126126
image: nvcr.io/nvidia/${{ matrix.container }}-py3 # testing with the latest pytorch base image
127127
options: "--gpus all"
@@ -221,7 +221,7 @@ jobs:
221221
if: github.repository == 'Project-MONAI/MONAI'
222222
needs: cron-gpu # so that monai itself is verified first
223223
container:
224-
image: nvcr.io/nvidia/pytorch:23.03-py3 # testing with the latest pytorch base image
224+
image: nvcr.io/nvidia/pytorch:23.06-py3 # testing with the latest pytorch base image
225225
options: "--gpus all --ipc=host"
226226
runs-on: [self-hosted, linux, x64, integration]
227227
steps:

.github/workflows/docker.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,11 @@ jobs:
8585
container:
8686
image: docker://projectmonai/monai:latest
8787
options: "--shm-size=4g --ipc=host"
88-
runs-on: ubuntu-latest
88+
runs-on: [self-hosted, linux, X64, docker]
8989
steps:
9090
- name: Import
9191
run: |
92-
export CUDA_VISIBLE_DEVICES=$(python -m tests.utils | tail -n 1)
93-
echo $CUDA_VISIBLE_DEVICES
92+
export OMP_NUM_THREADS=4 MKL_NUM_THREADS=4 CUDA_VISIBLE_DEVICES= # cpu-only
9493
python -c 'import monai; monai.config.print_debug_info()'
9594
cd /opt/monai
9695
ls -al

.github/workflows/pythonapp-gpu.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- "PT110+CUDA111"
2626
- "PT112+CUDA118DOCKER"
2727
- "PT113+CUDA116"
28-
- "PT114+CUDA120DOCKER"
28+
- "PT210+CUDA121DOCKER"
2929
include:
3030
# https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes
3131
- environment: PT19+CUDA114DOCKER
@@ -42,10 +42,10 @@ jobs:
4242
- environment: PT113+CUDA116
4343
pytorch: "torch==1.13.1 torchvision==0.14.1"
4444
base: "nvcr.io/nvidia/cuda:11.6.1-devel-ubuntu18.04"
45-
- environment: PT114+CUDA120DOCKER
46-
# 23.03: 2.0.0a0+1767026
45+
- environment: PT210+CUDA121DOCKER
46+
# 23.06: 2.1.0a0+4136153
4747
pytorch: "-h" # we explicitly set pytorch to -h to avoid pip install error
48-
base: "nvcr.io/nvidia/pytorch:23.03-py3"
48+
base: "nvcr.io/nvidia/pytorch:23.06-py3"
4949
container:
5050
image: ${{ matrix.base }}
5151
options: --gpus all --env NVIDIA_DISABLE_REQUIRE=true # workaround for unsatisfied condition: cuda>=11.6

CONTRIBUTING.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ make html
151151
```
152152
The above commands build html documentation, they are used to automatically generate [https://docs.monai.io](https://docs.monai.io).
153153

154+
The Python code docstring are written in
155+
[reStructuredText](https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html) and
156+
the documentation pages can be in either [reStructuredText](https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html) or [Markdown](https://en.wikipedia.org/wiki/Markdown). In general the Python docstrings follow the [Google style](https://google.github.io/styleguide/pyguide.html#38-comments-and-docstrings).
157+
154158
Before submitting a pull request, it is recommended to:
155159
- edit the relevant `.rst` files in [`docs/source`](./docs/source) accordingly.
156160
- build html documentation locally

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
# To build with a different base image
1313
# please run `docker build` using the `--build-arg PYTORCH_IMAGE=...` flag.
14-
ARG PYTORCH_IMAGE=nvcr.io/nvidia/pytorch:23.03-py3
14+
ARG PYTORCH_IMAGE=nvcr.io/nvidia/pytorch:23.06-py3
1515
FROM ${PYTORCH_IMAGE}
1616

1717
LABEL maintainer="monai.contact@gmail.com"

docs/images/precision_options.png

41.1 KB
Loading

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ itk>=5.2
66
nibabel
77
parameterized
88
scikit-image>=0.19.0
9+
scipy>=1.7.1
910
tensorboard
1011
commonmark==0.9.1
1112
recommonmark==0.6.0

docs/source/data.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ Generic Interfaces
4545
:members:
4646
:special-members: __getitem__
4747

48+
`GDSDataset`
49+
~~~~~~~~~~~~~~~~~~~
50+
.. autoclass:: GDSDataset
51+
:members:
52+
:special-members: __getitem__
53+
54+
4855
`CacheNTransDataset`
4956
~~~~~~~~~~~~~~~~~~~~
5057
.. autoclass:: CacheNTransDataset

docs/source/index.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ Technical documentation is available at `docs.monai.io <https://docs.monai.io>`_
5858

5959
installation
6060

61+
.. toctree::
62+
:maxdepth: 1
63+
:caption: Precision and Performance
64+
65+
precision_performance
66+
6167
.. toctree::
6268
:maxdepth: 1
6369
:caption: Contributing

0 commit comments

Comments
 (0)