Giter Site home page Giter Site logo

featurealign's Introduction

Features Alignment In Anchor-Free Object Detection

Motivation

motivation

Compared with our method, the spatial distributions of the classification heatmap and the regression heatmap in other methods are not consistent. Although there exists a tendency of gradual contraction and convergence, the two distributions are still not effectively aligned. In addition, other methods have inevitably recognized some noisy points with inconsistent performances in classification and regression as the foreground, which confuse the network in the training phase. In contrast, our method produces a foreground map that is more focused on good sampling points with high regression and classification scores simultaneously.

Pipeline

pipeline

This is a PyTorch implementation version of the paper Features Alignment In Anchor-Free Object Detection. In this paper, we focus on solving the feature misalignment problem for anchor-free object detection methods, and the main contributions include

  • G-RFA
  • feature filter (FF)
  • multi-layer quality distributions (MDQ) and corresponding quality weighting mechanism

More details can be found in the paper.

Get Started

  1. install cvpods following the instructions
# Install cvpods
git clone https://github.com/Megvii-BaseDetection/cvpods
cd cvpods 
## build cvpods (requires GPU)
pip install -r requirements.txt
python setup.py build develop
## preprare data path
mkdir datasets
ln -s /path/to/your/coco/dataset datasets/coco
  1. replace the fpn.py in the cvpods project following the giving path.

  2. run the project

cd feature_align.coco

# train
pods_train --num-gpus 4

#train from exist weight, then the code will retrained from the 'last_checkpoint'
pods_train --num-gpus 4 --resume

# test
pods_test --num-gpus 4
# test with provided weights
pods_test --num-gpus 4 MODEL.WEIGHTS /path/to/your/model.pth

Results

Our method consistently surpasses the other methods by changing the backbone and the multi-scale training interval. Only with the improvements on label assignment strategy (FF anf MDQ), our method can bring the detection performance from our baseline method (Autoassign) to a competitive level of 47.2%AP on ResNeXt-101-64x4d. Combined with G-RFA, we achieve 49.3% AP with the backbone of ResNeXt-10164x4d, surpassing other related methods.

Model Multi-scale training Multi-scale testing Backbone AP
Autoassign (baseline) No No Res50 40.4
Ours No No Res50 41.1
Ours† No No Res50 43.5
Autoassign (baseline) yes No Res101 44.5
Ours yes No Res101 45.3
Ours† yes No Res101 46.8
Ours† w/ Wms1 yes No Res101 46.9
Ours† w/ Wms2 yes No Res101 47.4
Autoassign (baseline) yes No ResXt101-64x4d 46.5
Ours yes No ResXt101-64x4d 47.2
Ours† yes No ResXt101-64x4d 48.0
Ours† w/ Wms1 yes No ResXt101-64x4d 48.5
Ours† w/ Wms2 yes No ResXt101-64x4d 49.3

The results are evaluated on the COCO val split and COCO test-dev, and more results can be found in the paper.

Acknowledgement

This repo is developed based on cvpods and AutoAssign. Please check cvpods and AutoAssign for more details and features.

featurealign's People

Contributors

gfengg avatar

Stargazers

Zhaoyan Fang avatar  avatar

Watchers

 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.