Git Product home page Git Product logo

focal-loss-implement-on-tensorflow's Introduction

Focal-Loss-implement-on-Tensorflow

This is a multi-label version implementation(unofficial version) of focal loss proposed on Focal Loss for Dense Object Detection by KM He. After implement focal loss formular I have tested on SSD_MobileNet Network on COCO datasets. The following is about the tensorboard results and analysis:

  1. The [email protected] of focal loss implementation(num_hard_example=20000, max_neg_per_pos=1000, max_total_detection=20000) are about 3% higher than original model(num_hard_example=2000, max_neg_per_pos=100, max_total_detection=100), about 29% and 26% respectively.

MAP and Loss MAP of some cates

ย 2. However, why do focal loss can achive so much improvement? Here we show some evaluation images and then we may find the answer. Focal loss do not detect the low percentage object(about 0.5~0.8), this may have a good precision but bad recall. But the core viewpoint of the paper is focus on the hard examples while ignore the easy examples. I don't know the reason. Can anybody tell me the reason???

Eval image result comp

Conclusion: In my opinion, maybe Focal loss can have a better precision(MAP) but worse recall.
Application: If you just want to have a better MAP, the focal loss is a good choice.

focal-loss-implement-on-tensorflow's People

Contributors

ailias avatar

Watchers

James Cloos 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.