Commit
·
9201240
1
Parent(s):
9854d65
Fix dependency
Browse files- setup/install_maskal.sh +18 -9
setup/install_maskal.sh
CHANGED
@@ -4,17 +4,16 @@ 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.
|
8 |
pip3 install -U 'git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI'
|
9 |
pip3 install jupyter
|
10 |
pip3 install opencv-python
|
11 |
pip3 install -U fvcore
|
12 |
-
pip3 install nbclient==0.5.3 nbconvert==6.
|
13 |
-
pip3 install importlib-metadata==4.
|
14 |
pip3 install scikit-image matplotlib imageio
|
15 |
pip3 install black isort flake8 flake8-bugbear flake8-comprehensions
|
16 |
-
pip3 install pickle5==0.0.
|
17 |
-
pip3 install -e .
|
18 |
pip3 install scikit-learn==0.22.2
|
19 |
pip3 install pandas
|
20 |
pip3 install h5py
|
@@ -31,16 +30,20 @@ pip3 install darwin-py
|
|
31 |
pip3 install pyyaml numpy torch
|
32 |
pip3 install opencv-python pip install opencv-contrib-python
|
33 |
pip3 install tqdm cerberus fvcore torchvision
|
|
|
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.
|
|
|
40 |
# install maskal
|
41 |
-
mkdir -p ~/lib && cd ~/lib
|
42 |
-
git clone [email protected]:pieterblok/maskal.git
|
43 |
-
cd maskal
|
|
|
|
|
44 |
# install anaconda
|
45 |
# sudo apt install -y curl;
|
46 |
# mkdir -p ~/lib/anaconda_installation;
|
@@ -49,3 +52,9 @@ cd maskal
|
|
49 |
# chmod +x Anaconda3-5.2.0-Linux-x86_64.sh;
|
50 |
# ./Anaconda3-5.2.0-Linux-x86_64.sh;
|
51 |
# conda create --name maskAL python=3.6 pip
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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'
|
9 |
pip3 install jupyter
|
10 |
pip3 install opencv-python
|
11 |
pip3 install -U fvcore
|
12 |
+
pip3 install nbclient==0.5.3 nbconvert==6.4.4 nbformat==5.3.0
|
13 |
+
pip3 install importlib-metadata==4.8.3 markdown==3.2
|
14 |
pip3 install scikit-image matplotlib imageio
|
15 |
pip3 install black isort flake8 flake8-bugbear flake8-comprehensions
|
16 |
+
pip3 install pickle5==0.0.11
|
|
|
17 |
pip3 install scikit-learn==0.22.2
|
18 |
pip3 install pandas
|
19 |
pip3 install h5py
|
|
|
30 |
pip3 install pyyaml numpy torch
|
31 |
pip3 install opencv-python pip install opencv-contrib-python
|
32 |
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 |
# 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;
|
|
|
52 |
# chmod +x Anaconda3-5.2.0-Linux-x86_64.sh;
|
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
|