Skip to content

Commit 28b462c

Browse files
authored
Remove deprecated feature for v1.5 (#1992)
Part of Project-MONAI/MONAI#8421 ### Checks <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [ ] Avoid including large-size files in the PR. - [ ] Clean up long text outputs from code cells in the notebook. - [ ] For security purposes, please check the contents and remove any sensitive info such as user names and private key. - [ ] Ensure (1) hyperlinks and markdown anchors are working (2) use relative paths for tutorial repo files (3) put figure and graphs in the `./figure` folder - [ ] Notebook runs automatically `./runner.sh -t <path to .ipynb file>` Signed-off-by: YunLiu <[email protected]>
1 parent 9902215 commit 28b462c

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

bundle/pythonic_usage_guidance/pythonic_bundle_access.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,7 @@
404404
" name=\"brats_mri_segmentation\",\n",
405405
" bundle_dir=root_dir,\n",
406406
" source=\"monaihosting\",\n",
407-
" in_channels=3,\n",
408-
" out_channels=1,\n",
407+
" net_override={\"in_channels\": 3, \"out_channels\": 1},\n",
409408
")\n",
410409
"\n",
411410
"# using `exclude_vars` to filter loading weights.\n",

computer_assisted_intervention/endoscopic_inbody_classification.ipynb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
"execution_count": 1,
3737
"id": "5f9e4066",
3838
"metadata": {},
39-
"outputs": [],
4039
"source": [
4140
"!python -c \"import monai\" || pip install -q \"monai-weekly[pillow, ignite, tqdm]\"\n",
4241
"!python -c \"import matplotlib\" || pip install -q matplotlib\n",
@@ -419,7 +418,7 @@
419418
"source": [
420419
"max_epochs = 5\n",
421420
"\n",
422-
"pretrained_model = monai.bundle.load(name=\"endoscopic_inbody_classification\", bundle_dir=\"./\", return_state_dict=False)\n",
421+
"pretrained_model = monai.bundle.load(name=\"endoscopic_inbody_classification\", bundle_dir=\"./\")\n",
423422
"\n",
424423
"pretrained_model.train()\n",
425424
"losses = []\n",
@@ -483,7 +482,7 @@
483482
],
484483
"metadata": {
485484
"kernelspec": {
486-
"display_name": "Python 3 (ipykernel)",
485+
"display_name": "Python 3",
487486
"language": "python",
488487
"name": "python3"
489488
},
@@ -497,7 +496,7 @@
497496
"name": "python",
498497
"nbconvert_exporter": "python",
499498
"pygments_lexer": "ipython3",
500-
"version": "3.8.10"
499+
"version": "3.10.12"
501500
}
502501
},
503502
"nbformat": 4,

0 commit comments

Comments
 (0)