Giter VIP home page Giter VIP logo

adomvi's Introduction

Automated Detection of Military Vehicles from Video Input (ADOMVI)

Introduction

This repository contains notebooks and resources used to train a state-of-the-art military vehicle tracker. Its main focus is on building a dataset of relevant images and annotations to fine-tune pre-trained object detection models, namely a Yolov8 model. The yolo-tracking library is used to provide the multi-object tracker algorithm.

After a first pass at training such a model from images available from object detection datasets, we explore other options to improve the performance of our model. We use scraping tools to collect more images of military vehicles from Google images. We also extend the classes to be able to discriminate between different types of vehicles: Armoured Fighting Vehicle (AFV), Armoured Personnel Carrier (APC), Military Engineering Vehicle (MEV) and Light armoured vehicle (LAV). We provide a sample annotated dataset to test performance improvement from extending our training data.

We also explore using diffusion models and the dreambooth method to generate new training images in different scenes and conditions.

Contents

  • The adomvi directory contains jupyter notebooks to create a dataset of military vehicles, use this dataset to finetune a Yolov8 model for object detection, and to run object tracking on video inputs.
  • The resources directory contains video samples for vehicle detection task.

Installation

You can install the project locally using poetry with

poetry install

Run the notebooks

You can run the notebooks from this project in Google Colab to benefit from GPU acceleration:

  • 01 - Train a YOLOv8 model with a custom dataset: Open In Colab
  • 02 - Run tracking using the trained model on a sample video: Open In Colab
  • 03 - Scrape images from google to extend the training dataset: Open In Colab
  • 04 - Fine tune Dreambooth to generate images of a tank: Open In Colab

Tracking of military vehicles with multi-class object detection model

Some sample results of tracking different types of military vehicles (AFV, APC, MEV, LAV) using a finetuned yolov8-large model.

Generating diversity in our training dataset using Stable Diffusion and dreambooth

adomvi's People

Contributors

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