← Open Source
zhangxiaosong18

FreeAnchor

FreeAnchor: Learning to Match Anchors for Visual Object Detection (NeurIPS 2019).

Model DevelopmentArchitecturePython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
668
Stars
108
Forks
+1
This week
1
Contributors
Created 2019-09-04 · Updated 2026-10-13 · #15253 today
Top developers

zhangxiaosong18/FreeAnchor is ranked 15,253 with 668 stars.

Same-category comparison

zhangxiaosong18/FreeAnchor is ranked 15,253 among these 8 peers; PaddlePaddle/PaddleYOLO is ranked 15,254.

Same-category comparison
NameRankMetrics
mks0601/ExAvatar_RELEASE15,240
Language:
Python
Stars:
669
Forks:
72
Description:
Official PyTorch implementation of "Expressive Whole-Body 3D Gaussian Avatar", ECCV 2024.
sail-sg/lorahub15,242
Language:
Python
Stars:
669
Forks:
44
Description:
[COLM 2024] LoraHub: Efficient Cross-Task Generalization via Dynamic LoRA Composition.
PetarV-/DGI15,246
Language:
Python
Stars:
668
Forks:
135
Description:
Deep Graph Infomax (https://arxiv.org/abs/1809.10341).
cnkuangshi/LightCTR15,248
Language:
C++
Stars:
668
Forks:
138
Description:
Lightweight and Scalable framework that combines mainstream algorithms of Click-Through-Rate prediction based computational DAG, philosophy of Parameter Server and Ring-AllReduce collective communication.
PaddlePaddle/PaddleYOLO15,254
Language:
Python
Stars:
667
Forks:
156
Description:
🚀🚀🚀 YOLO series of PaddlePaddle implementation, PP-YOLOE+, RT-DETR, YOLOv5, YOLOv6, YOLOv7, YOLOv8, YOLOv10, YOLO11, YOLOX, YOLOv5u, YOLOv7u, YOLOv6Lite, RTMDet and so on.
ShihaoZhaoZSH/Uni-ControlNet15,255
Language:
Python
Stars:
667
Forks:
42
Description:
[NeurIPS 2023] Uni-ControlNet: All-in-One Control to Text-to-Image Diffusion Models.
anilsathyan7/Portrait-Segmentation15,258
Language:
Jupyter Notebook
Stars:
667
Forks:
136
Description:
Real-time portrait segmentation for mobile devices.
nv-tlabs/DIB-R15,262
Language:
Python
Stars:
667
Forks:
102
Description:
Learning to Predict 3D Objects with an Interpolation-based Differentiable Renderer (NeurIPS 2019).
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryModel Development
SubcategoryArchitecture
KeywordsObject detection
Stars668
Forks108
Contributors1
Created date2019-09-04
Updated date2026-10-13
Stars in 1 day0
Stars in 7 days1
Rank15,253
Previous rank15,075
Rank change-178
7-day stars rank10,989
Previous 7-day stars rank11,048
7-day stars rank change59
Total stars rank15,429
Previous total stars rank15,406
Total stars rank change-23
README summary

FreeAnchor The Code for "FreeAnchor: Learning to Match Anchors for Visual Object Detection". This repository is based on maskrcnn-benchmark, and FreeAnchor has also been implemented in mmdetection, thanks @yhcao6 and @hellock. New performance on COCO We added multi-scale testing support and updated experiments. 7 | Link | | ResNet-101-FPN | 90k | 800 | N | 40. 9 | Link | | ResNet-101-FPN | 180k | [640, 800] | N | 42. 1 | Link | | ResNet-101-FPN | 180k | [480, 960] | N | 43. 9 | Link | | ResNet-101-FPN | 180k

| [480, 960] | Y | 44. 2 | Link | | ResNeXt-64x4d-101-FPN | 180k | [640, 800] | N | 44. 9 | Link | | ResNeXt-64x4d-101-FPN | 180k | [480, 960] | N | 45. 0 | Link | | ResNeXt-64x4d-101-FPN | 180k | [480, 960] | Y | 46. 3 | Link | **Notes:** We use 8 GPUs with 2 image / GPU. In multi-scale testing, we use image scales in {480, 640, 800, 960, 1120, 1280} and max_size are 1. Usage You will need to download the COCO dataset and configure your

own paths to the datasets. For that, all you need to do is to modify to point to the location where your dataset is stored. Config Files We provide four configuration files in the configs directory. yaml | ResNet-50-FPN | 90k | 800 | | configs/free_anchor_R-101-FPN_1x. yaml | ResNet-101-FPN | 90k | 800 | | configs/free_anchor_R-101-FPN_j2x. yaml | ResNet-101-FPN | 180k | [640, 800] | | configs/free_anchor_X-101-FPN_j2x. yaml | ResNeXt-64x4d-101

-FPN | 180k | [640, 800] | | configs/free_anchor_R-101-FPN_e2x. yaml | ResNet-101-FPN | 180k | [480, 960] | | configs/free_anchor_X-101-FPN_e2x. yaml | ResNeXt-64x4d-101-FPN | 180k | [480, 960] | Training with 8 GPUs Test on COCO test-dev Multi-scale testing Evaluate NMS Recall Citations Please consider citing our paper in your publications if the project helps your research.

Frequently asked questions

How many stars and forks are recorded?

zhangxiaosong18/FreeAnchor has 668 stars and 108 forks.

What is the repository rank?

zhangxiaosong18/FreeAnchor is ranked 15,253.

What language and category are recorded?

zhangxiaosong18/FreeAnchor has 668 stars, uses Python and belongs to Model Development.

Which repository is closest in rank?

zhangxiaosong18/FreeAnchor is compared with PaddlePaddle/PaddleYOLO, ranked 15,254 with 667 stars.

README

FreeAnchor

The Code for "FreeAnchor: Learning to Match Anchors for Visual Object Detection".

This repository is based on maskrcnn-benchmark, and FreeAnchor has also been implemented in mmdetection, thanks @yhcao6 and @hellock.

New performance on COCO

We added multi-scale testing support and updated experiments. The previous version is in this branch.

| Backbone | Iteration | Training scales | Multi-scale
testing | AP
(minival) | AP
(test-dev) | Model | | :-------------------: | :-------: | :-------------: | :--------------: | :-------------: | :--------------: | :--------: | | ResNet-50-FPN | 90k | 800 | N | 38.7 | 38.7 | Link | | ResNet-101-FPN | 90k | 800 | N | 40.5 | 40.9 | Link | | ResNet-101-FPN | 180k | [640, 800] | N | 42.7 | 43.1 | Link | | ResNet-101-FPN | 180k | [480, 960] | N | 43.2 | 43.9 | Link | | ResNet-101-FPN | 180k | [480, 960] | Y | 44.7 | 45.2 | Link | | ResNeXt-64x4d-101-FPN | 180k | [640, 800] | N | 44.5 | 44.9 | Link | | ResNeXt-64x4d-101-FPN | 180k | [480, 960] | N | 45.6 | 46.0 | Link | | ResNeXt-64x4d-101-FPN | 180k | [480, 960] | Y | 46.8 | 47.3 | Link |

Notes:

  • We use 8 GPUs with 2 image / GPU.
  • In multi-scale testing, we use image scales in {480, 640, 800, 960, 1120, 1280} and max_size are 1.666× than scales.

Installation

Check INSTALL.md for installation instructions.

Usage

You will need to download the COCO dataset and configure your own paths to the datasets.

For that, all you need to do is to modify maskrcnn_benchmark/config/paths_catalog.py to point to the location where your dataset is stored.

Config Files

We provide four configuration files in the configs directory.

Config File Backbone Iteration Training scales
configs/free_anchor_R-50-FPN_1x.yaml ResNet-50-FPN 90k 800
configs/free_anchor_R-101-FPN_1x.yaml ResNet-101-FPN 90k 800
configs/free_anchor_R-101-FPN_j2x.yaml ResNet-101-FPN 180k [640, 800]
configs/free_anchor_X-101-FPN_j2x.yaml ResNeXt-64x4d-101-FPN 180k [640, 800]
configs/free_anchor_R-101-FPN_e2x.yaml ResNet-101-FPN 180k [480, 960]
configs/free_anchor_X-101-FPN_e2x.yaml ResNeXt-64x4d-101-FPN 180k [480, 960]

Training with 8 GPUs

cd path_to_free_anchor
export NGPUS=8
python -m torch.distributed.launch --nproc_per_node=$NGPUS tools/train_net.py --config-file "path/to/config/file.yaml"

Test on COCO test-dev

cd path_to_free_anchor
python -m torch.distributed.launch --nproc_per_node=$NGPUS tools/test_net.py --config-file "path/to/config/file.yaml" MODEL.WEIGHT "path/to/.pth file" DATASETS.TEST "('coco_test-dev',)"

Multi-scale testing

cd path_to_free_anchor
python -m torch.distributed.launch --nproc_per_node=$NGPUS tools/multi_scale_test.py --config-file "path/to/config/file.yaml" MODEL.WEIGHT "path/to/.pth file" DATASETS.TEST "('coco_test-dev',)"

Evaluate NMS Recall

cd path_to_free_anchor
python -m torch.distributed.launch --nproc_per_node=$NGPUS tools/eval_NR.py --config-file "path/to/config/file.yaml" MODEL.WEIGHT "path/to/.pth file"

Citations

Please consider citing our paper in your publications if the project helps your research.

@inproceedings{zhang2019freeanchor,
  title   =  {{FreeAnchor}: Learning to Match Anchors for Visual Object Detection},
  author  =  {Zhang, Xiaosong and Wan, Fang and Liu, Chang and Ji, Rongrong and Ye, Qixiang},
  booktitle =  {Neural Information Processing Systems},
  year    =  {2019}
}
Nearby in the ranking
Similar items