roboone_auto_dataset / setup /install_maskal.sh
nyxrobotics's picture
Fix dependency
a0c0f9b
#!/bin/bash
### Install apt packages
sudo apt update
sudo apt install -y python3-pyqt5 curl
### Install git-lfs
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt install -y git-lfs
git lfs install
### Install Python packages
pip3 install protobuf==4.25.4 attrs==23.2.0 efficientword-net==1.0.2 requests==2.26.0 scipy==1.10.0 \
aqtinstall==3.0.0 ultralytics==8.1.47 darwin-py==0.7.26 yt-dlp==2022.11.11 gtts==2.2.4
pip3 install multiprocess==0.70.12.2 pathos==0.2.8 dill==0.3.6 datasets==2.13.0 numpy==1.22.0
pip3 install 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 pytorch-lightning==1.4.0 pycocotools==2.0.2 omegaconf==2.0.0rc21 setuptools==59.5.0 pipenv==2022.1.8
pip3 install cython pyyaml==6.0.1 jupyter opencv-python
pip3 install 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 scikit-image matplotlib imageio
pip3 install black isort flake8 flake8-bugbear flake8-comprehensions
pip3 install pickle5==0.0.11 scikit-learn==0.22.2 pandas h5py structlog
pip3 install transformers xmltodict baal==1.3.2 onnx==1.8.1
pip3 install seaborn statsmodels cerberus darwin-py
pip3 install pyyaml torch
pip3 install opencv-python==4.9.0.80 opencv-contrib-python tqdm cerberus fvcore torchvision colorama
pip3 install testresources launchpadlib
### Install detectron2
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 '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
### 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