HyperAIHyperAI

Command Palette

Search for a command to run...

a month ago

Focal Loss for Dense Object Detection

Focal Loss for Dense Object Detection

Abstract

The highest accuracy object detectors to date are based on a two-stageapproach popularized by R-CNN, where a classifier is applied to a sparse set ofcandidate object locations. In contrast, one-stage detectors that are appliedover a regular, dense sampling of possible object locations have the potentialto be faster and simpler, but have trailed the accuracy of two-stage detectorsthus far. In this paper, we investigate why this is the case. We discover thatthe extreme foreground-background class imbalance encountered during trainingof dense detectors is the central cause. We propose to address this classimbalance by reshaping the standard cross entropy loss such that itdown-weights the loss assigned to well-classified examples. Our novel FocalLoss focuses training on a sparse set of hard examples and prevents the vastnumber of easy negatives from overwhelming the detector during training. Toevaluate the effectiveness of our loss, we design and train a simple densedetector we call RetinaNet. Our results show that when trained with the focalloss, RetinaNet is able to match the speed of previous one-stage detectorswhile surpassing the accuracy of all existing state-of-the-art two-stagedetectors. Code is at: https://github.com/facebookresearch/Detectron.

Code Repositories

trongnghia00/darknet
Mentioned in GitHub
fizyr/keras-retinanet
tf
Mentioned in GitHub
neshitov/UNet
pytorch
Mentioned in GitHub
vantupham/darknet
Mentioned in GitHub
yhenon/pytorch-retinanet
pytorch
Mentioned in GitHub
feidfoe/AdjustBnd4Imbalance
pytorch
Mentioned in GitHub
simonlevine/11785-project
pytorch
Mentioned in GitHub
unsky/focal-loss
mxnet
Mentioned in GitHub
mic-dkfz/medicaldetectiontoolkit
pytorch
Mentioned in GitHub
tianhai123/yolov3
Mentioned in GitHub
AlexeyAB/darknet
tf
Mentioned in GitHub
kyunghwan/darknet_v3
Mentioned in GitHub
anookeen/yolo
Mentioned in GitHub
daveboat/pytorch_focal_loss
pytorch
Mentioned in GitHub
Yashgh7076/Eluvio-ML-Scene-Segmentation
pytorch
Mentioned in GitHub
witwickey/darknet
tf
Mentioned in GitHub
Viveksbawa/SARAS-ESAD-Baseline
pytorch
Mentioned in GitHub
oorrppp2/darknet-pose
tf
Mentioned in GitHub
Guillem96/efficientdet-tf
tf
Mentioned in GitHub
teemoeric/projet
Mentioned in GitHub
DonCorle0ne/damage_detection
Mentioned in GitHub
IPLI/IPLI_Server
tf
Mentioned in GitHub
GXYM/Focal-loss
tf
Mentioned in GitHub
artemmavrin/focal-loss
tf
Mentioned in GitHub
cameronchoi/r3det-copy
pytorch
Mentioned in GitHub
toufiksk/darknet
Mentioned in GitHub
MariefW/6.-trainingYOLO
tf
Mentioned in GitHub
Shraddha2013/darknetyolo
tf
Mentioned in GitHub
stevenzhou2017/darknet_AlexeyAB
tf
Mentioned in GitHub
Popoooo/darknet_test
tf
Mentioned in GitHub
artxtech/darknet-rnn
tf
Mentioned in GitHub
minhdua/PHONES
tf
Mentioned in GitHub
kongzhiyou/darknet-master
tf
Mentioned in GitHub
ryubidragonfire/mydarknet
Mentioned in GitHub
solapark/darknet_partdet
tf
Mentioned in GitHub
dishen12/py03
pytorch
Mentioned in GitHub
Wangxy2180/darknetKinectDetect
tf
Mentioned in GitHub
DInesh1234-wq/tyredataset
pytorch
Mentioned in GitHub
rnirdhar/yoloTestOneClass
Mentioned in GitHub
li-yibing/oceannet
Mentioned in GitHub
jfc4050/detect-to-track
pytorch
Mentioned in GitHub
saednasir/Helmet_Yolo
Mentioned in GitHub
Jo-dsa/SemanticSeg
pytorch
Mentioned in GitHub
RichardMathewsII/YOLBO
Mentioned in GitHub
simonlevine/clinical-longformer
pytorch
Mentioned in GitHub
MIC-DKFZ/RegRCNN
pytorch
Mentioned in GitHub
solapark/darknet_interpark
tf
Mentioned in GitHub
hweersot/darknet-custom
tf
Mentioned in GitHub
williamccondori/YOLO-NFPA
Mentioned in GitHub
ermuur/darknet
Mentioned in GitHub
HongSic/DarknetAI
tf
Mentioned in GitHub
skbadhsm/darknet2
tf
Mentioned in GitHub
NVIDIA/retinanet-examples
pytorch
Mentioned in GitHub
Shraddha2013/customyolo
tf
Mentioned in GitHub
rnirdhar/yoloMultiClass
Mentioned in GitHub
binhdv92/darknet_kriyeng
tf
Mentioned in GitHub
Shraddha2013/darknett
tf
Mentioned in GitHub
YIZHE12/robots
Mentioned in GitHub
IlyaOvodov/AngelinaReader
pytorch
Mentioned in GitHub
zj463261929/darknet_mAP
Mentioned in GitHub
rebeccagio/object_detection
Mentioned in GitHub
hyang0129/foodclassapp
tf
Mentioned in GitHub
ghadahamed/darknet
tf
Mentioned in GitHub
solapark/darknet_partdet_tmp
tf
Mentioned in GitHub
CahideSara/deneme
tf
Mentioned in GitHub
kalelpark/ral
pytorch
Mentioned in GitHub
hankpark0706/darknet
Mentioned in GitHub
ghaniskn/GCorp-Darknet
Mentioned in GitHub
istvanmegyeri/audio_tagging
Mentioned in GitHub
patelmiteshn/darknet
Mentioned in GitHub
khaled2ahmed/k2a
tf
Mentioned in GitHub
lhcezx/Graph-FPN
tf
Mentioned in GitHub
zhongzisha/object_detection
tf
Mentioned in GitHub
aminekha/AI-For-2022
tf
Mentioned in GitHub
dc17540/darknet
tf
Mentioned in GitHub
nguoido/Yolo-alexeyAB
tf
Mentioned in GitHub
darshans0200/YOLOTest
Mentioned in GitHub
yudie433/darknet
Mentioned in GitHub
csm-kr/Retinanet_pytorch
pytorch
Mentioned in GitHub
soccergame/darknet
Mentioned in GitHub
tryolabs/luminoth
tf
Mentioned in GitHub
cloudnine148/PHC_2nd_SPC
Mentioned in GitHub
ruinmessi/RFBNet
pytorch
Mentioned in GitHub
mathieuorhan/darknet
Mentioned in GitHub
xiamenwcy/extended-caffe
Mentioned in GitHub
xuanyuzhou98/SqueezeSeg
tf
Mentioned in GitHub
yytang2012/darknet
Mentioned in GitHub
fabiofumarola/ultrayolo
tf
Mentioned in GitHub
Maskify/darknet
tf
Mentioned in GitHub
rahowa/catboost_focal_loss
Mentioned in GitHub
tallysprado/myDarknet
tf
Mentioned in GitHub
joheras/darknet-colab
tf
Mentioned in GitHub
mkocabas/focal-loss-keras
tf
Mentioned in GitHub
tensorflow/models
tf
Mentioned in GitHub
KingBoyBIT/yolov3test
Mentioned in GitHub
pierluigiferrari/ssd_keras
tf
Mentioned in GitHub
iskandari/darknet
tf
Mentioned in GitHub
Shraddha2013/mydarknetyolo
tf
Mentioned in GitHub
unsky/RetinaNet
mxnet
Mentioned in GitHub
Lmath11/darknet
tf
Mentioned in GitHub
jolibrain/caffe
Mentioned in GitHub
jndeng/DACSDC-DeepZ
Mentioned in GitHub
EMsnap/RobotSorting
Mentioned in GitHub
wodyjowski/colab-training
tf
Mentioned in GitHub
ShaojieJiang/tldr
pytorch
Mentioned in GitHub
rainofmine/Face_Attention_Network
pytorch
Mentioned in GitHub
agutuyen-dev/darknet
tf
Mentioned in GitHub
AdeelH/pytorch-multi-class-focal-loss
pytorch
Mentioned in GitHub
edgarrt/custom_darknet
tf
Mentioned in GitHub
eric-erki/yolov3
Mentioned in GitHub
jiajunhua/facebookresearch-Detectron
caffe2
Mentioned in GitHub
Shraddha2013/myfileyolo
tf
Mentioned in GitHub
bharatsush/object_detection
Mentioned in GitHub
MIC-DKFZ/DetectionAndRegression
pytorch
Mentioned in GitHub
Shraddha2013/darknetyolo3
tf
Mentioned in GitHub
OFRIN/Tensorflow_RetinaFace
tf
Mentioned in GitHub
hhuaibo/darknet
tf
Mentioned in GitHub
Stephenfang51/Focal_loss_turtorial
pytorch
Mentioned in GitHub
vuongtrannguyenkhoi/darknet
Mentioned in GitHub
fznsakib/great-ape-behaviour-detector
pytorch
Mentioned in GitHub
viethungluu/OCRetina
tf
Mentioned in GitHub
JaryHuang/awesome_SSD_FPN_GIoU
pytorch
Mentioned in GitHub
DaloroAT/first_break_picking
pytorch
Mentioned in GitHub
Sushma07/dancedarknet
tf
Mentioned in GitHub
FL77N/RetinaNet-Based-on-PPdet
paddle
Mentioned in GitHub
Shraddha2013/darknetyol
tf
Mentioned in GitHub
lyk19940625/MyRFBNet
pytorch
Mentioned in GitHub
AtlasCoCo/Darknet
tf
Mentioned in GitHub
eric-erki/darknet
Mentioned in GitHub
hisiter97/darknet
tf
Mentioned in GitHub
e0015274/darknet
tf
Mentioned in GitHub
llsouder/screen-ocr
Mentioned in GitHub
yijiaceline/Final-Project-Group4
pytorch
Mentioned in GitHub
ChristianMarzahl/ObjectDetection
pytorch
Mentioned in GitHub
Guillem96/efficient-net-tf
tf
Mentioned in GitHub
sdu2011/darknet_alexyab
tf
Mentioned in GitHub
yuliani29/yolotraining
Mentioned in GitHub
ZTao-z/multiflow-resnet-ssd
pytorch
Mentioned in GitHub
sudharavali/objectDetectionYOLO
tf
Mentioned in GitHub
LIU1514/Yolov3-
tf
Mentioned in GitHub
YIZHE12/fashiontags
tf
Mentioned in GitHub
zzhuolun/IRL
pytorch
Mentioned in GitHub
497626895/darknet
tf
Mentioned in GitHub
dwaithe/darknet3AB
tf
Mentioned in GitHub
artynet/darknet-alexeyAB
tf
Mentioned in GitHub
benihime91/pytorch_retinanet
pytorch
Mentioned in GitHub
haithink/myWindowsDarknet
Mentioned in GitHub
facebookresearch/detectron
Official
pytorch
Mentioned in GitHub
pengrenlai/RetinaNet-tensorflow
tf
Mentioned in GitHub
magnificent1208/r3det-on-mmdetection
pytorch
Mentioned in GitHub
xytpai/retinanet
pytorch
Mentioned in GitHub
kuangliu/pytorch-fpn
pytorch
Mentioned in GitHub
binhdv92/darknet
tf
Mentioned in GitHub
dtthi/darknetAlexeyAB
tf
Mentioned in GitHub
Yonder-OSS/D3M-Primitives
tf
Mentioned in GitHub
saber2011/darknet
tf
Mentioned in GitHub
annabellachen/newDarknet
tf
Mentioned in GitHub
karan96/NewOne
tf
Mentioned in GitHub
edwardclem/deepscribe
pytorch
Mentioned in GitHub
ZhenJie-Zhang/darknet_shoe
tf
Mentioned in GitHub
kawshik8/DL-project
pytorch
Mentioned in GitHub
delmalih/MIAS-mammography-obj-detection
pytorch
Mentioned in GitHub
sidify/resnet_focal_loss
Mentioned in GitHub
ahhan02/darknet-alex
tf
Mentioned in GitHub
Techyee/darknet_resource
tf
Mentioned in GitHub
PolarisAlpha/darknet
Mentioned in GitHub
juergenlandauer/Maya-Challenge
pytorch
Mentioned in GitHub
solapark/da_yolo
tf
Mentioned in GitHub
DrMMZ/RetinaNet
tf
Mentioned in GitHub
mdv3101/darknet-yolov3
Mentioned in GitHub
hamzaMahdi/darknet
tf
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
2d-object-detection-on-sardet-100kRetinaNet
box mAP: 47.4
dense-object-detection-on-sku-110kRetinaNet
AP: 45.5
AP75: .389
face-identification-on-trillion-pairs-datasetF-Softmax
Accuracy: 39.80
face-verification-on-trillion-pairs-datasetF-Softmax
Accuracy: 37.14
long-tail-learning-on-coco-mltFocal Loss(ResNet-50)
Average mAP: 49.46
long-tail-learning-on-egteaFocal loss (3D- ResNeXt101)
Average Precision: 59.09
Average Recall: 59.17
long-tail-learning-on-voc-mltFocal Loss(ResNet-50)
Average mAP: 73.88
object-counting-on-carpkRetinaNet (2018)
MAE: 24.58
object-detection-on-cocoRetinaNet (ResNet-101-FPN)
AP50: 59.1
AP75: 42.3
APL: 50.2
APM: 42.7
APS: 21.8
Hardware Burden: 4G
Operations per network pass:
box mAP: 39.1
object-detection-on-cocoRetinaNet (ResNeXt-101-FPN)
AP50: 61.1
AP75: 44.1
APL: 51.2
APM: 44.2
APS: 24.1
Hardware Burden: 4G
Operations per network pass:
box mAP: 40.8
object-detection-on-coco-oRetinaNet (ResNet-50)
Average mAP: 16.6
Effective Robustness: 0.18
pedestrian-detection-on-tju-ped-campusRetinaNet
ALL (miss rate): 44.34
HO (miss rate): 71.31
R (miss rate): 34.73
R+HO (miss rate): 42.26
RS (miss rate): 82.99
pedestrian-detection-on-tju-ped-trafficRetinaNet
ALL (miss rate): 41.40
HO (miss rate): 61.60
R (miss rate): 23.89
R+HO (miss rate): 28.45
RS (miss rate): 37.92

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Focal Loss for Dense Object Detection | Papers | HyperAI