Skip to content

Commit

Permalink
Merge pull request #5 from AICAN-Research/smistad-export-example
Browse files Browse the repository at this point in the history
Export example (requires pyfast > 4.7.2)
  • Loading branch information
mhoibo authored Nov 17, 2023
2 parents a1f46e6 + c42627b commit 1eaa274
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1eaa274

Please sign in to comment.