Nebula4869/YOLOv5-LibTorch
Real time object detection with deployment of YOLOv5 through LibTorch C++ API
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
-
Install OpenCV.
sudo apt-get install libopencv-dev -
Install LibTorch.
wget https://download.pytorch.org/libtorch/nightly/cpu/libtorch-shared-with-deps-latest.zip unzip libtorch-shared-with-deps-latest.zip -
Edit "CMakeLists.txt" to configure OpenCV and LibTorch correctly.
-
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.
A cross-platform video structuring (video analysis) framework based on CV models & mLLM.
Ultralytics YOLOv5 in PyTorch for object detection, instance segmentation, classification, training, and export.
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.
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...
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...
yolort is a runtime stack for yolov5 on specialized accelerators such as tensorrt, libtorch, onnxruntime, tvm and ncnn.
OpenPose: Real-time multi-person keypoint detection library for body, face, hands, and foot estimation