-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile.gpu
More file actions
33 lines (23 loc) · 917 Bytes
/
Copy pathDockerfile.gpu
File metadata and controls
33 lines (23 loc) · 917 Bytes
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
# Pin PyTorch 2.1.2 because pytorch_wavelets is unmaintained (last commit 2023)
# and uses old-style autograd.Function. Tested working with 2.1.2.
# numpy<2 required because pytorch_wavelets uses removed NumPy 2.0 APIs.
FROM pytorch/pytorch:2.1.2-cuda12.1-cudnn8-runtime
RUN apt-get update && \
apt-get install -y --no-install-recommends libgl1 libglib2.0-0 git && \
rm -rf /var/lib/apt/lists/*
ARG UID
ARG GID
ARG UNAME
RUN groupadd -g ${GID} ${UNAME} && \
useradd -m -u ${UID} -g ${GID} ${UNAME}
WORKDIR /app
COPY requirements-gpu.txt requirements-dev.txt ./
RUN pip install --no-cache-dir -r requirements-gpu.txt -r requirements-dev.txt && \
pip install --no-cache-dir git+https://github.com/fbcotter/pytorch_wavelets.git
COPY visualmic.py .
COPY tests/ tests/
RUN chown -R ${UID}:${GID} /app
ARG VERSION
LABEL version=${VERSION}
USER ${UNAME}
ENTRYPOINT ["python", "-u", "visualmic.py"]