Spaces:
Runtime error
Runtime error
Upload Dockerfile
Browse files- docker/Dockerfile +59 -0
docker/Dockerfile
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ARG PYTORCH="2.0.1"
|
| 2 |
+
#ARG CUDA="11.7"
|
| 3 |
+
#ARG CUDNN="8"
|
| 4 |
+
ARG PYTORCH="2.1.0"
|
| 5 |
+
ARG CUDA="12.1"
|
| 6 |
+
ARG CUDNN="8"
|
| 7 |
+
|
| 8 |
+
FROM pytorch/pytorch:${PYTORCH}-cuda${CUDA}-cudnn${CUDNN}-devel
|
| 9 |
+
|
| 10 |
+
ENV TORCH_CUDA_ARCH_LIST="6.0 6.1 7.0+PTX"
|
| 11 |
+
ENV TORCH_NVCC_FLAGS="-Xfatbin -compress-all"
|
| 12 |
+
ENV CMAKE_PREFIX_PATH="$(dirname $(which conda))/../"
|
| 13 |
+
ENV TZ=Asia/Kolkata DEBIAN_FRONTEND=noninteractive
|
| 14 |
+
ENV MMCV_WITH_OPS=1 FORCE_CUDA=1
|
| 15 |
+
# To fix GPG key error when running apt-get update
|
| 16 |
+
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
|
| 17 |
+
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub
|
| 18 |
+
|
| 19 |
+
RUN apt-get update && apt-get install -y git gcc ninja-build libglib2.0-0 libsm6 libxrender-dev libxext6 libgl1-mesa-glx\
|
| 20 |
+
&& apt-get clean \
|
| 21 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 22 |
+
|
| 23 |
+
RUN pip install cython
|
| 24 |
+
RUN pip install xtcocotools
|
| 25 |
+
RUN pip install openmim
|
| 26 |
+
RUN mim install mmengine
|
| 27 |
+
RUN mim install "mmcv-full==1.7.2"
|
| 28 |
+
RUN mim install "mmdet==2.28.2"
|
| 29 |
+
RUN git clone -b 0.x https://github.com/open-mmlab/mmpose.git /mmpose
|
| 30 |
+
WORKDIR /mmpose
|
| 31 |
+
RUN pip install -r requirements/build.txt
|
| 32 |
+
RUN pip install --no-cache-dir -e .
|
| 33 |
+
RUN pip install -U torchmetrics timm
|
| 34 |
+
RUN pip install -U fvcore
|
| 35 |
+
RUN pip install scipy --upgrade
|
| 36 |
+
RUN pip install "numpy==1.26.4"
|
| 37 |
+
RUN pip install future tensorboard fairseq einops transformers triton torch_geometric
|
| 38 |
+
RUN pip install "xformers==0.0.22.post7"
|
| 39 |
+
RUN pip install "yapf==0.40.1"
|
| 40 |
+
|
| 41 |
+
WORKDIR EdgeCape
|
| 42 |
+
COPY EdgeCape EdgeCape/EdgeCape
|
| 43 |
+
COPY configs EdgeCape/configs
|
| 44 |
+
COPY requirements.txt EdgeCape/
|
| 45 |
+
COPY setup.cfg EdgeCape/
|
| 46 |
+
COPY setup.py EdgeCape/
|
| 47 |
+
COPY test.py EdgeCape/
|
| 48 |
+
COPY run.py EdgeCape/
|
| 49 |
+
COPY train.py EdgeCape/
|
| 50 |
+
COPY README.md EdgeCape/
|
| 51 |
+
|
| 52 |
+
RUN mkdir -p EdgeCape/data
|
| 53 |
+
RUN ln -s /storage/orhir/datasets/mp100 EdgeCape/data/mp100
|
| 54 |
+
WORKDIR EdgeCape
|
| 55 |
+
|
| 56 |
+
# Install MMPose
|
| 57 |
+
RUN conda clean --all
|
| 58 |
+
ENV FORCE_CUDA="1"
|
| 59 |
+
RUN python setup.py develop
|