Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.2 KB

INSTALL.md

File metadata and controls

34 lines (27 loc) · 1.2 KB

Installation

Requirements

  • Linux or macOS with Python ≥ 3.8
  • PyTorch ≥ 1.8 and torchvision that matches the PyTorch installation. Install them together at pytorch.org to make sure of this. Note, please check PyTorch version matches that is required by Detectron2.
  • Detectron2: follow Detectron2 installation instructions.
  • OpenCV ≥ 4.6 is needed by demo and visualization.

Example conda environment setup

conda create --name cutler python=3.8 -y
conda activate cutler
conda install pytorch==1.8.1 torchvision==0.9.1 torchaudio==0.8.1 -c pytorch
pip install git+https://github.com/lucasb-eyer/pydensecrf.git

# under your working directory
git clone [email protected]:facebookresearch/detectron2.git
cd detectron2
pip install -e .
pip install git+https://github.com/cocodataset/panopticapi.git
pip install git+https://github.com/mcordts/cityscapesScripts.git

cd ..
git clone --recursive [email protected]:facebookresearch/CutLER.git
cd CutLER
pip install -r requirements.txt

datasets

If you want to train/evaluate on the datasets, please see datasets/README.md to see how we prepare datasets for this project.