git clone https://github.com/facebookresearch/detectron2.git cd detectron2 python setup.py build develop