File size: 2,703 Bytes
44cf118
7fbd0fa
44cf118
7fbd0fa
 
 
 
f8cdbc4
44cf118
fcc7f0d
44cf118
 
f43e272
9201240
 
44cf118
 
9201240
44cf118
 
 
 
 
 
fcc7f0d
44cf118
 
 
 
5cb0fdc
 
 
44cf118
 
9201240
44cf118
fcc7f0d
f43e272
 
 
fcc7f0d
f8cdbc4
44cf118
 
9201240
 
f43e272
 
 
 
 
 
f8cdbc4
f43e272
9201240
f8cdbc4
12307d9
 
 
 
 
 
 
9201240
f8cdbc4
9201240
 
 
f8cdbc4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/bin/bash
### Install apt packages
sudo apt install python3-pyqt5 -y
### Install git-lfs 
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt install git-lfs
git lfs install
### Install required
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
pip3 install cython pyyaml==6.0.1
pip3 install jupyter
pip3 install opencv-python
pip3 install -U fvcore==0.1.4
pip3 install nbclient==0.5.3 nbconvert==6.4.4 nbformat==5.3.0
pip3 install importlib-metadata==4.8.3 markdown==3.2
pip3 install scikit-image matplotlib imageio
pip3 install black isort flake8 flake8-bugbear flake8-comprehensions
pip3 install pickle5==0.0.11
pip3 install scikit-learn==0.22.2
pip3 install pandas
pip3 install h5py
pip3 install structlog
pip3 install baal==1.3.2 pytorch-lightning==1.5.10
pip3 install transformers
pip3 install onnx==1.8.1
pip3 install xmltodict
pip3 install seaborn
pip3 install statsmodels
pip3 install cerberus
pip3 install darwin-py
pip3 install multiprocess==0.70.12.2 pathos==0.2.8 dill==0.3.6 datasets==2.13.0 numpy==1.21.6
pip3 install pyyaml torch
pip3 install opencv-python pip install opencv-contrib-python
pip3 install tqdm cerberus fvcore torchvision
pip3 install pycocotools==2.0.2
pip3 install colorama
pip3 install omegaconf==2.2
### Install detectron2
# pip3 install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu101/torch1.5/index.html
pip3 install git+ssh://[email protected]/facebookresearch/[email protected]

### Fix baal bug
sed -i \
"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" \
~/.local/lib/python3.8/site-packages/baal/utils/log_configuration.py

### Install cocoapi
pip3 install -U 'git+ssh://[email protected]/cocodataset/cocoapi.git#subdirectory=PythonAPI'

### Install labelme
pip3 install git+ssh://[email protected]/nyxrobotics/labelme.git@feature/wacom

### Install maskal
pip3 install git+ssh://[email protected]/nyxrobotics/maskal.git@feature/fix_bug

### Install anaconda
# sudo apt install -y curl;
# mkdir -p ~/lib/anaconda_installation;
# cd ~/lib/anaconda_installation;
# curl -O https://repo.anaconda.com/archive/Anaconda3-5.2.0-Linux-x86_64.sh;
# chmod +x Anaconda3-5.2.0-Linux-x86_64.sh;
# ./Anaconda3-5.2.0-Linux-x86_64.sh;
# conda create --name maskAL python=3.6 pip

### Prepare Workspace
SCRIPT_DIR=$(cd $(dirname $0); pwd)
mkdir -p $SCRIPT_DIR/../maskal_ws/datasets
mkdir -p $SCRIPT_DIR/../maskal_ws/results
mkdir -p $SCRIPT_DIR/../maskal_ws/weights