Gabriel commited on
Commit
14034f0
1 Parent(s): 20103df

updated make

Browse files
Files changed (2) hide show
  1. Makefile +17 -0
  2. requirements.txt +8 -6
Makefile CHANGED
@@ -1,3 +1,5 @@
 
 
1
  venv:
2
  python -m venv venv
3
 
@@ -5,6 +7,21 @@ venv:
5
  activate:
6
  source ./venv/bin/activate
7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  build:
9
  pip install -e .
10
  gradio app.py
 
1
+ .PHONY: install
2
+
3
  venv:
4
  python -m venv venv
5
 
 
7
  activate:
8
  source ./venv/bin/activate
9
 
10
+ install: local_install install_openmmlab
11
+
12
+ local_install:
13
+ @echo "Running requirements install"
14
+ pip install --upgrade pip
15
+ pip install -r requirements.txt
16
+
17
+ install_openmmlab:
18
+ @echo "Running Openmmlab requirements install"
19
+ pip install -U openmim
20
+ mim install mmengine
21
+ mim install mmcv
22
+ mim install mmdet
23
+ mim install mmocr
24
+
25
  build:
26
  pip install -e .
27
  gradio app.py
requirements.txt CHANGED
@@ -1,8 +1,3 @@
1
- # !pip install -U openmim
2
- # !mim install mmengine
3
- # !mim install mmcv
4
- # !mim install mmdet
5
- # !mim install mmocr
6
  torch
7
  torchvision
8
  openmim
@@ -15,4 +10,11 @@ transformers
15
  huggingface_hub
16
  requests
17
  # scipy
18
- # sklearn
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  torch
2
  torchvision
3
  openmim
 
10
  huggingface_hub
11
  requests
12
  # scipy
13
+ # sklearn
14
+
15
+ # make install_openmmlab
16
+ # !pip install -U openmim
17
+ # !mim install mmengine
18
+ # !mim install mmcv
19
+ # !mim install mmdet
20
+ # !mim install mmocr