nyxrobotics commited on
Commit
44cf118
·
1 Parent(s): 96549c4

Add scripts

Browse files
Files changed (2) hide show
  1. setup/install_maskal.sh +51 -0
  2. setup/install_yt_dlp.sh +6 -0
setup/install_maskal.sh ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # install labelme
3
+ sudo apt install python3-pyqt5 -y
4
+ sudo pip3 install labelme
5
+ # install anaconda
6
+ sudo apt install -y curl;
7
+ mkdir -p ~/lib/anaconda_installation;
8
+ cd ~/lib/anaconda_installation;
9
+ curl -O https://repo.anaconda.com/archive/Anaconda3-5.2.0-Linux-x86_64.sh;
10
+ chmod +x Anaconda3-5.2.0-Linux-x86_64.sh;
11
+ ./Anaconda3-5.2.0-Linux-x86_64.sh;
12
+ # install required
13
+ 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
14
+ pip3 install cython pyyaml==5.1
15
+ pip3 install -U 'git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI'
16
+ pip3 install jupyter
17
+ pip3 install opencv-python
18
+ pip3 install -U fvcore
19
+ pip3 install nbclient==0.5.3 nbconvert==6.0.7 nbformat==5.1.3
20
+ pip3 install importlib-metadata==4.2 markdown==3.2
21
+ pip3 install scikit-image matplotlib imageio
22
+ pip3 install black isort flake8 flake8-bugbear flake8-comprehensions
23
+ pip3 install pickle5==0.0.12
24
+ pip3 install -e .
25
+ pip3 install scikit-learn==0.22.2
26
+ pip3 install pandas
27
+ pip3 install h5py
28
+ pip3 install structlog
29
+ pip3 install baal==1.3.2 pytorch-lightning==1.5.10
30
+ pip3 install transformers
31
+ pip3 install datasets
32
+ pip3 install onnx==1.4.1
33
+ pip3 install xmltodict
34
+ pip3 install seaborn
35
+ pip3 install statsmodels
36
+ pip3 install cerberus
37
+ pip3 install darwin-py
38
+ pip3 install pyyaml numpy torch
39
+ pip3 install opencv-python pip install opencv-contrib-python
40
+ pip3 install tqdm cerberus fvcore torchvision
41
+ pip3 install detectron2==0.1.3 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu101/torch1.5/index.html
42
+ pip3 install colorama
43
+ # fix baal bug
44
+ sed -i \
45
+ "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" \
46
+ ~/.local/lib/python3.6/site-packages/baal/utils/log_configuration.py
47
+ # install maskal
48
+ mkdir -p ~/lib && cd ~/lib
49
+ git clone [email protected]:pieterblok/maskal.git
50
+ cd maskalk
51
+ conda create --name maskAL python=3.6 pip
setup/install_yt_dlp.sh ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # install yt-dlp to download youtube videos with command line
3
+ python3 -m pip install -U yt-dlp
4
+ source ~/.profile
5
+ sudo apt install ffmpeg
6
+ yt-dlp --version