Giter Club home page Giter Club logo

draw-ill-help's Introduction

Draw, I'll Help

A progressive web application for drawing that automatically corrects hand-drawn circles and rectangles with the power of YOLOv5.

Check it out at https://illright.github.io/draw-ill-help.

Highlights

  • ๐ŸŽ๏ธ Completely serverless
  • ๐ŸŒ Works offline
  • ๐Ÿง  Runs YOLOv5 Nano in the background
  • ๐Ÿ—ƒ๏ธ Built-in dataset generator
  • ๐Ÿ˜Ž Automatic dark mode
  • ๐Ÿฐ Follows the principles of Feature-Sliced Design

Screenshots

Home page Drawing canvas Dataset generator

Home page

Drawing page

Dataset page

Model performance

Since the selected model is the smallest in the family of YOLOv5, it has very small inference times and file size. However, that also has an impact on its predictive capabilities.

See the charts below for the main performance characteristics of the model during training. The model had trained for around 350 epochs, early stopping with a patience value of 100 epochs due to no improvement at the target metric (0.9 of mAP (0.5:0.95) and 0.1 of mAP (0.5)). The horizontal axis represents the epochs (aka steps).

mAP (0.5) mAP (0.5:0.95) Precision Recall
Mean average precision graph, IoU threshold of 0.5. Starting low at 0.3, rising rapidly to 0.9 after 100 steps, staying around 0.93 until the end with a few sharp drops to almost 0.3 at 160, 195, 260 and 300 steps. Mean average precision graph, averaged across IoU thresholds from 0.5 to 0.95. Starting low at 0.1, rising almost linearly to 0.7 after 100 steps, peaking in 0.89 at step 250 with a few sharp drops to almost 0.1 at 160, 195, 260 and 300 steps. Precision graph. Increasing sharply from 0.2 to 0.8 in 20 steps, peaking in 0.92 at step 250 with a few sharp drops at the same steps where mAP had dropped. Recall graph. Starting low at 0.2, rising almost rapidly to 0.9 after 50 steps, frequently approaching 1.0, first at step 105, with a few sharp drops at the same steps where mAP had dropped.

Running locally

Grab the model.zip file from the latest release and unpack its contents into static/. Then run the usual commands:

pnpm i
pnpm dev

Training YOLOv5 yourself

The Jupyter notebook with explanations for the training process is available in the yolov5/ directory.

The recommended way to run the notebook is with Google Colaboratory. If you're using the GPU session and the free Colab account, the dataset of around 1.5k 416x416 images should take around two hours to train.

Open In Colab

License

The source code of this project is distributed under the terms of the MIT license. Click here to learn what that means.

draw-ill-help's People

Contributors

illright avatar aabounegm avatar dependabot[bot] 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.