Git Product home page Git Product logo

harrylal / twinlitenet-onnx-opencv-dnn Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.41 MB

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

Home Page: https://github.com/chequanghuy/TwinLiteNet

License: MIT License

CMake 19.31% C++ 80.69%
cpp drivable-area-segmentation lane-detection onnx-models opencv opencv-dnn twinlitenet bdd100k segmentation

twinlitenet-onnx-opencv-dnn's Introduction

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

twinlitenet-onnx-opencv-dnn's People

Contributors

harrylal avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.