Downloads · 30 days
0
fedeceri/cochlea-synapses-segmentation-unet2d
cochlea-synapses-segmentation-unet2d is a image segmentation model from fedeceri. Use it for the image segmentation task on the model card, and read the license before you ship it in a product. It is set up for pytorch. The card lists the license as apache-2.0.
[](https://github.com/fedeceri85/cochlea-synapses-binary-segmentation-unet2d)
Downloads · 30 days
0
Access
Public
Updated Aug 18, 2026
Repo size
13.3 MB
Likes
0
Public
Click a slice to open those files.
.pth13.1 MB · 98%
From the Hugging Face model README
MONAI/PyTorch implementation of a two-stage 2D U-Net pipeline for ROI instance segmentation in single-channel cochlear microscopy TIFF images. This model was trained for the segmentation of fluorescently-labelled putative cochlear synaptic boutons.
The model uses:
The final ROI labels are produced by marker-controlled watershed using the heatmap-derived markers inside the binary foreground prediction.

0 = background, 1..N = predicted ROIs)config/binary_model_v5_synaptic.ymlconfig/heatmap_model_v5_synaptic.ymlbest_model_binary_heatmap_v5_synaptic.pthRun inference on a TIFF image:
python infer_rois.py input_Avg.tif --output input_rois.tif
The script loads:
best_model_binary_heatmap_v5_synaptic.pth
config/binary_model_v5_synaptic.yml
config/heatmap_model_v5_synaptic.yml
If --output is omitted, the script writes <input>_rois.tif.
To also save the intermediate binary mask, heatmap, and marker image:
python infer_rois.py input_Avg.tif --output input_rois.tif --save-intermediates
Useful inference parameters can be overridden from the command line:
python infer_rois.py input_Avg.tif \
--output input_rois.tif \
--binary-threshold 0.5 \
--heatmap-threshold 0.3 \
--min-size 20 \
--min-distance 5
The model was trained on manually annotated cochlear microscopy TIFF images with ROI masks and annotation-filtered center heatmaps generated from those masks.
The training pipeline and dataset preparation code are available in the GitHub repository: https://github.com/fedeceri85/cochlea-synapses-binary-segmentation-unet2d
The repository contains notebooks for checking binary predictions, heatmap predictions, and the combined ROI output:
binary_check_predictions.ipynb
heatmap_check_predictions.ipynb
binary_heatmap_check_predictions.ipynb
The combined ROI check notebook reports binary Dice for the foreground prediction and panoptic-quality components RQ/SQ for final ROI predictions.
Training and inference code: https://github.com/fedeceri85/cochlea-synapses-binary-segmentation-unet2d