Coder Social home page Coder Social logo

resnest-refinedet's Introduction

resnest-refinedet

An improved version of refinedet network, modify the backbone network, and provide resnet50 compression network and resnest50 method

A higher performance PyTorch implementation of Single-Shot Refinement Neural Network for Object Detection. The official and original Caffe code can be found here.

###简介 本实验我没有在VOC上进行测试对比,针对于实际项目实验发现:resnet50-86-refinedet的检测网络,耗时方面较原本vgg时间减少了一半,resnest50的性能较resnet50也有很大的提升。

Table of Contents

       

Performance

VOC2007 Test

mAP (Single Scale Test)
Arch Paper Caffe Version Our PyTorch Version
RefineDet320 80.0% 79.52% 79.81%
RefineDet512 81.8% 81.85% 80.50%

Installation

  • Install PyTorch by selecting your environment on the website and running the appropriate command.
    • Note: You should use at least PyTorch1.0.0
  • Clone this repository.
    • Note: We currently only support Python 3+.
  • Then download the dataset by following the instructions below.
  • We now support Visdom for real-time loss visualization during training!
    • To use Visdom in the browser:
    # First install Python server and client
    pip install visdom
    # Start the server (probably in a screen or tmux)
    python -m visdom.server
    • Then (during training) navigate to http://localhost:8097/ (see the Train section below for training details).
  • Note: For training, we currently support VOC and COCO, and aim to add ImageNet support soon.

Datasets

To make things easy, we provide bash scripts to handle the dataset downloads and setup for you. We also provide simple dataset loaders that inherit torch.utils.data.Dataset, making them fully compatible with the torchvision.datasets API.

COCO

Microsoft COCO: Common Objects in Context

Download COCO 2014
# specify a directory for dataset to be downloaded into, else default is ~/data/
sh data/scripts/COCO2014.sh

VOC Dataset

PASCAL VOC: Visual Object Classes

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>

Training RefineDet

python train_refinedet.py
  • Observe the training loss
python -m visdom.server
 Open the web input website: http://localhost:8097/
  • Note:
    • For training, an NVIDIA GPU is strongly recommended for speed.
    • For instructions on Visdom usage/installation, see the Installation section.
    • You can pick-up training from a checkpoint by specifying the path as one of the training parameters (again, see train_refinedet.py for options)

Evaluation

To evaluate a trained network:

python model_test_one_image.py

You can specify the parameters listed in the model_test_one_image.py file by flagging them or manually changing them.

TODO

We have accumulated the following to-do list, which we hope to complete in the near future

  • Still to come:
    • Support for multi-scale testing

References

*[ zhanghang1989 /ResNeSt ] (https://github.com/zhanghang1989/ResNeSt)

resnest-refinedet's People

Contributors

pengyang1225 avatar

Stargazers

Koorye avatar  avatar  avatar 岑朝君 avatar shuc avatar semap avatar rotorliu avatar  avatar

Watchers

James Cloos avatar  avatar paper2code - bot avatar

resnest-refinedet's Issues

some problems in your code

I encountered the following problems when trying to reproduce your work, I hope you could reply to me, thank you very much urllib.error.HTTPError: HTTP Error 403: Forbidden

model

model test is not available?

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.