Skip to content

Commit e62f643

Browse files
authored
494 reenable testing (#1074)
Signed-off-by: Wenqi Li <[email protected]> Fixes #494 ### Checks <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Notebook runs automatically `./runner [-p <regex_pattern>]` Signed-off-by: Wenqi Li <[email protected]>
1 parent 85d441b commit e62f643

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/test-modified.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: build
1+
name: premerge-notebooks
22

33
on:
44
# quick tests of modified notebooks for every pull request
@@ -25,7 +25,12 @@ jobs:
2525
run: |
2626
which python
2727
nvidia-smi
28+
rm -rf ../../MONAI/MONAI
2829
python -m pip install --upgrade pip wheel
30+
pip uninstall -y monai
31+
pip uninstall -y monai
32+
pip uninstall -y monai-weekly
33+
pip uninstall -y monai-weekly # make sure there's no existing installation
2934
BUILD_MONAI=0 python -m pip install git+https://github.com/Project-MONAI/MONAI#egg=MONAI
3035
python -m pip install -r https://raw.githubusercontent.com/Project-MONAI/MONAI/main/requirements-dev.txt
3136
- uses: actions/checkout@v3

deep_atlas/deep_atlas_tutorial.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
" If we want a deep neural network to do registration, then we can use the segmentation algorithm in this manner to create an objective to train against. We refer to the resulting loss function as _anatomy loss_.\n",
7171
" <br>\n",
7272
" \n",
73-
"- _Reg helps seg:_ Suppose we have a great registration algorithm that can deform one image to another in an anatomically realistic way. Then given just _one_ manually created segmentation, we have an equally great segmentaion algorithm:\n",
73+
"- _Reg helps seg:_ Suppose we have a great registration algorithm that can deform one image to another in an anatomically realistic way. Then given just _one_ manually created segmentation, we have an equally great segmentation algorithm:\n",
7474
" 1. Register the image you want to segment to your _atlas_, the single image for which you already have a segmentation.\n",
7575
" 2. Use the deformation from the registration to warp the atlas's segmentation back onto to your image.\n",
7676
" \n",
@@ -2436,7 +2436,7 @@
24362436
" seg2 = seg2_predicted # Use this in anatomy loss\n",
24372437
"\n",
24382438
" else: # seg2 available, but no seg1\n",
2439-
" assert('seg2' in batch.keys())\n",
2439+
" assert 'seg2' in batch.keys()\n",
24402440
" seg2 = monai.networks.one_hot(batch['seg2'].to(device), num_segmentation_classes)\n",
24412441
" loss_metric = dice_loss2(seg2_predicted, seg2)\n",
24422442
" loss_supervised = loss_metric\n",

runner.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ pattern="-and -name '*' -and ! -wholename '*federated_learning*'\
7676
-and ! -wholename '*profiling_train_base_nvtx*'\
7777
-and ! -wholename '*benchmark_global_mutual_information*'\
7878
-and ! -wholename '*spleen_segmentation_3d_visualization_basic*'\
79-
-and ! -wholename '*deep_atlas_tutorial*'\
8079
-and ! -wholename '*nuclick_infer*'\
8180
-and ! -wholename '*nuclick_training_notebook*'\
8281
-and ! -wholename '*full_gpu_inference_pipeline*'\

0 commit comments

Comments
 (0)