- Linux with Python = 3.10
- CUDA = 12.1, PyTorch = 2.3.1 and torchvision that matches the PyTorch installation. Install them together at pytorch.org to make sure of this.
- Install Detectron2 from source: follow Detectron2 installation instructions.
pip install -r requirements.txt
pip install git+https://github.com/cocodataset/panopticapi.git
After preparing the required environment, run the following command to compile CUDA kernel for MSDeformAttn:
CUDA_HOME
must be defined and points to the directory of the installed CUDA toolkit.
cd maskclippp/segmentor/ops
sh make.sh
# conda create --name maskclippp python=3.10 -y
# conda activate maskclippp
# # CUDA 12.1
# pip install torch==2.3.1 torchvision==0.18.1 --index-url https://download.pytorch.org/whl/cu121
# python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'
# pip install git+https://github.com/cocodataset/panopticapi.git
# git clone [email protected]:HVision-NKU/MaskCLIPpp.git
# cd maskclippp
# pip install -r requirements.txt
# cd maskclippp/segmentor/ops
# sh make.sh
# cd ../../../