Skip to content

Commit 7942ab3

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5e7283f commit 7942ab3

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

Dockerfile.slim

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ RUN apt update && apt upgrade -y && \
2424
apt update && \
2525
${APT_INSTALL} cuda-toolkit-12 && \
2626
apt clean && \
27-
rm -rf cuda-keyring_1.1-1_all.deb /usr/lib/python*/EXTERNALLY-MANAGED /var/lib/apt/lists/*
27+
rm -rf cuda-keyring_1.1-1_all.deb /usr/lib/python*/EXTERNALLY-MANAGED /var/lib/apt/lists/*
2828

2929
# TODO: remark for issue [revise the dockerfile](https://github.com/zarr-developers/numcodecs/issues/431)
3030
RUN if [[ $(uname -m) =~ "aarch64" ]]; then \
@@ -48,7 +48,7 @@ COPY monai ./monai
4848

4949
# install full deps
5050
RUN python -m pip install --upgrade --no-cache-dir pip && \
51-
python -m pip install --no-cache-dir -r requirements-dev.txt
51+
python -m pip install --no-cache-dir -r requirements-dev.txt
5252

5353
RUN wget https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/cuda-keyring_1.1-1_all.deb && \
5454
dpkg -i cuda-keyring_1.1-1_all.deb && \
@@ -58,7 +58,7 @@ RUN wget https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_6
5858
# compile ext and remove temp files
5959
RUN export TORCH_CUDA_ARCH_LIST=Turing CUDA_HOME=/usr/local/cuda BUILD_MONAI=1 FORCE_CUDA=1 USE_COMPILED=1 && \
6060
python setup.py develop && \
61-
rm -rf build __pycache__ monai.egg-info
61+
rm -rf build __pycache__ monai.egg-info
6262

6363
# flatten all layers down to one
6464
FROM ${IMAGE}
@@ -84,4 +84,3 @@ ENV BUILD_MONAI=1
8484
# python -m unittest tests.bundle.test_bundle_download.TestDownload.test_ngc_private_source_download_bundle_0
8585
# python -m unittest tests.data.meta_tensor.test_meta_tensor.TestMetaTensor.test_pickling
8686
# PYTHONPATH=. BUILD_MONAI=1 python -m unittest tests.networks.test_convert_to_onnx
87-

monai/bundle/scripts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ def download(
515515
bundles for "monaihosting" source are also hosted on Hugging Face Hub, but the "repo_id" is always in the form
516516
of "MONAI/bundle_name", therefore, this argument is not required for "monaihosting" source.
517517
If `source` is "ngc_private", it should be in the form of "org/org_name" or "org/org_name/team/team_name",
518-
or you can specify the environment variable NGC_ORG and NGC_TEAM.
518+
or you can specify the environment variable NGC_ORG and NGC_TEAM.
519519
url: url to download the data. If not `None`, data will be downloaded directly
520520
and `source` will not be checked.
521521
If `name` is `None`, filename is determined by `monai.apps.utils._basename(url)`.

tests/losses/test_multi_scale.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,3 @@ def test_script(self):
8484

8585
if __name__ == "__main__":
8686
unittest.main()
87-

tests/networks/test_convert_to_onnx.py

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

2525
onnx, _ = optional_import("onnx")
2626

27-
TORCH_DEVICE_OPTIONS = ["cpu"]
27+
TORCH_DEVICE_OPTIONS = ["cpu"]
2828

2929
# FIXME: CUDA seems to produce different model outputs during testing vs. ONNX outputs, use CPU only for now
3030
# if torch.cuda.is_available():

0 commit comments

Comments
 (0)