Skip to content

Commit 9d86a38

Browse files
authored
317 reenable testing (#1075)
Signed-off-by: Wenqi Li <[email protected]> Fixes #317 ### 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 d62043b commit 9d86a38

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

pathology/tumor_detection/ignite/profiling_camelyon_pipeline.ipynb

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"metadata": {},
4747
"outputs": [],
4848
"source": [
49-
"!python -c \"import monai\" || pip install -q git+https://github.com/Project-MONAI/MONAI#egg=MONAI[gdown,ignite,torchvision,cucim]\n",
49+
"!python -c \"import monai\" || pip install -q \"monai-weekly[gdown,ignite,torchvision,cucim]\"\n",
5050
"!python -c \"import ignite\" || pip install -q pytorch-ignite\n",
5151
"!python -c \"import torchvision\" || pip install -q torchvision\n",
5252
"!python -c \"import cucim\" || pip install -q cucim\n",
@@ -568,10 +568,10 @@
568568
"\n",
569569
"# Nsys output column names are different in different versions, \n",
570570
"# so we need to find the corresponding columns\n",
571-
"avg_col = [c for c in summary.columns if c.startswith('Av')] \n",
571+
"avg_col = [c for c in summary.columns if c.startswith('Av')]\n",
572572
"std_col = [c for c in summary.columns if c.startswith('Std')]\n",
573-
"min_col = [c for c in summary.columns if c.startswith('Min')] \n",
574-
"max_col = [c for c in summary.columns if c.startswith('Max')] \n",
573+
"min_col = [c for c in summary.columns if c.startswith('Min')]\n",
574+
"max_col = [c for c in summary.columns if c.startswith('Max')]\n",
575575
"\n",
576576
"# Normalize each transform range with total average time (percentage of transform time)\n",
577577
"summary[[\"avg%\", \"std%\", 'min%', 'max%']] = summary[avg_col+std_col+min_col+max_col] / summary[avg_col].sum()[0] * 100\n",
@@ -662,21 +662,15 @@
662662
"axes[-1].set_xticks(range(0, 101, 10))\n",
663663
"axes[-1].set_xlabel(\"% of preprocessing time\", fontsize=20)"
664664
]
665-
},
666-
{
667-
"cell_type": "code",
668-
"execution_count": null,
669-
"metadata": {},
670-
"outputs": [],
671-
"source": []
672665
}
673666
],
674667
"metadata": {
675668
"interpreter": {
676669
"hash": "98b0a9b7b4eaaa670588a142fd0a9b87eaafe866f1db4228be72b4211d12040f"
677670
},
678671
"kernelspec": {
679-
"display_name": "Python 3.8.10 64-bit ('base': conda)",
672+
"display_name": "Python 3 (ipykernel)",
673+
"language": "python",
680674
"name": "python3"
681675
},
682676
"language_info": {
@@ -689,7 +683,7 @@
689683
"name": "python",
690684
"nbconvert_exporter": "python",
691685
"pygments_lexer": "ipython3",
692-
"version": "3.8.12"
686+
"version": "3.8.13"
693687
}
694688
},
695689
"nbformat": 4,

runner.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ doesnt_contain_max_epochs=("${doesnt_contain_max_epochs[@]}" 2d_slices_from_3d_t
4848
doesnt_contain_max_epochs=("${doesnt_contain_max_epochs[@]}" preprocess_to_build_detection_dataset.ipynb)
4949
doesnt_contain_max_epochs=("${doesnt_contain_max_epochs[@]}" preprocess_detect_scene_and_split_fold.ipynb)
5050
doesnt_contain_max_epochs=("${doesnt_contain_max_epochs[@]}" preprocess_extract_images_from_video.ipynb)
51+
doesnt_contain_max_epochs=("${doesnt_contain_max_epochs[@]}" profiling_camelyon_pipeline.ipynb)
5152

5253
# output formatting
5354
separator=""
@@ -72,7 +73,6 @@ failfast=false
7273
pattern="-and -name '*' -and ! -wholename '*federated_learning*'\
7374
-and ! -wholename '*transchex_openi*'\
7475
-and ! -wholename '*unetr_*'\
75-
-and ! -wholename '*profiling_camelyon*'\
7676
-and ! -wholename '*profiling_train_base_nvtx*'\
7777
-and ! -wholename '*benchmark_global_mutual_information*'\
7878
-and ! -wholename '*spleen_segmentation_3d_visualization_basic*'\

0 commit comments

Comments
 (0)