Skip to content

Commit

Permalink
Update flamby/datasets/fed_camelyon16/dataset_creation_scripts/tiling…
Browse files Browse the repository at this point in the history
…_slides.py

Co-authored-by: jeandut <[email protected]>
  • Loading branch information
xavier-owkin and jeandut authored Jan 4, 2024
1 parent 7a163be commit c3f05fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def add_borders(slide: Slide, width: int = 10):
class SlideDataset(IterableDataset):
def __init__(self, grid_tiles_extractor, slide, transform=None):
self.transform = transform
# add uniform color borders to the slide to prevent artifact detection
# add uniform color borders to the slide to prevent artifact detection on the borders
add_borders(slide)
# tissue mask is needed to segment all regions
# This custom tissue mask has proved to be much more robust on this dataset
Expand Down

0 comments on commit c3f05fb

Please sign in to comment.