Git Product home page Git Product logo

retinanet-pytorch's Introduction

RetinaNet

This is an implementation of RetinaNet in Pytorch, using ResNet as backbone and FPN. Its base on the code of Detectron and pytorch-retinanet.

Train on VOC

1.Download PASCAL VOC 2012 trainval datasets and unzip it. Its path should be '{root_dir}/VOCdevkit/..'

2.Download this repo

git clone [email protected]:qqadssp/RetinaNet.git  
cd RetinaNet  

3.Download pretrained weights from https://download.pytorch.org/models/resnet50-19c8e357.pth

cd checkpoint  
wget https://download.pythorch.org/models/resnet50-19c8e357.pth  
cd ..  

4.Initialize the model

python init.py  

5.Modify configs file in 'config'. For VOC datatsets, modify 'TRAIN: DATASETS_DIR' with your {root_dir}

6.Trian the model

python train.py --cfg ./configs/RetinaNet_ResNet50_FON_VOC.yaml  

Test on VOC

1.Download PASCAL VOC 2012 test datasets and unzip it. Its path should be '{root_dir}/VOCdevkit_test/..'

2.Modify ocnfig file in 'configs'. For VOC datasets, modify 'TEST: DATASETS_DIR' with your {root_dir}, and 'TEST: WEIGHTS' with the trained weights in 'checkpoint'

3.Test the model. The result files will be in 'result'.

python test.py --cfg ./configs/RetinaNet_ResNet50_FPN_VOC.yaml  

retinanet-pytorch's People

Contributors

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