GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - vietnh1009/QuickDraw: Implementation of Quickdraw - an online game developed by Google

BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
all_images
all_images
 
 
data
data
 
 
demo
demo
 
 
images
images
 
 
src
src
 
 
tensorboard
tensorboard
 
 
trained_models
trained_models
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
camera_app.py
camera_app.py
 
 
draw.py
draw.py
 
 
mediapipe_app.py
mediapipe_app.py
 
 
painting_app.py
painting_app.py
 
 
train.py
train.py
 
 

Repository files navigation

QuickDraw

GitHub stars GitHub forks GitHub license

Introduction

Here is my python source code for QuickDraw - an online game developed by google. with my code, you could:

  • Run an app which you could draw in front of a camera (If you use laptop, your webcam will be used by default)
  • Run an app which you could draw on a canvas

Camera app

In order to use this app, you need a pen (or any object) with blue, red or green color. When the pen (object) appears in front of camera, it will be catched and highlighted by an yellow circle. When you are ready for drawing, you need to press space button. When you want to stop drawing, press space again Below is the demo by running the sript camera_app.py:


Camera app demo

Drawing app

The script and demo will be released soon

Dataset

The dataset used for training my model could be found at [Quick Draw dataset] https://console.cloud.google.com/storage/browser/quickdraw_dataset/sketchrnn. Here I only picked up 20 files for 20 categories

Categories:

The table below shows 20 categories my model used:

apple book bowtie candle
cloud cup door envelope
eyeglasses guitar hammer hat
ice cream leaf scissors star
t-shirt pants lightning tree

Trained models

You could find my trained model at trained_models/whole_model_quickdraw

Training

You need to download npz files corresponding to 20 classes my model used and store them in folder data. If you want to train your model with different list of categories, you only need to change the constant CLASSES at src/config.py and download necessary npz files. Then you could simply run python3 train.py

Experiments:

For each class, I take the first 10000 images, and then split them to training and test sets with ratio 8:2. The training/test loss/accuracy curves for the experiment are shown below:

Requirements

  • python 3.6
  • cv2
  • pytorch
  • numpy

About

Implementation of Quickdraw - an online game developed by Google

Topics

cnncomputer-visioncv2deep-learningdeep-neural-networksdeeplearningimage-classificationneural-networkneural-networksopencvopencv-pythonpythonpython3pytorchquickdrawquickdraw-dataset

Resources

Readme
MIT license
Activity

Stars

1.1k stars

Watchers

38 watching

Forks

195 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.