Spaces:
Sleeping
Sleeping
- Dockerfile +5 -1
- pre-requirements.txt +0 -8
- requirements.txt +9 -2
Dockerfile
CHANGED
|
@@ -7,10 +7,14 @@ FROM python:3.11
|
|
| 7 |
WORKDIR /code
|
| 8 |
COPY ./requirements.txt /code/requirements.txt
|
| 9 |
COPY ./pre-requirements.txt /code/pre-requirements.txt
|
|
|
|
|
|
|
| 10 |
|
| 11 |
-
RUN pip install --no-cache-dir -r /code/pre-requirements.txt
|
| 12 |
RUN pip install --no-cache-dir -r /code/requirements.txt
|
| 13 |
|
|
|
|
|
|
|
|
|
|
| 14 |
# Set up a new user named "user" with user ID 1000
|
| 15 |
RUN useradd -m -u 1000 user
|
| 16 |
|
|
|
|
| 7 |
WORKDIR /code
|
| 8 |
COPY ./requirements.txt /code/requirements.txt
|
| 9 |
COPY ./pre-requirements.txt /code/pre-requirements.txt
|
| 10 |
+
COPY ./pytorch3d /code/pytorch3d
|
| 11 |
+
COPY ./detectron2 /code/detectron2
|
| 12 |
|
|
|
|
| 13 |
RUN pip install --no-cache-dir -r /code/requirements.txt
|
| 14 |
|
| 15 |
+
RUN pip install --no-cache-dir ./pytorch3d
|
| 16 |
+
RUN pip install --no-cache-dir ./detectron2
|
| 17 |
+
|
| 18 |
# Set up a new user named "user" with user ID 1000
|
| 19 |
RUN useradd -m -u 1000 user
|
| 20 |
|
pre-requirements.txt
CHANGED
|
@@ -1,8 +0,0 @@
|
|
| 1 |
-
ninja
|
| 2 |
-
iopath
|
| 3 |
-
fvcore
|
| 4 |
-
|
| 5 |
-
--extra-index-url https://download.pytorch.org/whl/cpu
|
| 6 |
-
torch==2.2.0
|
| 7 |
-
torchvision==0.17.0
|
| 8 |
-
torchaudio==2.2.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requirements.txt
CHANGED
|
@@ -3,5 +3,12 @@ matplotlib
|
|
| 3 |
numpy
|
| 4 |
opencv-python
|
| 5 |
pyransac3d
|
| 6 |
-
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
numpy
|
| 4 |
opencv-python
|
| 5 |
pyransac3d
|
| 6 |
+
|
| 7 |
+
ninja
|
| 8 |
+
iopath
|
| 9 |
+
fvcore
|
| 10 |
+
|
| 11 |
+
--extra-index-url https://download.pytorch.org/whl/cpu
|
| 12 |
+
torch==2.2.0
|
| 13 |
+
torchvision==0.17.0
|
| 14 |
+
torchaudio==2.2.
|