Our code is tested on
- Python 3.10
- Pytorch 1.11
- Detectron 0.6
- Install PyTorch 1.11
- install the cython package (e.g.
pip install cython
) - Clone the official detectron2 repository, e.g. at commit
45b3fce
:git clone detectron2
git checkout 45b3fce
- Install detectron2, e.g. via
python setup.py develop
while inside detectron2 repository - Inside DSG directory, run
python setup.py develop
- Install modified pycocotools:
- go to subdirectory cocoapi/PythonAPI
python setup.py build_ext install
- Install additional required packages:
- opencv-python
- scikit-learn
- networkx
- imantics
- easydict
- h5py
- numpy < 1.24
- networkx == 2.8
- shapely
Note: Please make sure the detectron2 version correctly corresponds to the pytorch and cuda versions installed. Please check this page for installation instructions and common issues.