FusionUNet
tissue segmentation in histopathology scans
1 min readupdated
FusionUNet automatically segments usable tissue regions in digital whole-slide histopathology images (WSI). Its architecture pairs two encoders—DenseNet-121 and MobileNetV2—that combine features via gated multiscale fusion modules and scSE attention mechanisms. It outputs a tissue probability map, binary masks, overlays, and GeoJSON vector annotations. This tool is built for researchers and medical imaging specialists working in histopathology.
Key features
- Dual-encoder architecture (DenseNet-121 and MobileNetV2) for accurate feature extraction.
- Spatial and channel-wise squeeze-and-excitation (scSE) attention across fusion and decoding stages.
- Processes histopathology image tiles at 500x500 pixel resolution.
- Generates masks, probability maps, and polygonal annotations compatible with QuPath.
What you can do
- Download the checkpoint weights and run inference on your own SVS scans using the repository script.
- Test the pipeline on the public CMU-1 sample slide.
- Automatically export binary masks, overlays, summary images, and JSON reports with tissue area calculations.
Example
Download the model weights via the Python API:
from huggingface_hub import hf_hub_download
ckpt_path = hf_hub_download(
repo_id="soroush-oskouei/tissue_segmentation",
filename="best_fusion_unet.pt",
local_dir="weights",
)
print("Downloaded checkpoint to:", ckpt_path)Read more
DetailsArchitecture: Dual-encoder U-Net (DenseNet-121 + MobileNetV2)
Input: Normalized 500x500 px RGB tiles
Output: Logit map and foreground probabilities [0, 1]
Training data: The Cancer Genome Atlas (TCGA)










Comments