GithubHelp home page GithubHelp logo

muskanmahajan37 / svhn-detection-tf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ashishpatel26/svhn-detection-tf

0.0 0.0 0.0 8.67 MB

Object detection on SVHN dataset in tensorflow using efficientdet

License: MIT License

Python 4.80% Jupyter Notebook 95.20%

svhn-detection-tf's Introduction

svhn-detection-tf

Object detection on SVHN dataset in tensorflow using efficientdet

Getting Started

First of all you need to call pip install git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI since there is no official PiPy version. Please verify the validity of your changes before pushing by running $ python train.py --test.

Sanity Checks

The classification loss should start at ~6.0 and should get to at most ~0.1. The regression loss should start at ~0.3 and should get to ~0.07. One epoch should take ~1 minute.

Experiments

TODO: add a table with results

Tasks

Tasks should be completed in chronological order.

Verify correct implementation of Straka's metric

Verify that predictions are computed correctly (it returns a sane value) and the val_score is computed correctly from the obtained predictions.

Implement COCO metrics

COCO metric should validate the performance of the model during training and after the training finished. The implementation could be based on https://github.com/google/automl/blob/master/efficientdet/coco_metric.py and could used the predict function (similar to straka metric). In the fit function, the predictions are already computed. The metric could use pycocotools.

Implement augmentations from efficientdet paper

Augmentations should be the following (if I remember correctly): translation, scale. Bounding boxes should be transformed accordingly. The correct behaviour should be verified in jupiter with bounding boxes drawn over the picture

Implement autoaugment

Follow https://github.com/google/automl/blob/master/efficientdet/aug/autoaugment.py

Experiment with different image_size

Make sure, that the smallest conv layer in efficientdet has at least 4 pixels. Increase/decrease number of efficientdet layers if needed

Experiment with different efficientdet architecture

Try using more/less features from the efficientdet or even replace the efficientdet with a single output and map it to multi-sized anchors.

Experiment with different learning rate/wd/momentum/grad_clip

Finetune object detection

Experiment with iouthreshold and scorethreshold to obtain maximal performance out of the network. Also finetune/replace the combined non-maximum suppression (read the docs).

Evaluate on Straka's test set

Implement Stochastic Depth

!!! stochastic depth is not implemented in the efficientdet paper!!!

Finetune performance

Computing metrics could be done in better way mAP could be implemented as a keras metric Data pipeline could be optimized

svhn-detection-tf's People

Contributors

jkulhanek avatar patrikvalkovic avatar uhlajs avatar vastlik 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.