Skip to content

Commit

Permalink
📝 Add Example Notebook for Foundation Models (#887)
Browse files Browse the repository at this point in the history
- 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]>
  • Loading branch information
3 people authored Dec 3, 2024
1 parent 442bd3f commit 6b214fe
Show file tree
Hide file tree
Showing 3 changed files with 503 additions and 0 deletions.
Binary file added docs/images/feature_extraction.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
497 changes: 497 additions & 0 deletions examples/11-import-foundation-models.ipynb

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ In this example, the affine transformation is computed using thumbnails of the f

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

### 11- Feature Extraction using Foundation Models ([11-import-foundation-models](./11-import-foundation-models.ipynb))

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.

[![image](../docs/images/feature_extraction.png)](./11-import-foundation-models.ipynb)

## B) Examples of high-level analysis (pipelines) using TIAToolbox

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

0 comments on commit 6b214fe

Please sign in to comment.