Downloads · 30 days
0
fedeceri/cochlea-hair-cell-synapses-binary-segmentation-unet2d
cochlea-hair-cell-synapses-binary-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-hair-cell-binary-segmentation-unet2d)
Downloads · 30 days
0
Access
Public
Updated Aug 18, 2026
Repo size
19.7 MB
Likes
0
Public
Click a slice to open those files.
.pth19.6 MB · 99%
From the Hugging Face model README
MONAI/PyTorch implementation of a 2D U-Net for binary semantic segmentation of fluorescent cochlear inner hair cells in single-channel two-photon microscopy TIFF images. This model segments inner hair cells (IHCs) from in vivo (Paper) two-photon fluorescence images in which the fluorescent signal primarily labels afferent neurons and their synaptic terminals, rather than the hair cells themselves. It therefore provides IHC segmentation when cell boundaries must be inferred indirectly from the surrounding afferent innervation. . The original segmentation was performed with Cellpose and manually revised in napari.
As a result, the algorithm performs better than Cellpose in ignoring cells different from inner hair cells, such as outer hair cells or supporting cells, and in "blurry" in-vivo experiments.

config.ymlconfig.ymlbest_model_binary_v4_synaptic_hcs.pthRun inference on a TIFF image:
python infer_binary.py input_Avg.tif --output prediction_mask.tif
The script loads config.yml and the model path configured in model.best_model_path.
To output watershed-separated instance labels instead of a binary mask:
python infer_binary.py input_Avg.tif --output-type labels --output prediction_labels.tif
To save both outputs:
python infer_binary.py input_Avg.tif --output-type both --output prediction_mask.tif --labels-output prediction_labels.tif
The model was trained on a microscopy dataset acquired as part of the paper In vivo spontaneous Ca2+ activity in the pre-hearing mammalian cochlea by De Faveri F., Ceriani F. and Marcotti W. The training dataset consisted of two-photon fluorescence images of GCaMP-labelled cochlear hair cells together with manually curated binary segmentation masks.
Validation Dice:0.787
Training and inference code: https://github.com/fedeceri85/cochlea-hair-cell-binary-segmentation-unet2d