Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 1.1 KB

INSTALL.md

File metadata and controls

32 lines (26 loc) · 1.1 KB

Installation

Requirements

  • Linux with Python ≥ 3.6
  • PyTorch ≥ 1.9 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 is optional but needed by demo and visualization
  • pip install -r requirements.txt

Example conda environment setup

conda create --name fastinst python=3.8 -y
conda activate fastinst
conda install pytorch==1.9.0 torchvision==0.10.0 cudatoolkit=11.1 -c pytorch -c nvidia
pip install -U opencv-python

# 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 [email protected]:junjiehe96/FastInst.git
cd FastInst
pip install -r requirements.txt