Skip to content

Commit 3c852c7

Browse files
CaroAMNmboudet
andauthored
container for micro-sam (#588)
* container for micro-sam * added Metadata * added label version * installing from specific commit * update micro-sam installation * Update micro-sam/1.1.1/Dockerfile --------- Co-authored-by: mboudet <mateo.boudet@gmail.com>
1 parent c470731 commit 3c852c7

File tree

2 files changed

+69
-0
lines changed

2 files changed

+69
-0
lines changed

micro-sam/1.1.1/Dockerfile

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Base Image
2+
FROM mambaorg/micromamba:1.5.10-noble
3+
4+
# Matadata
5+
LABEL base.image="mambaorg/micromamba:1.5.10-noble"
6+
LABEL version="1"
7+
LABEL software="micro-sam"
8+
LABEL software.version="1.1.1"
9+
LABEL about.summary="Tools for segmentation and tracking in microscopy build on top of Segment Anything."
10+
LABEL about.home="https://github.com/computational-cell-analytics/micro-sam"
11+
LABEL about.documentation="https://computational-cell-analytics.github.io/micro-sam/micro_sam.html"
12+
LABEL about.license="MIT"
13+
LABEL about.license_file="https://github.com/computational-cell-analytics/micro-sam/blob/master/LICENSE"
14+
LABEL about.tags="Bioinformatics, Image Analysis, Microscopy, Segmentation"
15+
16+
# Maintainer
17+
LABEL maintainer="Anwai Archit <anwai.archit@gmail.com>"
18+
LABEL maintainer="Carolin Schwitalla <carolin-schwitalla@web.de>"
19+
20+
21+
# Copy conda.yml and install dependencies
22+
COPY --chown=$MAMBA_USER:$MAMBA_USER conda.yml /tmp/conda.yml
23+
24+
RUN micromamba install -y -n base -f /tmp/conda.yml \
25+
&& micromamba install -y -n base conda-forge::procps-ng \
26+
&& micromamba env export --name base --explicit > environment.lock \
27+
&& echo ">> CONDA_LOCK_START" \
28+
&& cat environment.lock \
29+
&& echo "<< CONDA_LOCK_END" \
30+
&& micromamba clean -a -y
31+
32+
# Set the environment path
33+
ENV PATH="$MAMBA_ROOT_PREFIX/bin:$PATH"
34+
35+
USER root
36+
37+
# clone the repository and install the package
38+
RUN pip install git+https://github.com/computational-cell-analytics/micro-sam.git@9b055c3
39+
40+
41+
42+
43+
44+

micro-sam/1.1.1/conda.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: sam
2+
channels:
3+
- pytorch
4+
- conda-forge
5+
dependencies:
6+
- cpuonly
7+
# This pin is necessary because later nifty versions have import errors on windows.
8+
- nifty =1.2.1=*_4
9+
- imagecodecs
10+
- natsort
11+
- pip
12+
- zarr
13+
- pooch
14+
- protobuf <5
15+
- python-xxhash
16+
- python-elf >=0.4.8
17+
- pytorch >=2.4
18+
- segment-anything
19+
- torchvision
20+
- torch_em >=0.7.0
21+
- tqdm
22+
- timm
23+
- git
24+
- pip:
25+
- git+https://github.com/ChaoningZhang/MobileSAM.git

0 commit comments

Comments
 (0)