-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgpu_recipe.def
More file actions
71 lines (57 loc) · 2.31 KB
/
gpu_recipe.def
File metadata and controls
71 lines (57 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
bootstrap: docker
From: vanvalenlab/deepcell-applications:0.4.0-gpu
%post
######################################################################
## Prepare the container with git + python + pip
######################################################################
# make directory to mount the data
mkdir /data
# install wget, unzip, python3.11 and pip
apt update
apt install -y wget
apt install -y unzip
add-apt-repository ppa:deadsnakes/ppa
apt install -y python3.10
wget https://bootstrap.pypa.io/get-pip.py
python3.10 get-pip.py
rm get-pip.py
pip3.10 install -U setuptools
######################################################################
## Install ROIfile and imagecodecs
######################################################################
pip3.10 install roifile
pip3.10 install imagecodecs
################################################################################
## Install Cellpose
################################################################################
# Get cellpose models
wget --save-cookies cookies.txt \
'https://docs.google.com/uc?export=download&id=1zHGFYCqRCTwTPwgEUMNZu0EhQy2zaovg' -O- \
| sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1/p' > confirm.txt
wget --load-cookies cookies.txt -O \
models.zip 'https://docs.google.com/uc?export=download&id=1zHGFYCqRCTwTPwgEUMNZu0EhQy2zaovg&confirm='$(<confirm.txt)
mkdir -p /root/.cellpose/models
tar -cvzf models.zip /root/.cellpose/models
rm confirm.txt cookies.txt models.zip
# install Cellpose
pip3.10 install cellpose
# install scikit-image
pip3.10 install scikit-image
######################################################################
## Get kras models for Mesmer
######################################################################
mkdir /keras_models
wget https://deepcell-data.s3-us-west-1.amazonaws.com/saved-models/MultiplexSegmentation-9.tar.gz
tar -xf MultiplexSegmentation-9.tar.gz
mv MultiplexSegmentation /keras_models/
rm MultiplexSegmentation-9.tar.gz
################################################################################
## Install MindaGap
################################################################################
pip3.10 install rich
pip3.10 install matplotlib
pip3.10 install pandas
wget https://github.com/ViriatoII/MindaGap/archive/refs/heads/main.zip
unzip main.zip
mv MindaGap-main/ /MindaGap
rm main.zip