Spaces:
Building
Building
Update Dockerfile
Browse files- Dockerfile +8 -9
Dockerfile
CHANGED
@@ -19,25 +19,26 @@ RUN apt-get update && \
|
|
19 |
|
20 |
RUN conda install python=3.8.13 -y
|
21 |
|
22 |
-
#
|
23 |
RUN pip install openmim
|
24 |
RUN pip install torch==2.0.0
|
25 |
RUN mim install mmcv-full==1.7.0
|
26 |
RUN pip install mmdet==2.27.0
|
27 |
RUN pip install torchserve
|
|
|
|
|
|
|
28 |
RUN pip install gradio
|
29 |
-
|
|
|
|
|
30 |
|
31 |
# bugfix for xtcocoapi, an mmpose dependency
|
32 |
RUN git clone https://github.com/jin-s13/xtcocoapi.git
|
33 |
WORKDIR xtcocoapi
|
34 |
RUN pip install -r requirements.txt
|
35 |
-
RUN pip install -e .
|
36 |
RUN python setup.py install
|
37 |
WORKDIR /
|
38 |
-
RUN pip install mmpose==0.29.0
|
39 |
-
RUN pip install torchvision==0.15.1 # solve torch version problem
|
40 |
-
RUN pip install numpy==1.24.4 # solve numpy version problem
|
41 |
|
42 |
# prep torchserve (optional)
|
43 |
RUN mkdir -p /home/torchserve/model-store
|
@@ -49,9 +50,7 @@ COPY config.properties /home/torchserve/config.properties
|
|
49 |
RUN adduser --disabled-password --gecos '' --uid 1000 appuser
|
50 |
|
51 |
WORKDIR /app
|
52 |
-
|
53 |
-
# Copy your app.py and examples folder into the container
|
54 |
-
COPY app.py /app/app.py
|
55 |
COPY examples /app/examples
|
56 |
|
57 |
# Pre-create directories needed by the app and Gradio, and set permissions
|
|
|
19 |
|
20 |
RUN conda install python=3.8.13 -y
|
21 |
|
22 |
+
# Install Python dependencies with pip
|
23 |
RUN pip install openmim
|
24 |
RUN pip install torch==2.0.0
|
25 |
RUN mim install mmcv-full==1.7.0
|
26 |
RUN pip install mmdet==2.27.0
|
27 |
RUN pip install torchserve
|
28 |
+
RUN pip install mmpose==0.29.0
|
29 |
+
RUN pip install torchvision==0.15.1
|
30 |
+
RUN pip install numpy==1.24.4
|
31 |
RUN pip install gradio
|
32 |
+
|
33 |
+
# **Add these additional dependencies:**
|
34 |
+
RUN pip install scikit-image scipy opencv-python requests pyyaml
|
35 |
|
36 |
# bugfix for xtcocoapi, an mmpose dependency
|
37 |
RUN git clone https://github.com/jin-s13/xtcocoapi.git
|
38 |
WORKDIR xtcocoapi
|
39 |
RUN pip install -r requirements.txt
|
|
|
40 |
RUN python setup.py install
|
41 |
WORKDIR /
|
|
|
|
|
|
|
42 |
|
43 |
# prep torchserve (optional)
|
44 |
RUN mkdir -p /home/torchserve/model-store
|
|
|
50 |
RUN adduser --disabled-password --gecos '' --uid 1000 appuser
|
51 |
|
52 |
WORKDIR /app
|
53 |
+
COPY app.py /app
|
|
|
|
|
54 |
COPY examples /app/examples
|
55 |
|
56 |
# Pre-create directories needed by the app and Gradio, and set permissions
|