Skip to content
Merged
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/RunCellpose_CellposeOmnipose/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/RunCellpose_CellposeOmnipose/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
NAME ?= runcellpose_omnipose_no_pretrained
TAG ?= 1.0.2
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