Commit
·
f8cdbc4
1
Parent(s):
9201240
Edit comments
Browse files- setup/install_maskal.sh +7 -7
setup/install_maskal.sh
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
#!/bin/bash
|
2 |
-
|
3 |
sudo apt install python3-pyqt5 -y
|
4 |
sudo pip3 install labelme
|
5 |
-
|
6 |
pip3 install --user torch==1.10.1+cu111 torchvision==0.11.2+cu111 torchaudio===0.10.1 -f https://download.pytorch.org/whl/torch_stable.html
|
7 |
pip3 install cython pyyaml==5.3
|
8 |
pip3 install -U 'git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI'
|
@@ -33,18 +33,18 @@ pip3 install tqdm cerberus fvcore torchvision
|
|
33 |
pip3 install pycocotools==2.0.2
|
34 |
pip3 install detectron2==0.1.3 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu101/torch1.5/index.html
|
35 |
pip3 install colorama
|
36 |
-
|
37 |
sed -i \
|
38 |
"s@from structlog.dev import ConsoleRenderer, _has_colorama@from structlog.dev import ConsoleRenderer\ntry:\n import colorama\n _has_colorama = True\nexcept ImportError:\n _has_colorama = False@g" \
|
39 |
~/.local/lib/python3.8/site-packages/baal/utils/log_configuration.py
|
40 |
|
41 |
-
|
42 |
# mkdir -p ~/lib && cd ~/lib
|
43 |
# git clone [email protected]:pieterblok/maskal.git
|
44 |
# cd maskal
|
45 |
# pip3 install -e .
|
46 |
|
47 |
-
|
48 |
# sudo apt install -y curl;
|
49 |
# mkdir -p ~/lib/anaconda_installation;
|
50 |
# cd ~/lib/anaconda_installation;
|
@@ -53,8 +53,8 @@ sed -i \
|
|
53 |
# ./Anaconda3-5.2.0-Linux-x86_64.sh;
|
54 |
# conda create --name maskAL python=3.6 pip
|
55 |
|
56 |
-
|
57 |
SCRIPT_DIR=$(cd $(dirname $0); pwd)
|
58 |
mkdir -p $SCRIPT_DIR/../maskal_ws/datasets
|
59 |
mkdir -p $SCRIPT_DIR/../maskal_ws/results
|
60 |
-
mkdir -p $SCRIPT_DIR/../maskal_ws/weights
|
|
|
1 |
#!/bin/bash
|
2 |
+
### Install labelme
|
3 |
sudo apt install python3-pyqt5 -y
|
4 |
sudo pip3 install labelme
|
5 |
+
### Install required
|
6 |
pip3 install --user torch==1.10.1+cu111 torchvision==0.11.2+cu111 torchaudio===0.10.1 -f https://download.pytorch.org/whl/torch_stable.html
|
7 |
pip3 install cython pyyaml==5.3
|
8 |
pip3 install -U 'git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI'
|
|
|
33 |
pip3 install pycocotools==2.0.2
|
34 |
pip3 install detectron2==0.1.3 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu101/torch1.5/index.html
|
35 |
pip3 install colorama
|
36 |
+
### Fix baal bug
|
37 |
sed -i \
|
38 |
"s@from structlog.dev import ConsoleRenderer, _has_colorama@from structlog.dev import ConsoleRenderer\ntry:\n import colorama\n _has_colorama = True\nexcept ImportError:\n _has_colorama = False@g" \
|
39 |
~/.local/lib/python3.8/site-packages/baal/utils/log_configuration.py
|
40 |
|
41 |
+
### Install maskal
|
42 |
# mkdir -p ~/lib && cd ~/lib
|
43 |
# git clone [email protected]:pieterblok/maskal.git
|
44 |
# cd maskal
|
45 |
# pip3 install -e .
|
46 |
|
47 |
+
### Install anaconda
|
48 |
# sudo apt install -y curl;
|
49 |
# mkdir -p ~/lib/anaconda_installation;
|
50 |
# cd ~/lib/anaconda_installation;
|
|
|
53 |
# ./Anaconda3-5.2.0-Linux-x86_64.sh;
|
54 |
# conda create --name maskAL python=3.6 pip
|
55 |
|
56 |
+
### Prepare Workspace
|
57 |
SCRIPT_DIR=$(cd $(dirname $0); pwd)
|
58 |
mkdir -p $SCRIPT_DIR/../maskal_ws/datasets
|
59 |
mkdir -p $SCRIPT_DIR/../maskal_ws/results
|
60 |
+
mkdir -p $SCRIPT_DIR/../maskal_ws/weights
|