v0.1.26
0.1.26 — 2025-05-07
Removed
- Removed
datamodulesmodule - Removed
datasetsmodule
Refactor
- Refactored the whole model interface to be more user-friendly.
Features
-
Added a new
wsimodule, including:- A
SlideReaderclass to read patches from a WSI slide.- Backends: Openslide, CUCIM
- Adapted the reader class from HistoPrep library. Props to Jopo666
get_sub_gridsfunction to get subgrids from a WSI slide. Can be used to filter the patches. Based on connected components.
- A
-
Added a new torch_datasets module, including:
WSIDatasetInferclass to run inference directly from WSIs.- Adapted the class from HistoPrep library. Props to Jopo666
TrainDatasetH5class to handle training data for the models from a h5 file.TrainDatasetFolderclass to handle training data for the models from img and label folders.
-
Added a new
inference.WsiSegmenter-class to handle the segmentation of WSIs. -
Added a new
wsi.inst_merger.InstMerger-class to handle the merging of instance masks at image boundaries. -
Added
inst2gdfandsem2gdffunctions toutils.vectorizemodule. These functions convert efficiently instance and semantic masks to GeoDataFrame objects. -
Added
FileHandler.to_matandFileHandler.to_gsonsave functions that take in a dictionary of model output masks (output from theInferer-classes) and save it to a .mat or '.feather', '.geojson', '.parquet' files.
Added Dependencies
- Added
libpysaldependency - Added
networkxdependency
Removed Dependencies
- Removed
lightningdependency - Removed
albumentationsdependency
Chore
- Move
FolderDatasetInfertotorch_datasetsmodule