Downloads · 30 days
0
sklumpe/fibsemos-chlamydomonas-v1
fibsemos-chlamydomonas-v1 is a image segmentation model from sklumpe. 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 nnunetv2. The card lists the license as cc-by-4.0.
nnU-Net v2 model for semantic segmentation of cryo-FIB images of Chlamydomonas reinhardtii cells, trained for the fibsemOS automated-milling pipeline.
Downloads · 30 days
0
Access
Public
Updated Aug 7, 2026
Repo size
869 MB
Likes
0
Public
Click a slice to open those files.
.zip371 MB · 100%
From the Hugging Face model README
nnU-Net v2 model for semantic segmentation of cryo-FIB images of Chlamydomonas reinhardtii cells, trained for the fibsemOS automated-milling pipeline.
2dcheckpoint_best.pth, fold 0model.zip — nnU-Net trained-model folder (contains plans.json, dataset.json, fold_0/).Run it in the fibsemOS Model Zoo Space, or locally:
import zipfile, numpy as np, torch
from PIL import Image
from huggingface_hub import hf_hub_download
from nnunetv2.inference.predict_from_raw_data import nnUNetPredictor
zip_path = hf_hub_download("sklumpe/fibsemos-chlamydomonas-v1", "model.zip")
zipfile.ZipFile(zip_path).extractall("model") # -> model/<trainer folder>/
model_folder = "model/model" # folder with plans.json + dataset.json + fold_0
pred = nnUNetPredictor(device=torch.device("cpu"), allow_tqdm=False)
pred.initialize_from_trained_model_folder(model_folder, use_folds=(0,), checkpoint_name="checkpoint_best.pth")
img = np.asarray(Image.open("image.png").convert("L"), dtype=np.float32)[None, None] # (c,z,y,x)
seg = pred.predict_single_npy_array(img, {"spacing": (999.0, 1.0, 1.0)}, None, None, False).squeeze()
CC-BY-4.0. Please cite fibsemOS if you use this model.