Skip to content

Commit 6b214fe

Browse files
adamshephardpre-commit-ci[bot]shaneahmed
authored
📝 Add Example Notebook for Foundation Models (#887)
- Add Example Notebook to explain how to use Foundation Models from `timm` module in TIAToolbox. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Shan E Ahmed Raza <[email protected]>
1 parent 442bd3f commit 6b214fe

File tree

3 files changed

+503
-0
lines changed

3 files changed

+503
-0
lines changed

docs/images/feature_extraction.png

3.45 MB
Loading

examples/11-import-foundation-models.ipynb

Lines changed: 497 additions & 0 deletions
Large diffs are not rendered by default.

examples/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ In this example, the affine transformation is computed using thumbnails of the f
9797

9898
[![image](../docs/images/wsi-registration.png)](./10-wsi-registration.ipynb)
9999

100+
### 11- Feature Extraction using Foundation Models ([11-import-foundation-models](./11-import-foundation-models.ipynb))
101+
102+
This Jupyter notebook in TIAToolbox explains how to extract features from whole slide images (WSI) using pre-trained models from the `timm` library. It guides users through selecting appropriate model architectures, visualizing the extracted features using `UMAP` feature embedding, and verifying the model's performance by checking if different tissue types are correctly identified and separated in the feature map.
103+
104+
[![image](../docs/images/feature_extraction.png)](./11-import-foundation-models.ipynb)
105+
100106
## B) Examples of high-level analysis (pipelines) using TIAToolbox
101107

102108
List of Jupyter notebooks that demonstrate how you can use TIAToolbox to simplify high-level analysis in computational pathology.

0 commit comments

Comments
 (0)