glenn-jocher
commited on
Commit
•
8bf3cff
1
Parent(s):
60d5dc0
PyTorch 1.6.0 update with native AMP (#573)
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
# Start FROM Nvidia PyTorch image https://ngc.nvidia.com/catalog/containers/nvidia:pytorch
|
2 |
FROM nvcr.io/nvidia/pytorch:20.03-py3
|
3 |
-
|
|
|
|
|
|
|
4 |
|
5 |
# Create working directory
|
6 |
RUN mkdir -p /usr/src/app
|
@@ -9,9 +12,6 @@ WORKDIR /usr/src/app
|
|
9 |
# Copy contents
|
10 |
COPY . /usr/src/app
|
11 |
|
12 |
-
# Install dependencies (pip or conda)
|
13 |
-
#RUN pip install -r requirements.txt
|
14 |
-
|
15 |
# Copy weights
|
16 |
#RUN python3 -c "from models import *; \
|
17 |
#attempt_download('weights/yolov5s.pt'); \
|
|
|
1 |
# Start FROM Nvidia PyTorch image https://ngc.nvidia.com/catalog/containers/nvidia:pytorch
|
2 |
FROM nvcr.io/nvidia/pytorch:20.03-py3
|
3 |
+
|
4 |
+
# Install dependencies
|
5 |
+
COPY requirements.txt .
|
6 |
+
RUN pip install -r requirements.txt gsutil
|
7 |
|
8 |
# Create working directory
|
9 |
RUN mkdir -p /usr/src/app
|
|
|
12 |
# Copy contents
|
13 |
COPY . /usr/src/app
|
14 |
|
|
|
|
|
|
|
15 |
# Copy weights
|
16 |
#RUN python3 -c "from models import *; \
|
17 |
#attempt_download('weights/yolov5s.pt'); \
|