Coder Social home page Coder Social logo

hahv / yolov5_ai_class Goto Github PK

View Code? Open in Web Editor NEW
2.0 0.0 0.0 83.42 MB

object detection with yolov5 for mobility (vehicles) dataset in UAV AI class Spring Sem 2022

License: GNU General Public License v3.0

Shell 0.95% Python 98.26% Dockerfile 0.71% Batchfile 0.08%

yolov5_ai_class's Introduction

HOW TO THESE YOLOV5 CODE WITH MOBILITY DATASET

Find out origin work YOLOV5 here

  • Step 1: Install requirement described in requirements.txt file

  • Step 2: In the folder data, create a folder named mobility. Download and copy the train/valid/test data into that folder.

    • For mobility dataset (15 classes), data can be downloaded from this link
    • For mobility dataset (4 classes of group 2: Micro Car, SUV, Bus, Van), data can be downloaded from this link
    • For both cases, copy file mobility.yaml (in downloaded data) and put it into data folder
    • To train for 4 classes, edit the mobility.yaml
  • Step 3: For training, run the code in the file zrun.bat with command prompt (terminal in macOS) - edit the batch, epoch, etc. (the argument --img 640 is fixed for pretrained model yolov5l). In case ./zrun.bat has Permission denied error, give the permission by running chmod +x zrun.bat and then ./zrun.bat. You can change the data augmentation configuration in file data/hyps/hyp.scratch-low.yaml

  • Step 4: For run detection, run the code in the file zdetect.bat with command prompt (terminal in macOS) - edit the --conf threshold and the path for image folder. For run detection on video, run the code in the file zvideo.bat with command prompt (terminal in macOS) - edit the --conf threshold and the path for video/ video folder.

  • Step 5: Check the results (for training or detect) inside folder runs

NOTE:You can download pretrained models (for 4/15 classes) from here

yolov5_ai_class's People

Contributors

azizkayumov avatar hahv avatar

Stargazers

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