Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make dockerfile for cellpose with omnipose #234

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions dockerfiles/RunCellposeOmnipose/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM pytorch/pytorch:1.13.0-cuda11.6-cudnn8-runtime

RUN pip install cellpose==1.0.2
RUN pip install omnipose

# hotfix for the now-deprecated `peakdetect` package
# latest omnipose on github fixes this by no longer using `peakdetect` library, but not on pypi
RUN sed -i 's/from\ scipy\ import\ fft/from\ scipy.fftpack import\ fft/g' /opt/conda/lib/python3.9/site-packages/peakdetect/peakdetect.py
23 changes: 23 additions & 0 deletions dockerfiles/RunCellposeOmnipose/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
NAME ?= runcellpose_omnipose_no_pretrained
TAG ?= 0.0.1
REPO ?= cellprofiler
IMG := $(REPO)/$(NAME):$(TAG)

.PHONEY: build
build:
docker build -t $(IMG) .

.PHONY: run
run:
docker run \
-it --rm \
$(IMG) \
bash

.PHONY: deploy
deploy:
docker image push $(IMG)

.PHONY: clean_docker
clean_docker:
docker rmi $(IMG)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
install_deps = [
"cellprofiler",
"cellprofiler-core",
]
]

cellpose_deps = [
"cellpose>=1.0.2"
Expand Down
Loading