RepositoryC++
Nebula4869

Nebula4869/YOLOv5-LibTorch

Real time object detection with deployment of YOLOv5 through LibTorch C++ API

172stars
50forks
16issues
3views

YOLOv5-LibTorch

Real time object detection with deployment of YOLOv5 through LibTorch C++ API

Environment

  • Ubuntu 18.04
  • OpenCV 3.2.0
  • LibTorch 1.6.0
  • CMake 3.10.2

Getting Started

  1. Install OpenCV.

    sudo apt-get install libopencv-dev
    
  2. Install LibTorch.

    wget https://download.pytorch.org/libtorch/nightly/cpu/libtorch-shared-with-deps-latest.zip
    unzip libtorch-shared-with-deps-latest.zip
    
  3. Edit "CMakeLists.txt" to configure OpenCV and LibTorch correctly.

  4. Compile and run.

    cd build
    cmake ..
    make
    ./../bin/YOLOv5LibTorch
    

Note: COCO-pretrained YOLOv5s model has been provided. For more pretrained models, see yolov5.

Similar Projects

Discover other similar projects and AI models.

RepositoryC++
sherlockchou86/VideoPipe

A cross-platform video structuring (video analysis) framework based on CV models & mLLM.

3.0k
Feb 25, 2026
RepositoryC++
ncdhz/Yolo-LibTorch

一个 LibTorch 版本的 Yolo 封装库

194
May 10, 2024
RepositoryPython
ultralytics/yolov5

Ultralytics YOLOv5 in PyTorch for object detection, instance segmentation, classification, training, and export.

58.3k
Nov 23, 2026
RepositoryJupyter Notebook
roboflow/notebooks

A collection of tutorials on state-of-the-art computer vision models and techniques. Explore everything from foundational architectures like ResNet to cutting-edge models like RF-DETR, YOLO11, SAM 3, and Qwen3-VL.

9.8k
Sep 22, 2026
Modelobject-detection
facebook/detr-resnet-50

DETR (End-to-End Object Detection) model with ResNet-50 backbone DEtection TRansformer (DETR) model trained end-to-end on COCO 2017 object detection (118k annotated images). It was introduced in the paper End-to-End Object Detection with Transformer...

♥0
154.5k
Apr 10, 2024
Modelobject-detection
microsoft/table-transformer-detection

Table Transformer (fine-tuned for Table Detection) Table Transformer (DETR) model trained on PubTables1M. It was introduced in the paper PubTables-1M: Towards Comprehensive Table Extraction From Unstructured Documents(https://arxiv.org/abs/2110.0006...

♥0
407.8k
Sep 6, 2023
RepositoryPython
zhiqwang/yolort

yolort is a runtime stack for yolov5 on specialized accelerators such as tensorrt, libtorch, onnxruntime, tvm and ncnn.

730
Apr 10, 2026
RepositoryC++
opencv/opencv

Open Source Computer Vision Library

91.8k
Nov 30, 2026
RepositoryC++
CMU-Perceptual-Computing-Lab/openpose

OpenPose: Real-time multi-person keypoint detection library for body, face, hands, and foot estimation

34.6k
Aug 3, 2024