From c42627be1800a1a2273c7c2c43d7e94b608f3028 Mon Sep 17 00:00:00 2001 From: Erik Smistad Date: Fri, 17 Nov 2023 08:40:25 +0100 Subject: [PATCH] Update README.md --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index c640d4b..43833ea 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,20 @@ import fast pipeline = fast.Pipeline.fromDataHub('breast-epithelium-segmentation', {'file': '/path/to/your/WSI'}) pipeline.run() ``` +This will visualize the output of the model. + +You can also export the segmentation to a pyramidal TIFF like so: +```python +import fast + +pipeline = fast.Pipeline.fromDataHub('breast-epithelium-segmentation', {'file': '/path/to/your/WSI'}) +pipeline.parse(visualization=False) +output = pipeline.getPipelineOutputData('segmentation') +fast.TIFFImagePyramidExporter.create('segmentation.tiff')\ + .connect(output)\ + .run() +``` + See the [documentation for more info on how to work with WSI data with pyFAST](https://fast.eriksmistad.no/python-tutorial-wsi.html). ## Training Preliminaries