Giter Site home page Giter Site logo

yoloaccuracy's Introduction

YoloAccuracy

The project aims to benchmark the accuracy of YOLOv5 using libjxl.

Read, watch or cite our paper

Installation

  1. Install libjxl on your computer. cjxl and djxl needs to be available on your path.
  2. Install the dependencies with pip install -r requirements.txt

Primary Data Generation

The API of the script can be found using python src/generate_primary_data.py -h. The script follows these steps :

  1. Load a raw or lossless image (e.g. PNG)
  2. Resize the image (if necessary) and keep the aspect ratio
  3. Save the image as JPEG XL (JXL) according to a quality factor
  4. Convert the JXL to a lossless format (PNG)
  5. Detect the objects in the saved JXL with YOLOv5
  6. Get the inference speed, the predicted classes, the confidence (%) and the actual classes
  7. Save the results in a JSON file

Notes

The script is meant to work with the People Overhead dataset. To use another dataset, dataset_utils.py should be updated to retrieve the proper actual classes.

Accuracy Visualization

The following script will produce a graphic of the predictions accuracy according to the height and the quality factor. The API of the script can be found using python src/visualize_accuracy.py -h.

What could be improved

  • Log and handle errors
  • Automated tests

yoloaccuracy's People

Contributors

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