GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fixes typos and update PR template (#903) · Project-MONAI/tutorials@9c40a7b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github
    • pull_request_template.md
  • 3d_registration
    • paired_lung_ct.ipynb
  • 3d_segmentation
    • brats_segmentation_3d.ipynb
    • swin_unetr_brats21_segmentation_3d.ipynb
  • deep_atlas
    • deep_atlas_tutorial.ipynb
  • model_zoo
    • app_integrate_bundle
      • README.md
      • ensemble.py
    • transfer_learning_with_bundle
      • README.md
  • modules
    • 2d_inference_3d_volume.ipynb
    • 2d_slices_from_3d_sampling.ipynb
    • 2d_slices_from_3d_training.ipynb
    • 3d_image_transforms.ipynb
    • autoencoder_mednist.ipynb
    • benchmark_global_mutual_information.ipynb
    • decollate_batch.ipynb
    • inverse_transforms_and_test_time_augmentations.ipynb
    • public_datasets.ipynb
    • resample_benchmark.ipynb
    • varautoencoder_mednist.ipynb
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/pull_request_template.md‎

Copy file name to clipboardExpand all lines: .github/pull_request_template.md
-3Lines changed: 0 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ Fixes # .
33
### Description
44
A few sentences describing the changes proposed in this pull request.
55

6-
### Status
7-
**Ready/Work in progress/Hold**
8-
96
### Checks
107
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
118
- [ ] Notebook runs automatically `./runner [-p <regex_pattern>]`
Collapse file

‎3d_registration/paired_lung_ct.ipynb‎

Copy file name to clipboardExpand all lines: 3d_registration/paired_lung_ct.ipynb
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@
369369
},
370370
"source": [
371371
"## Check transforms in DataLoader\n",
372-
"Visulize a single batch to check the transforms."
372+
"Visualize a single batch to check the transforms."
373373
]
374374
},
375375
{
Collapse file

‎3d_segmentation/brats_segmentation_3d.ipynb‎

Copy file name to clipboardExpand all lines: 3d_segmentation/brats_segmentation_3d.ipynb
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@
308308
"## Quickly load data with DecathlonDataset\n",
309309
"\n",
310310
"Here we use `DecathlonDataset` to automatically download and extract the dataset.\n",
311-
"It inherits MONAI `CacheDataset`, if you want to use less memory, you can set `cache_num=N` to cache N items for training and use the defaut args to cache all the items for validation, it depends on your memory size."
311+
"It inherits MONAI `CacheDataset`, if you want to use less memory, you can set `cache_num=N` to cache N items for training and use the default args to cache all the items for validation, it depends on your memory size."
312312
]
313313
},
314314
{
Collapse file

‎3d_segmentation/swin_unetr_brats21_segmentation_3d.ipynb‎

Copy file name to clipboardExpand all lines: 3d_segmentation/swin_unetr_brats21_segmentation_3d.ipynb
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"# 3D Brain Tumor Segmentation with Swin UNETR (BraTS 21 Challenge)\n",
88
"\n",
99
"\n",
10-
"This tutorial uses the [Swin UNETR](https://arxiv.org/pdf/2201.01266.pdf/) [1,2] model for the task of brain tumor segmentation using the [BraTS 21](http://braintumorsegmentation.org/) challenge dataset [3,4,5,6]. Swin UNETR ranked among top-perfoming models in BraTS 21 validation phase. The architecture of Swin UNETR is demonstrated as below\n",
10+
"This tutorial uses the [Swin UNETR](https://arxiv.org/pdf/2201.01266.pdf/) [1,2] model for the task of brain tumor segmentation using the [BraTS 21](http://braintumorsegmentation.org/) challenge dataset [3,4,5,6]. Swin UNETR ranked among top-performing models in BraTS 21 validation phase. The architecture of Swin UNETR is demonstrated as below\n",
1111
"![image](https://lh3.googleusercontent.com/pw/AM-JKLXBhxHcB6fGG6OoWnx1-_uwhfg9J-5HamVpDbmUTc395EbkiIwA7p2y1piZz5-uz1J9dcOhHwrhT_mpPJzDqfvSEM_qFIieE0_FC_5i5YQLm23QJjkSyIydjQ4gSX3TdpibUgDXxaWJkfOHKMW7rJD-=w1388-h523-no?authuser=2)\n",
1212
"\n",
1313
"The following features are included in this tutorial:\n",
@@ -47,7 +47,7 @@
4747
"\n",
4848
"\n",
4949
"\n",
50-
"## Refrences\n",
50+
"## References\n",
5151
"\n",
5252
"\n",
5353
"If you find this tutorial helpful, please consider citing [1] and [2]:\n",
@@ -57,7 +57,7 @@
5757
"[2]: Tang, Y., Yang, D., Li, W., Roth, H.R., Landman, B., Xu, D., Nath, V. and Hatamizadeh, A., 2022. Self-supervised pre-training of swin transformers for 3d medical image analysis. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (pp. 20730-20740).\n",
5858
"\n",
5959
"\n",
60-
"### BraTS Dataset Refrences\n",
60+
"### BraTS Dataset References\n",
6161
"\n",
6262
"[3] U.Baid, et al., The RSNA-ASNR-MICCAI BraTS 2021 Benchmark on Brain Tumor Segmentation and Radiogenomic Classification, arXiv:2107.02314, 2021.\n",
6363
"\n",
Collapse file

‎deep_atlas/deep_atlas_tutorial.ipynb‎

Copy file name to clipboardExpand all lines: deep_atlas/deep_atlas_tutorial.ipynb
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"1. Construct segmentation and registration models.\n",
9292
"2. Use the small number of segmentations (perhaps just one!) to pre-train the segmentation model. It's okay if it's not great.\n",
9393
"3. Use the segmentation model as a source of weak supervision to help train the registration model.\n",
94-
"4. Use the registration model as a soruce of weak supervision to help train the segmentation model.\n",
94+
"4. Use the registration model as a source of weak supervision to help train the segmentation model.\n",
9595
"5. Repeat steps 3 and 4 in alternation, or carry out steps 3 and 4 simultaneously in one joint training loop.\n",
9696
"\n",
9797
"The DeepAtlas method is fairly generic and does not need to prescribe specific model architectures\n",
@@ -203,7 +203,7 @@
203203
"\n",
204204
"---\n",
205205
"\n",
206-
"Note that we already have a segmentaton for each image. In the case of OASIS-1 data, these segmentations were originally done by [an algorithm](https://pubmed.ncbi.nlm.nih.gov/11293691/).\n",
206+
"Note that we already have a segmentation for each image. In the case of OASIS-1 data, these segmentations were originally done by [an algorithm](https://pubmed.ncbi.nlm.nih.gov/11293691/).\n",
207207
"In the case of synthetic data, true segmentations are generated for free by the process that creates the images.\n",
208208
"\n",
209209
"The situation in which DeepAtlas is interesting is one where we have many unlabled images and just a handful of labels. We will simulate this situation by pretending that only a few of the segmentation labels exist."
@@ -515,7 +515,7 @@
515515
")\n",
516516
"\n",
517517
"\n",
518-
"# Supress the many warnings related to depracation of the Analyze file format\n",
518+
"# Supress the many warnings related to deprecation of the Analyze file format\n",
519519
"# (without this, we would see warnings when the LoadImage transform calls itk to load Analyze files)\n",
520520
"itk.ProcessObject.SetGlobalWarningDisplay(False)\n",
521521
"\n",
@@ -1087,7 +1087,7 @@
10871087
"<a id=\"warp_warning\"></a>\n",
10881088
"We will need to be careful about when to use `warp` and when to use `warp_nearest`, especially with segmentation labels. Potential pitfalls:\n",
10891089
"- Using _trilinear interpolation_ to warp a segmentation with one channel containing class labels is a disaster: interpolating among labels would lead to intermediate values that aren't labels!\n",
1090-
"- Using _nearest neighbor inteprolation_ to warp a segmentation results in a reasonable output, but it is not a differentiable operation with respect to the deformation vector field (or, rather, derivatives vanish almost everywhere). This can be problematic for training, depending on what one is trying to do.\n",
1090+
"- Using _nearest neighbor interpolation_ to warp a segmentation results in a reasonable output, but it is not a differentiable operation with respect to the deformation vector field (or, rather, derivatives vanish almost everywhere). This can be problematic for training, depending on what one is trying to do.\n",
10911091
"- Warping a segmentation with `padding_mode=\"zeros\"` can pull in zero vectors, which might not make sense depending on how the segmentation is encoded. This is why we chose `padding_mode=\"border\"`."
10921092
]
10931093
},
Collapse file

