Coder Social home page Coder Social logo

stdn.pytorch's Introduction

STDN: Scale-Transferrable Object Detection

A PyTorch Implementation of Scale-Transferrable Object Detection,the official code is not found,so I trained the model with pytorch,the code support:

  • Support for the MS COCO dataset and VOC PASCAL dataset
  • Support for stdn300,stdn321,stdn513 training and testing
  • Support for mulltigpu training
  • Support training and and testing in VOC and COCO

because my GPU is limited,so I only train the stdn300 in VOC0712,if your gpu is enough,you can train other model according to configs/*,the model can be downloaded in stdn300_densenet169。the map is 76.30,the map is lower because I have not pretrained model.

MAP in VOC2007

Original Ours
78.1 76.30

Preparation

the supported version is pytorch-0.4.1 or pytorch-1.0

  • tqdm
  • opencv
  • addict
  • pytorch>=0.4
  • Clone this repository.
git clone https://github.com/yxlijun/STDN.pytorch
  • Compile the nms and coco tools:
sh make.sh
  • Prepare dataset (e.g., VOC, COCO), refer to ssd.pytorch for detailed instructions.

train

you can train different set according to configs/*

python train.py --dataset VOC\COCO --config ./configs/stdn300_densenet169.py  

if you train with multi gpu

CUDA_VISIBLE_DEVICES=0,1 python train.py --dataset VOC\COCO --config ./configs/stdn300_densenet169.py --ngpu 2

eval

you can evaluate your model in voc and coco

python test.py --dataset VOC\COCO --trained_model ./weights/STDN_VOC_size300_netdensenet_epoch650.pth 

demo

you can test your image, First, download the pretrained stdn300_densenet169.pth file. Then, move the file to weights/.

python demo.py --dataset VOC\COCO --trained_model ./weights/STDN_VOC_size300_netdensenet_epoch650.pth --show  

You can see the image with drawed boxes as:

stdn.pytorch's People

Contributors

yxlijun avatar

Stargazers

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

Watchers

 avatar

Forkers

willie-xu

stdn.pytorch's Issues

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.