Coder Social home page Coder Social logo

vigilant-driving's Introduction

Vigilant Driving

logo

Requirements

  • Requires Pytorch to run.
  • Use tools.txt or requirement.txt to install the appropriate packages that you may need to install in your system.

Pip

   cd vigilant-driving
   python -m pip install -r requirements.txt

Conda

   cd vigilant-driving
   conda create -n <environment-name> --file tools.txt

Run

  • Makes prediction using the device's camera
     cd vigilant-driving/common
     python run.py -load camera 
  • Make prediction using a .mp4 file
     cd vigilant-driving/common
     python run.py -video insert_your_video_here.mp4 -load video  

C++

  • REQUIRED Libtorch | OpenCV

  • Edit the CMakeLists file (set the correct directories) before executing.

     cd vigilant-driving/arm64
     python models.py
     mkdir -p build && cd build
     cmake .. 
     make && ./main

GUI (In Progress):

  • Vigilant Driving Application can be found here.

Directory Structure


.
 ├── common             #  Main control for all models 
 ├── mobile             #  android app 
 ├── arm64              #  ARM64 support 
 ├── segnet             #  Segmentation on lanes
 ├── segnet_V2          #  Complete segmentation on the environment
 ├── depth              #  Segmentation on lanes
 ├── speed              #  Speed Prediction
 ├── collection         #  Used to gather data 
 ├── Etc                #  Random Files, Images, Gifs

Release

  • Available Models: ['disparitynet', 'segnet', 'ures', 'vidresnet', 'segnetv2']
  • Please use the latest release to download models:
    • alantess/vigilant-driving:main/{latest_release}
import torch
repo = 'alantess/vigilant-driving:main/1.0.75'
model = torch.hub.load(repo, 'segnet', pretrained=True)

Datasets

To-Do

  • Fix memory allocation in android.
  • Re-train speed.
  • Complete trajectory analysis.
  • Deploy models on ARM64 devices.
  • Quantize all the models.

License


MIT

REPO IS NO LONGER BEING MAINTAINED.

vigilant-driving's People

Contributors

alantess 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.