- Linux or macOS with Python ≥ 3.6
- PyTorch ≥ 1.8. 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, but use the adapted detectron2 repo here (or look at the commands below)
conda create --name detic python=3.8 -y
conda activate detic
conda install pytorch torchvision torchaudio cudatoolkit=11.1 -c pytorch-lts -c nvidia
# under your working directory
git clone [email protected]:anishmadan23/detectron2-ffsod.git
cd detectron2
pip install -e .
cd ..
git clone [email protected]:anishmadan23/foundational_fsod.git --recurse-submodules
cd Detic
pip install -r requirements.txt
Our project uses two submodules, CenterNet2 and Deformable-DETR. If you forget to add --recurse-submodules
, do git submodule init
and then git submodule update
.