Skip to content
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
1 change: 1 addition & 0 deletions .github/workflows/cron-mmar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
key: ${{ runner.os }}-pip-${{ steps.pip-cache.outputs.datew }}
- name: Install dependencies
run: |
rm -rf /github/home/.cache/torch/hub/mmars/
python -m pip install --upgrade pip wheel
python -m pip install -r requirements-dev.txt
- name: Loading MMARs
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
if: github.repository == 'Project-MONAI/MONAI'
strategy:
matrix:
container: ["pytorch:21.02", "pytorch:22.02"] # 21.02 for backward comp.
container: ["pytorch:21.02", "pytorch:21.10", "pytorch:22.02"] # 21.02, 21.10 for backward comp.
container:
image: nvcr.io/nvidia/${{ matrix.container }}-py3 # testing with the latest pytorch base image
options: "--gpus all"
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
if: github.repository == 'Project-MONAI/MONAI'
strategy:
matrix:
container: ["pytorch:21.02", "pytorch:22.02"] # 21.02 for backward comp.
container: ["pytorch:21.02", "pytorch:21.10", "pytorch:22.02"] # 21.02, 21.10 for backward comp.
container:
image: nvcr.io/nvidia/${{ matrix.container }}-py3 # testing with the latest pytorch base image
options: "--gpus all"
Expand Down Expand Up @@ -204,7 +204,7 @@ jobs:
if: github.repository == 'Project-MONAI/MONAI'
needs: cron-gpu # so that monai itself is verified first
container:
image: nvcr.io/nvidia/pytorch:21.09-py3 # testing with the latest pytorch base image
image: nvcr.io/nvidia/pytorch:22.02-py3 # testing with the latest pytorch base image
options: "--gpus all --ipc=host"
runs-on: [self-hosted, linux, x64, common]
steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
python -m pip uninstall -y torch torchvision
python -m pip install torch==1.11.0+cu115 torchvision==0.12.0+cu115 -f https://download.pytorch.org/whl/torch_stable.html
python -m pip install -r requirements-dev.txt
rm -rf /github/home/.cache/torch/hub/mmars/
- name: Run integration tests
run: |
python -m pip list
Expand Down
2 changes: 1 addition & 1 deletion monai/engines/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def run(self) -> None:
"""
if self.state.epoch_length == 0:
warnings.warn(
"`dataloader` is emply or the specified `epoch_length` is 0, skip the `run`."
"`dataloader` is empty or the specified `epoch_length` is 0, skip the `run`."
" if running distributed training, the program may hang in `all-gather`, `all-reduce`, etc."
" because not all the ranks run the same computation logic."
)
Expand Down
4 changes: 2 additions & 2 deletions monai/networks/nets/dints.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,8 +817,8 @@ def get_topology_entropy(self, probs):
probs: path activation probabilities
"""
if hasattr(self, "node2in"):
node2in = self.node2in
node2out = self.node2out
node2in = self.node2in # pylint: disable=E0203
node2out = self.node2out # pylint: disable=E0203
else:
# node activation index to feasible input child_idx
node2in = [[] for _ in range(len(self.node_act_list))]
Expand Down
16 changes: 8 additions & 8 deletions tests/test_mmar_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,16 @@
"item": "clara_pt_pathology_metastasis_detection",
"map_location": "cuda" if torch.cuda.is_available() else "cpu",
},
"TorchVisionFullyConvModel",
"TorchVisionFCModel",
np.array(
[
[-0.00693138, -0.00441378, -0.01057985, 0.05604396, 0.03526996, -0.00399302, -0.0267504],
[0.00805358, 0.01016939, -0.10749951, -0.28787708, -0.27905375, -0.13328083, -0.00882593],
[-0.01909848, 0.04871106, 0.2957697, 0.60376877, 0.53552634, 0.24821444, 0.03773781],
[0.02449462, -0.07471243, -0.30943492, -0.43987238, -0.26549947, -0.00698426, 0.04395606],
[-0.03124012, 0.00807883, 0.06797771, -0.04612541, -0.30266526, -0.39722857, -0.25109962],
[0.02480375, 0.03378576, 0.06519791, 0.24546203, 0.41867673, 0.393786, 0.16055048],
[-0.01529332, -0.00062494, -0.016658, -0.06313603, -0.1508078, -0.09107386, -0.01239121],
[-0.00540746, -0.00274996, -0.00837622, 0.05415914, 0.03555066, -0.00071636, -0.02325751],
[0.00564625, 0.00674562, -0.1098334, -0.2936509, -0.28384757, -0.13580588, -0.00737865],
[-0.02159783, 0.04615543, 0.29717407, 0.6001161, 0.53496915, 0.2528417, 0.04530451],
[0.0225903, -0.07556137, -0.3070122, -0.43984795, -0.26286602, -0.00172576, 0.05003437],
[-0.0320133, 0.00855468, 0.06824744, -0.04786247, -0.30358723, -0.3960023, -0.24895012],
[0.02412516, 0.03411723, 0.06513759, 0.24332047, 0.41664436, 0.38999054, 0.15957521],
[-0.01303542, -0.00166874, -0.01965466, -0.06620175, -0.15635538, -0.10023144, -0.01698002],
]
),
),
Expand Down