Git Product home page Git Product logo

weapon-detection-yolov5's Introduction

WeaponDetectionYoloV5

Weapon detection model using YOLOv5 in pytorch

YOLOv5 github

Images Dataset

https://github.com/ari-dasci/OD-WeaponDetection

Data Preprocessing

Has two classes: Knife and Pistol

Images were labelled and split into Test (75%), Validation (10%) and Training set (15%)

Training the Model

Model trained using the YOLOv5 model on Google Colab

YOLOv5 repository was cloned into the cloud machine and train.py was run with the following parameters:

img 256, epochs 100, batch-size 32

Training stats

Class Images Labels P R [email protected] [email protected]:.95: 100%
all 697 799 0.92 0.839 0.91 0.618
knife 697 320 0.917 0.884 0.936 0.589
pistol 697 479 0.922 0.793 0.884 0.647

Deepstream Installation

Deepstream was installed on Jetson Nano

Detailed steps for installation

Deepstream YOLO usage

The trained .pt model was converted to .wts and .cfg file using the following:

https://github.com/marcoslucianops/DeepStream-Yolo#basic-usage

The .wts and .cfg files are moved to Jetson Nano and the model was run

Inference

knife knife

pistol

Pistol.detection.mp4

weapon-detection-yolov5's People

Contributors

sabari50312 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

weapon-detection-yolov5's Issues

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.