Skip to content

Implementation of a web server for cell nuclei detection using CellPose.

Notifications You must be signed in to change notification settings

Imaging-Server-Kit/serverkit-cellpose

Repository files navigation

EPFL Center for Imaging logo

serverkit-cellpose

Implementation of a web server for CellPose.

Installing the algorithm server with pip

Install dependencies:

pip install -r requirements.txt

Run the server:

uvicorn main:app --host 0.0.0.0 --port 8000

The server will be running on http://localhost:8000.

Endpoints

A documentation of the endpoints is automatically generated at http://localhost:8000/docs.

GET endpoints

POST endpoints

Running the server with docker-compose

To build the docker image and run a container for the algorithm server in a single command, use:

docker compose up

The server will be running on http://localhost:8000.

Running the server with docker

Build the docker image:

docker build -t serverkit-cellpose .

Run the server in a container:

docker run -it --rm -p 8000:8000 serverkit-cellpose:latest

The server will be running on http://localhost:8000.

Running unit tests

If you have implemented unit tests in the tests/ folder, you can run them using pytest:

pytest

if you are developing your server locally, or

docker run --rm serverkit-cellpose:latest pytest

to run the tests in a docker container.

[EPFL only] Publishing a docker image to registry.rcp.epfl.ch

docker tag serverkit-cellpose registry.rcp.epfl.ch/imaging-server-kit/serverkit-cellpose
docker push registry.rcp.epfl.ch/imaging-server-kit/serverkit-cellpose

Sample images provenance

  • nuclei_2d.tif: Fluorescence microscopy image and mask from the 2018 kaggle DSB challenge (Caicedo et al. "Nucleus segmentation across imaging experiments: the 2018 Data Science Bowl." Nature methods 16.12).

About

Implementation of a web server for cell nuclei detection using CellPose.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published