GithubHelp home page GithubHelp logo

haoyue-code / mmdetection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gyyang23/afpn

0.0 0.0 0.0 13.89 MB

Shell 0.01% C++ 0.01% Python 22.64% CSS 0.01% Makefile 0.01% CMake 0.01% Batchfile 0.01% Jupyter Notebook 77.29% Dockerfile 0.02%

mmdetection's Introduction

AFPN: Asymptotic Feature Pyramid Network for Object Detection (arXiv)

By Guoyu Yang, Jie Lei, Zhikuan Zhu, Siyu Cheng, Zunlei Feng, Ronghua Liang

This project is based on mmdetection.

Environment

mmengine==0.7.3
mmcv==2.0.0
mmdet==3.0.0
mmyolo==0.5.0

Install

Please refer to mmdetection for installation.

Dataset

AFPN
├── mmdetection
├── data
│   ├── coco
│   │   ├── annotations
│   │   ├── train2017
│   │   ├── val2017
│   │   ├── test2017
├── faster-rcnn_r50_afpn_1x_coco.py
├── train.py
├── test.py

Training

Single gpu for train:

CUDA_VISIBLE_DEVICES=0 python ./mmdetection/tools/train.py faster-rcnn_r50_afpn_1x_coco.py --work-dir ./weight/

Multiple gpus for train:

CUDA_VISIBLE_DEVICES=0,1 ./mmdetection/tools/dist_train.sh faster-rcnn_r50_afpn_1x_coco.py 2 --work-dir ./weight/

Train in pycharm: If you want to train in pycharm, you can run it in train.py.

see more details at mmdetection.

Testing

CUDA_VISIBLE_DEVICES=0 _DEVICES=1 python ./mmdetection/tools/test.py faster-rcnn_r50_afpn_1x_coco.py <CHECKPOINT_FILE>

For example,

CUDA_VISIBLE_DEVICES=0 python ./mmdetection/tools/test.py faster-rcnn_r50_afpn_1x_coco.py ./weight/afpn_weight.pth

Test in pycharm: If you want to test in pycharm, you can run it in test.py.

see more details at mmdetection.

Results on MS COCO val2017

Detector Backbone Image size GFLOPs Params (M) AP AP0.5 AP0.75 Weight
Faster R-CNN + FPN ResNet-50 640 x 640 91.3 41.8 37.4 57.3 40.3 None
Faster R-CNN + AFPN ResNet-50 640 x 640 89.7 49.8 39.0 57.6 42.0 Link
YOLOv5-n + YOLOv5PAFPN CSPDarknet 640 x 640 2.26 1.87 28.0 45.9 29.4 Link
YOLOv5-n + YOLOv5AFPN CSPDarknet 640 x 640 2.18 1.67 29.1 45.8 30.7 Link

Citations

If you find AFPN useful in your research, please consider citing:

@article{yang2023afpn,
  title={AFPN: Asymptotic Feature Pyramid Network for Object Detection},
  author={Yang, Guoyu and Lei, Jie and Zhu, Zhikuan and Cheng, Siyu and Feng, Zunlei and Liang, Ronghua},
  journal={arXiv preprint arXiv:2306.15988},
  year={2023}
}

mmdetection's People

Contributors

gyyang23 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.