Detectron2 是Facebook AI Research 开源的计算机视觉库,它是基于PyTorch 框架构建的。 Detectron2 提供了一系列丰富的功能和灵活的组件,用于实现图像和视频中的目标检测、实例分割、关键点检测等任务。
一、先安装预先要安装的库:
1. python>=3.62. PyTorch>=1.33. OpenCV: pip install opencv-python4. fvcore: pip install 'git+https://github.com/facebookresearch/fvcore'5. pycocotools:pip install cython;pip install 'git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI'6. Pillow: pip install pillow
对GCC版本要求:GCC >= 4.9
二、安装detectron2的库:
1. git clone https://github.com/facebookresearch/detectron2.git
2. python -m pip install -e detectron2
友情链接:
Detectron2 - 上海交大超算平台用户手册
Detectron2的入门学习-CSDN博客
深入理解Detectron 2 — Part 1 基础网络架构和代码库结构(Basic Network Architecture and Repo Structure)_detectron2模型架构-CSDN博客