Downloads · 30 days
0
LIVR-VUB/20q-REGE-2D
20q-REGE-2D is a machine learning model from LIVR-VUB. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for cellpose. The card lists the license as mit.
This repository contains custom-trained Cellpose models for the REGE-Nusa project (LIVR-VUB). These models are fine-tuned for segmenting cells and nuclei in 2D microscopy images from 20q-REGE experiments.
Downloads · 30 days
0
Access
Public
Updated Feb 4, 2026
Repo size
2.4 GB
Likes
0
Public
Click a slice to open those files.
Other2.4 GB · 100%
From the Hugging Face model README
This repository contains custom-trained Cellpose models for the REGE-Nusa project (LIVR-VUB). These models are fine-tuned for segmenting cells and nuclei in 2D microscopy images from 20q-REGE experiments.
cpsam_20q_cells: Fine-tuned model for whole-cell segmentation (cytoplasm).cpsam_20qP_nuclei: Fine-tuned model for nuclei segmentation.You can download the models directly from the Hugging Face hub using the huggingface_hub Python library or by cloning the repository.
from huggingface_hub import hf_hub_download
# Download Cell Model
cell_model_path = hf_hub_download(repo_id="LIVR-VUB/20q-REGE-2D", filename="cpsam_20q_cells")
print(f"Cell model downloaded to: {cell_model_path}")
# Download Nuclei Model
nuclei_model_path = hf_hub_download(repo_id="LIVR-VUB/20q-REGE-2D", filename="cpsam_20qP_nuclei")
print(f"Nuclei model downloaded to: {nuclei_model_path}")
git lfs install
git clone https://huggingface.co/LIVR-VUB/20q-REGE-2D
Once downloaded, you can load these custom models in Cellpose using the CLI or Python API.
from cellpose import models, io
# Load the model
# For the cell model (cytoplasm)
model = models.CellposeModel(gpu=True, pretrained_model='/path/to/downloaded/cpsam_20q_cells')
# Run segmentation
# channels = [cytoplasm, nucleus] (usually [1, 2] or similar depending on your data)
masks, flows, styles = model.eval(images, diameter=None, channels=[1, 2])
python -m cellpose --pretrained_model /path/to/downloaded/cpsam_20q_cells --dir /path/to/images --chan 1 --chan2 2