资源算法faster_rcnn_sku110

faster_rcnn_sku110

2020-04-03 | |  32 |   0 |   0

This repository is based on VoVNet-v2

Faster R-CNN on SKU-110K dataset

Note

We measure the inference time of all models with batch size 1 on the same RTX2080Ti GPU machine.

  • pytorch1.4.0

  • CUDA 10.2

  • cuDNN 7.3

Lightweight with FPNLite

BackboneParam.lr schedinference timeAPAP75AP50download
MobileNetV2-0.5-64N/A1x0.03343.3144.6678.08model | metrics
MobileNetV2-0.5N/A1x0.03742.9344.2777.31model | metrics
MobileNetV23.5M3x0.04452.1158.7285.98model | metrics
ShuffleNetV2-0.5N/A1x0.03948.2452.9582.10model | metrics
ShuffleNetV2N/A1x0.04752.1458.7785.91model | metrics








V2-1911.2M1x0.3838.443.463.3model | metrics
V2-19-DW6.5M1x0.03132.533.957.7model | metrics
V2-19-Slim3.1M1x0.3637.942.563.0model | metrics
V2-19-Slim-DW1.8M3x0.3025.625.247.6model | metrics
  • 64 FPN.OUT_CHANNELS = 64

  • DW and Slim denote depthwise separable convolution and a thiner model with half the channel size, respectively.

FPN

BackboneParam.lr schedinference timeAPAP75AP50download
V2-19-FPN37.6M3xN/AN/AN/AN/Amodel | metrics








R-50-FPN51.2M3xN/AN/AN/AN/Amodel | metrics
V2-39-FPN52.6M3x0.07151.4757.585.5model | metrics

Using this command with --num-gpus 1

python /path/to/sku110/train_net.py --config-file /path/to/sku110/configs/<config.yaml> --eval-only --num-gpus 1 MODEL.WEIGHTS <model.pth>

Installation

As this repository is implemented as a extension form (detectron2/projects) upon detectron2, you just install detectron2 following INSTALL.md.

Prepare for SKU-110K dataset:

  • To download dataset, please visit here

  • Extract the file downloaded to datasets/sku110/images

  • Extract datasets/sku110/Annotations.zip, there are 2 folders Annotations and ImageSets

Training

To train a model, run

python /path/to/sku110/train_net.py --config-file /path/to/sku110/configs/<config.yaml>

For example, to launch end-to-end Faster R-CNN training with VoVNetV2-39 backbone on 8 GPUs, one should execute:

python /path/to/sku110/train_net.py --config-file /path/to/sku110/configs/faster_rcnn_V_39_FPN_3x.yaml --num-gpus 8

Evaluation

Model evaluation can be done similarly:

python /path/to/sku110/train_net.py --config-file /path/to/sku110/configs/faster_rcnn_V_39_FPN_3x.yaml --eval-only MODEL.WEIGHTS <model.pth>

Visualization

To visual the result, run

python /path/to/sku110/demo.py --config-file /path/to/sku110/configs/faster_rcnn_V_39_FPN_3x.yaml --input image.jpg --output image.jpg MODEL.WEIGHTS <model.pth>

Citing VoVNet

If you use VoVNet, please use the following BibTeX entry.

@inproceedings{lee2019energy,  title = {An Energy and GPU-Computation Efficient Backbone Network for Real-Time Object Detection},  author = {Lee, Youngwan and Hwang, Joong-won and Lee, Sangrok and Bae, Yuseok and Park, Jongyoul},  booktitle = {Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops},  year = {2019}}


上一篇:cascaded-faster-rcnn

下一篇:kaldi-android-demo

用户评价
全部评价

热门资源

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • inferno-boilerplate

    This is a very basic boilerplate example for pe...