GithubHelp home page GithubHelp logo

angzz / fcos-gluon-cv Goto Github PK

View Code? Open in Web Editor NEW
29.0 5.0 7.0 1.17 MB

FCOS: Fully Convolutional One-Stage Object Detection

License: Apache License 2.0

Makefile 0.02% Python 87.13% CMake 0.13% C++ 12.68% Shell 0.04%
computer-vision object-detection gluon-cv fcos

fcos-gluon-cv's Introduction

FCOS: Fully Convolutional One-Stage Object Detection

This is an unofficial implementation of FCOS in a gluon-cv style, we implemented this anchor-free framework in a fully Gluon API, please stay tuned!

Main Results

Model Backbone Train Size Batch Size AP(val)
fcos_resnet50_v1_coco ResNet50-V1 800 1 -
fcos_resnet50_v1b_coco ResNet50-V1b 800 1 33.1
fcos_resnet101_v1d_coco ResNet101-V1d 800 1 37.5

Note: To be update.

Installation

  1. Install cuda 10.0 and mxnet 1.4.0.
sudo pip3 install mxnet-cu100==1.4.0.post0
  1. Clone the code, and install gluoncv with setup.py.
cd fcos-gluon-cv
sudo python3 setup.py build
sudo python3 setup.py install

Preparation

  1. Download COCO2017 datasets follow the official tutorials and create a soft link.
ln -s $DOWNLOAD_PATH ~/.mxnet/datasets/coco

You can also download from cocodataset and execute the command above.

  1. More preparations can also refer to GluonCV.

  2. All experiments are performed on 8 * 2080ti GPU with Python3.5, cuda10.0 and cudnn7.5.0.

Structure

* Model : $ROOT/gluoncv/model_zoo/fcos
* Train & valid scripts : $ROOT/scripts/detection/fcos
* Data Transform : $ROOT/gluoncv/data/transform/presets

Training & Inference

  1. Clone the training scripts here, then train fcos_resnet50_v1b_coco with:
python3 train_fcos.py --network resnet50_v1b --gpus 0,1,2,3,4,5,6,7 --num-workers 32 --batch-size 8 --log-interval 10
  1. Clone the eval scripts here, then validate fcos_resnet50_v1b_coco with:
python3 eval_fcos.py --network resnet50_v1b --gpus 0,1,2,3,4,5,6,7 --num-workers 32 --pretrained $SAVE_PATH/XXX.params

Reference

  • FCOS: Zhi Tian, Chunhua Shen, Hao Chen, Tong He.
    "FCOS: Fully Convolutional One-Stage Object Detection." arXiv (2019). [paper] [official-code] [mmdet]

fcos-gluon-cv's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

fcos-gluon-cv's Issues

Getting Zeros from target generator for cls_targets, ctr_targets and box_targets

[0. 0. 0. ... 0. 0. 0.] <NDArray 20938 @cpu(0)> [0. 0. 0. ... 0. 0. 0.] <NDArray 20938 @cpu(0)> [[0. 0. 0. 0.] [0. 0. 0. 0.] [0. 0. 0. 0.] ... [0. 0. 0. 0.] [0. 0. 0. 0.] [0. 0. 0. 0.]] <NDArray 20938x4 @cpu(0)> [[ 0. 0.] [128. 0.] [256. 0.] ... [976. 992.] [984. 992.] [992. 992.]] <NDArray 20938x2 @cpu(0)>
I'm getting this from the target generator for cls_targets, ctr_targets, box_targets, cor_targets. My input image is (1000, 1000, 3) and the boxes are [291, 114, 901, 778, 60], [504, 263, 780, 490, 15], [461, 222, 829, 579, 20], [ 24, 205, 389, 800, 15]
What is the possible cause for this?
I'm using resnet50 as the base.

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.