Spaces:
Running
on
T4
Running
on
T4
added local install
Browse files- Dockerfile +1 -1
- Makefile +11 -2
Dockerfile
CHANGED
@@ -9,7 +9,7 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
9 |
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
|
10 |
#RUN apt-get update && apt-get install -y git ninja-build libglib2.0-0 libsm6 libxrender-dev libxext6 libgl1-mesa-glx \
|
11 |
|
12 |
-
# mim openmmlabs installs
|
13 |
RUN mim install mmengine
|
14 |
RUN mim install mmcv
|
15 |
RUN mim install mmdet
|
|
|
9 |
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
|
10 |
#RUN apt-get update && apt-get install -y git ninja-build libglib2.0-0 libsm6 libxrender-dev libxext6 libgl1-mesa-glx \
|
11 |
|
12 |
+
# mim openmmlabs installs (quick fix..)
|
13 |
RUN mim install mmengine
|
14 |
RUN mim install mmcv
|
15 |
RUN mim install mmdet
|
Makefile
CHANGED
@@ -7,14 +7,16 @@ venv:
|
|
7 |
activate:
|
8 |
source ./venv/bin/activate
|
9 |
|
10 |
-
|
|
|
|
|
11 |
|
12 |
local_install:
|
13 |
@echo "Running requirements install"
|
14 |
pip install --upgrade pip
|
15 |
pip install -r requirements.txt
|
16 |
|
17 |
-
|
18 |
@echo "Running Openmmlab requirements install"
|
19 |
pip install -U openmim
|
20 |
mim install mmengine
|
@@ -22,6 +24,13 @@ install_openmmlab:
|
|
22 |
mim install mmdet
|
23 |
mim install mmocr
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
build:
|
26 |
pip install -e .
|
27 |
gradio app.py
|
|
|
7 |
activate:
|
8 |
source ./venv/bin/activate
|
9 |
|
10 |
+
docker_install: local_install install_openmmlab
|
11 |
+
|
12 |
+
docker_install: local_install install_openmmlab_with_mim
|
13 |
|
14 |
local_install:
|
15 |
@echo "Running requirements install"
|
16 |
pip install --upgrade pip
|
17 |
pip install -r requirements.txt
|
18 |
|
19 |
+
install_openmmlab_with_mim:
|
20 |
@echo "Running Openmmlab requirements install"
|
21 |
pip install -U openmim
|
22 |
mim install mmengine
|
|
|
24 |
mim install mmdet
|
25 |
mim install mmocr
|
26 |
|
27 |
+
install_openmmlab:
|
28 |
+
@echo "Running Openmmlab requirements install"
|
29 |
+
pip install mmengine
|
30 |
+
pip install mmcv
|
31 |
+
pip install mmdet
|
32 |
+
pip install mmocr
|
33 |
+
|
34 |
build:
|
35 |
pip install -e .
|
36 |
gradio app.py
|