‎model_zoo/app_integrate_bundle/README.md‎

Copy file name to clipboardExpand all lines: model_zoo/app_integrate_bundle/README.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ python ./ensemble.py -h
6868
]
6969
}
7070
```
71-
The data in training will random split into `n_splits` which you can specifiy with `--n_splits xx`
71+
The data in training will random split into `n_splits` which you can specify with `--n_splits xx`
7272
7373
3. Run the script. Make sure `bundle_root_path` and `data_root_path` is correct.
7474
Collapse file

‎model_zoo/app_integrate_bundle/ensemble.py‎

Copy file name to clipboardExpand all lines: model_zoo/app_integrate_bundle/ensemble.py
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,19 +118,19 @@ def ensemble_inference(self, device, test_datalist, ensemble='Mean'):
118118
bundle_inference_config.update({Const.KEY_INFERENCE_DATASET_DATA: test_datalist})
119119

120120
# update postprocessing with mean ensemble or vote ensemble
121-
post_tranform = bundle_inference_config.config['postprocessing']
122-
ensemble_tranform = {
121+
post_transform = bundle_inference_config.config['postprocessing']
122+
ensemble_transform = {
123123
"_target_": f"{ensemble}Ensembled",
124124
"keys": ["pred", "pred", "pred", "pred", "pred"],
125125
"output_key": "pred"
126126
}
127127
if ensemble == 'Mean':
128-
post_tranform["transforms"].insert(0, ensemble_tranform)
128+
post_transform["transforms"].insert(0, ensemble_transform)
129129
elif ensemble == 'Vote':
130-
post_tranform["transforms"].insert(-1, ensemble_tranform)
130+
post_transform["transforms"].insert(-1, ensemble_transform)
131131
else:
132132
raise NotImplementedError
133-
bundle_inference_config.update({Const.KEY_INFERENCE_POSTPROCESSING: post_tranform})
133+
bundle_inference_config.update({Const.KEY_INFERENCE_POSTPROCESSING: post_transform})
134134

135135
# update network weights
136136
_networks = [bundle_inference_config.get_parsed_content("network")] * 5
Collapse file

‎model_zoo/transfer_learning_with_bundle/README.md‎

Copy file name to clipboardExpand all lines: model_zoo/transfer_learning_with_bundle/README.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Description
2-
Load the pre-trained weights from a MONAI model-zoo model and execute the transfer-learning in a typical PyTroch training program based on it.
2+
Load the pre-trained weights from a MONAI model-zoo model and execute the transfer-learning in a typical PyTorch training program based on it.
33

44
# Overview
55
This tutorial shows how to load a pretrained U-net from MONAI model-zoo and train it on BTCV dataset using pytorch. The pretrained U-net was trained on volumetric (3D) segmentation of CT spleen from MSD dataset.
Collapse file

‎modules/2d_inference_3d_volume.ipynb‎

Copy file name to clipboardExpand all lines: modules/2d_inference_3d_volume.ipynb
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
"id": "f2596d86",
150150
"metadata": {},
151151
"source": [
152-
"Note that with `axial_inferer` and `coronal_inferer`, the number of inference iterations is 64 and 256 repectively."
152+
"Note that with `axial_inferer` and `coronal_inferer`, the number of inference iterations is 64 and 256 respectively."
153153
]
154154
}
155155
],
Collapse file

‎modules/2d_slices_from_3d_sampling.ipynb‎

Copy file name to clipboardExpand all lines: modules/2d_slices_from_3d_sampling.ipynb
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@
303303
" [\n",
304304
" SqueezeDimd(keys=[\"img\", \"seg\"], dim=-1), # squeeze the last dim\n",
305305
" Resized(keys=[\"img\", \"seg\"], spatial_size=[48, 48]),\n",
306-
" # to use crop/pad instead of reszie:\n",
306+
" # to use crop/pad instead of resize:\n",
307307
" # ResizeWithPadOrCropd(keys=[\"img\", \"seg\"], spatial_size=[48, 48], mode=\"replicate\"),\n",
308308
" ]\n",
309309
")\n",

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.