Installation ------------------------------ First, install dependencies * Linux with Python = 3.8.* * Detectron2: follow `Detectron2 `_ installation instructions. .. code-block:: bash # create conda environment conda create --name cellotype python=3.8 conda activate cellotype # install pytorch and detectron2 conda install pytorch==1.9.0 torchvision==0.10.0 cudatoolkit=11.1 -c pytorch -c nvidia python -m pip install 'git+https://github.com/facebookresearch/detectron2.git' # (add --user if you don't have permission) # Compile Deformable-DETR CUDA operators git clone https://github.com/fundamentalvision/Deformable-DETR.git cd Deformable-DETR cd ./models/ops sh ./make.sh # install cellotype pip install cellotype