Skip to content

An easy-to-use implementation for performing inferencing with TwinLiteNet model using OpenCV DNN module. TwinLiteNet is a lightweight and efficient deep learning model designed for drivable area and lane segmentation

License

Notifications You must be signed in to change notification settings

harrylal/TwinLiteNet-onnx-opencv-dnn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TwinLiteNet ONNX Model Inference with OpenCV DNN

This repository contains a C++ implementation for performing inference with the state-of-the-art TwinLiteNet model using OpenCV's DNN module. TwinLiteNet is a cutting-edge lane detection and drivable area segmentation model. This implementation offers support for both CUDA and CPU inference through build options.

Detection Results

Acknowledgment 🌟

I would like to express sincere gratitude to the creators of the TwinLiteNet model for their remarkable work .Their open-source contribution has had a profound impact on the community and has paved the way for numerous applications in autonomous driving, robotics, and beyond.Thank you for your exceptional work.


Project Structure

.
├── CMakeLists.txt
├── LICENSE
├── README.md
├── assets
├── include
│   └── twinlitenet_dnn.hpp
├── models
│   └── best.onnx
└── src
    ├── main.cpp
    └── twinlitenet_dnn.cpp

Requirements

  • OpenCV 4.8 +

Build Options

  • CUDA Inference: To enable CUDA support for GPU acceleration, build with the -DENABLE_CUDA=ON CMake option.
  • CPU Inference: For CPU-based inference, no additional options are required.

Usage

  1. Clone this repository.
  2. Build the project using CMake with your preferred build options.
mkdir build
cd build
cmake  -DENABLE_CUDA=ON ..
make -j8
  1. Execute ./main and Enjoy accurate lane detection and drivable area results!

License

This project is licensed under the MIT License. Feel free to use it in both open-source and commercial applications.


Extras

About

An easy-to-use implementation for performing inferencing with TwinLiteNet model using OpenCV DNN module. TwinLiteNet is a lightweight and efficient deep learning model designed for drivable area and lane segmentation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published