Skip to content

Commit f12a6f1

Browse files
authored
Merge pull request #234 from CellProfiler/cellpose_with_omnipose
Make dockerfile for cellpose with omnipose
2 parents 9567e76 + 55fa00b commit f12a6f1

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM pytorch/pytorch:1.13.0-cuda11.6-cudnn8-runtime
2+
3+
RUN pip install cellpose==1.0.2
4+
RUN pip install omnipose
5+
6+
# hotfix for the now-deprecated `peakdetect` package
7+
# latest omnipose on github fixes this by no longer using `peakdetect` library, but not on pypi
8+
RUN sed -i 's/from\ scipy\ import\ fft/from\ scipy.fftpack import\ fft/g' /opt/conda/lib/python3.9/site-packages/peakdetect/peakdetect.py
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
NAME ?= runcellpose_omnipose_no_pretrained
2+
TAG ?= 1.0.2
3+
REPO ?= cellprofiler
4+
IMG := $(REPO)/$(NAME):$(TAG)
5+
6+
.PHONEY: build
7+
build:
8+
docker build -t $(IMG) .
9+
10+
.PHONY: run
11+
run:
12+
docker run \
13+
-it --rm \
14+
$(IMG) \
15+
bash
16+
17+
.PHONY: deploy
18+
deploy:
19+
docker image push $(IMG)
20+
21+
.PHONY: clean_docker
22+
clean_docker:
23+
docker rmi $(IMG)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
install_deps = [
99
"cellprofiler",
1010
"cellprofiler-core",
11-
]
11+
]
1212

1313
cellpose_deps = [
1414
"cellpose>=1.0.2,<3.0"

0 commit comments

Comments
 (0)