unfinity commited on
Commit
3f32a55
·
1 Parent(s): 5714fc1

upd requirements and dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +9 -1
  2. requirements.txt +7 -0
Dockerfile CHANGED
@@ -1,12 +1,20 @@
1
  FROM nvcr.io/nvidia/pytorch:23.12-py3
2
 
 
3
  RUN pip install ultralytics
4
- RUN pip install streamlit
5
  RUN pip install opencv-python==4.6.0.66
6
  RUN pip install Pillow==10.3.0
7
 
 
 
 
 
 
 
 
8
  RUN apt update && apt install fonts-dejavu -y
9
 
 
10
  WORKDIR /app
11
  RUN wget https://github.com/ultralytics/assets/releases/download/v8.2.0/yolov8l-pose.pt -O /app/yolov8l-pose.pt
12
 
 
1
  FROM nvcr.io/nvidia/pytorch:23.12-py3
2
 
3
+ # YOLOv8
4
  RUN pip install ultralytics
 
5
  RUN pip install opencv-python==4.6.0.66
6
  RUN pip install Pillow==10.3.0
7
 
8
+ # FastAPI
9
+ RUN pip install fastapi uvicorn
10
+
11
+ # Streamlit
12
+ RUN pip install streamlit
13
+
14
+ # Fonts
15
  RUN apt update && apt install fonts-dejavu -y
16
 
17
+ # Download model weights
18
  WORKDIR /app
19
  RUN wget https://github.com/ultralytics/assets/releases/download/v8.2.0/yolov8l-pose.pt -O /app/yolov8l-pose.pt
20
 
requirements.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ torch
2
+ ultralytics
3
+ opencv-python==4.6.0.66
4
+ Pillow==10.3.0
5
+ fastapi
6
+ uvicorn
7
+ streamlit