- 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.
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
If you want to train/evaluate on the datasets, please see datasets/README.md to see how we prepare datasets for this project.