xmrt commited on
Commit
0ab69bb
·
1 Parent(s): 612792f

added mmdet

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -7
Dockerfile CHANGED
@@ -5,19 +5,17 @@ WORKDIR /code
5
  #COPY ./requirements.txt /code/requirements.txt
6
 
7
  #RUN pip install torch==1.9.1+cu111 torchvision==0.10.1+cu111 -f https://download.pytorch.org/whl/torch_stable.ht
8
- RUN pip install torch==1.9.1 torchvision==0.10.1 -f https://download.pytorch.org/whl/torch_stable.ht
9
- RUN pip install -U openmim
10
- RUN mim install mmengine
11
  RUN mim install "mmcv>=2.0.1"
12
  RUN mim install "mmdet>=3.1.0"
13
 
14
  RUN git clone https://github.com/open-mmlab/mmpose.git
15
- #COPY . /whatever
16
- RUN ls
17
 
18
  # Change directory to mmpose
19
  WORKDIR /code/mmpose
20
- RUN pip install -r requirements.txt
21
  RUN pip install -e .
22
 
23
  # How do we change it back with ..
@@ -25,7 +23,7 @@ WORKDIR /..
25
 
26
  # RUN mim install "mmpose>=1.1.0"
27
 
28
- RUN pip install gradio
29
 
30
  #https://stackoverflow.com/questions/55313610/importerror-libgl-so-1-cannot-open-shared-object-file-no-such-file-or-directo
31
  RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
 
5
  #COPY ./requirements.txt /code/requirements.txt
6
 
7
  #RUN pip install torch==1.9.1+cu111 torchvision==0.10.1+cu111 -f https://download.pytorch.org/whl/torch_stable.ht
8
+ RUN pip install --no-cache-dir torch==1.9.1 torchvision==0.10.1 -f https://download.pytorch.org/whl/torch_stable.ht
9
+ RUN pip install --no-cache-dir -U openmim
10
+ RUN mim install --no-cache-dir mmengine
11
  RUN mim install "mmcv>=2.0.1"
12
  RUN mim install "mmdet>=3.1.0"
13
 
14
  RUN git clone https://github.com/open-mmlab/mmpose.git
 
 
15
 
16
  # Change directory to mmpose
17
  WORKDIR /code/mmpose
18
+ RUN pip install --no-cache-dir -r requirements.txt
19
  RUN pip install -e .
20
 
21
  # How do we change it back with ..
 
23
 
24
  # RUN mim install "mmpose>=1.1.0"
25
 
26
+ RUN pip install --no-cache-dir gradio
27
 
28
  #https://stackoverflow.com/questions/55313610/importerror-libgl-so-1-cannot-open-shared-object-file-no-such-file-or-directo
29
  RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y