GithubHelp home page GithubHelp logo

microos / py-faster-rcnn-data-interface-generator Goto Github PK

View Code? Open in Web Editor NEW
24.0 7.0 8.0 103 KB

A text replacement based faster rcnn data interface generator

Python 100.00%
dataset-interface dataset

py-faster-rcnn-data-interface-generator's Introduction

Python Faster-RCNN Data Interface Generator

The purpose of this tool is to generate dataset interface of Faster-RCNN(FRCN) that can help you to deploy training on your own dataset as fast as possible.

Usage

This tool will generate dataset interface like pascal_voc.py, voc_eval.py and factory.py. Also a set of net prototxt files like py-faster-rcnn/models/pascal_voc. And a bash script similar to py-faster-rcnn/experiments/scripts/faster_rcnn_end2end.sh

Before using this generator, please make sure you have already set up a voc-like tree structure of your dataset(in your py-faster-rcnn/data/ folder):

YOUR_DATASET_devkit
    ├── data
    ├── Annotations
    │   └── *.xml
    │
    ├── ImageSets
    │   └── Main
    │       ├── train.txt
    │       └── test.txt
    └── JPEGImages
        └── *.jpg

Then you can run the generate.py to generate interface, prototxt and script files

Arguments:

--froot: absolute path to your faster-rcnn root.
--idname: name your dataset, whatever you want.s It will be used in the future training.
--cls: class names in your dataset, use commas to split them (e.g: cat,dog,tiger)
--dvkt: absolute path to your dataset devkit

Final Step

Please note that the tool will do everything automatically for you except overwriting the factory.py file.

In case of changing the factory.py file without any backup, the tool will not overwrite it but create a new <idname>_factory.py file for you.

You have 2 options to complete the last step manually:

  1. Backup the original factory.py file and replace it with the generated one.
  2. Copy the code block displayed in the task summary into the factory.py.

Reference

deboc's tutorial

py-faster-rcnn-data-interface-generator's People

Contributors

microos avatar

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

Watchers

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