Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

SpineNet-Pytorch

> 编程语言
Open source

This project is a kind of implementation of SpineNet(CVPR 2020) using mmdetection.

99 stars0 likes0 views
WebsiteGitHub

About

This project is a kind of implementation of SpineNet(CVPR 2020) using mmdetection.

SpineNet-Pytorch

SpineNet is a CVPR 2020 paper for object detection. This project is a kind of implementation of SpineNet using mmdetection.

It is based on the

  • the paper SpineNet: Learning Scale-Permuted Backbone for Recognition and Localization
  • official TensorFlow implementation

Models

Variant mAP Params FLOPs mAP in paper Params in paper FLOPs in paper
SpineNet-49S 39.1 11.15M 30.04B 39.9 12.0M 33.8B
SpineNet-49 42.7 28.31M 83.7B 42.8 28.5M 85.4B
SpineNet-96 —— 42.74M 261.35B 47.1 43.0M 265.4B
SpineNet-143 —— —— —— 48.1 66.9M 524.4B
SpineNet-190 —— —— —— —— 163.6M 1885B

Note: The parameters and flops are a little different from paper, so I think there are some difference between my code and official's code. More information about models can see in MODEL_DETAILS.md

Usage

  1. Install mmdetection

    This implementation is based on mmdetection(v1.1.0+8732ed9). Please refer to INSTALL.md for installation and dataset preparation.

  2. Copy the codes to mmdetection directory

    bash
    cp -r mmdet/ ${MMDETECTION_PATH}/
    cp -r configs/ ${MMDETECTION_PATH}/
  3. Prepare data

    The directories should be arranged like this:

    >   mmdetection
    >     ├── mmdet
    >     ├── tools
    >     ├── configs
    >     ├── data
    >     │   ├── coco
    >     │   │   ├── annotations
    >     │   │   ├── train2017
    >     │   │   ├── val2017
    >     │   │   ├── test2017
    
  4. Train D0 with 4 GPUs

    bash
    CONFIG_FILE=configs/spinenet/spinenet_49_B_8gpu.py
    ./ tools/dist_train.py ${CONFIG_FILE} 4
  5. Calculate parameters and flops

    bash
     python tools/get_flops.py ${CONFIG_FILE} --shape $SIZE $SIZE
  6. Test

    bash
    python tools/test.py ${CONFIG_FILE} ${CHECKPOINT_FILE} --out  ${OUTPUT_FILE} --eval bbox

More usages can reference mmdetection documentation.

Update log

  • [2020-05-30] Add SpineNet-49S results.
  • [2020-05-13] Update codes and results.
  • [2020-05-02] Create this repository.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Pythoncvpr2020detectionmmdetectionnas

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言