Downloads · 30 days
0
aaristov/cellpose-sam-service
cellpose-sam-service is a machine learning model from aaristov. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Cell segmentation service using Cellpose-SAM, running on HuggingFace ZeroGPU.
Downloads · 30 days
0
Access
Public
Updated Feb 18, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py6.7 KB · 71%
From the Hugging Face model README
Cell segmentation service using Cellpose-SAM, running on HuggingFace ZeroGPU.
Upload an image and adjust the detection parameters to segment cells.
from gradio_client import Client
import base64
client = Client("YOUR_USERNAME/cellpose-zero-gpu")
with open("image.png", "rb") as f:
img_b64 = base64.b64encode(f.read()).decode()
result = client.predict(
image_b64=img_b64,
resize=512,
max_iter=2000,
flow_threshold=0.4,
cellprob_threshold=0.0,
api_name="/predict_api"
)