Coder Social home page Coder Social logo

tdfssd's Introduction

TDFSSD: Top-Down Feature Fusion Single Shot MultiBox Detector

By Haodong Pan, Jue Jiang, Guangfeng Chen

Introduction

This is the code for our accepted manuscript in Signal Processing: Image Communication. In brief, this is a SSD based approach for object detection across different scales.
If you use this code, please cite our paper.

Prerequisities

Python3.6, PyTorch0.4.1, and NVIDIA GPUs

Installation

./make.sh

Check your GPU architecture support in utils/build.py, line 131. Default is:

'nvcc': ['-arch=sm_61',

Then download the dataset by following the instructions below and install opencv.

conda install opencv

Datasets

For convenience, we provide simple VOC and COCO dataset loader.

VOC Dataset

Download VOC2007 trainval & test
# specify a directory for dataset to be downloaded into, else default is ~/data/
sh data/scripts/VOC2007.sh # <directory>
Download VOC2012 trainval
# specify a directory for dataset to be downloaded into, else default is ~/data/
sh data/scripts/VOC2012.sh # <directory>

COCO Dataset

Install the MS COCO dataset at /path/to/coco from official website, default is ~/data/COCO. It should have this basic structure

$COCO/  
$COCO/annotations/
$COCO/cache/
$COCO/cocoapi/
$COCO/images/
$COCO/test2017/
$COCO/train2017/
$COCO/val2017/

Training

  • Download the fc-reduced VGG-16 PyTorch base network weights at our BaiduYun Driver PW:1234
  • The modified resnet-101 PyTorch base network weights file is available at our BaiduYun Driver PW:1234
  • Place the weights files in 'TDFSSD/weights'
  • To train TDFSSD with the following command:
python train_test.py -d VOC -s 300 -we 6
  • Note:
    • -d: datasets, VOC or COCO
    • -s: image size, 300 or 512
    • -we: warm epoch
    • 'resnet_trian_test.py' is used for training with the resnet as backbone
    • The detail options can be found in the 'train_test.py' and 'resnet_trian_test.py'

Evaluation

To evaluate a trained network with 'test.py' or 'eval.py'

Models

tdfssd's People

Contributors

dongfengxijian avatar

Stargazers

 avatar

Watchers

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