Code Monkey home page Code Monkey logo

create-pascal-voc-dataset's Introduction

CREATE PASCAL VOC 2007 DATASET

Refactor all the project ! Now it's more efficient and the structure is more clear.

License

中文版

Usage

  1. Get your dataset annotations file, parse and save it to two files trainval_annotations.txt and test_annotations.txt, file name doesn't matter.

  2. Your annotations file must have the format like this:

    image_full_path object1_class x1_min y1_min x1_max y1_max object2_class x2_min y2_min x2_max y2_max...

    • You can check examples/Train_annotation.txt file to understand the annotation format more clearly, this is the INRIA annotations file after my processing, your annotations file should be like this.

    • You should write your own dataset annotation process program, I just write for INRIA dataset and you can reference it in preprocess/inria_preprocess.py.

    • If I have more time, I will write more process program, you can send your requires in issues.

  3. Edit your dataset config and run file;

    • Check the examples/inria_example.py to understand how to call the PASCALVOC07 class

    • Config your own information in your pascal voc dataset

    • Set the dataset directory, annotations file and output directory, then just run build, wait for your own pascal voc dataset.

Example

  • I have writen an example of the INRIA dataset:
python preprocess/inria_preprocess.py /path/to/INRIAPerson
python examples/inria_example.py /path/to/INRIAPerson /path/to/output

Anything can be send to issues and forgive my poor English...

create-pascal-voc-dataset's People

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

create-pascal-voc-dataset's Issues

关于用法的不解

第三部不是很懂,不知道都是需要配置哪个文件,和文件里面的哪个变量。
另外 box的坐标是按照左上角和右下角两个点确定的吧

如何生成xml文件

谢谢您的分享。
VOC数据集是下面的格式,请问怎么生成xml文件呢?

VOCtemplate
└── VOC2007
    ├── Annotations
    │   └── 000001.xml
    ├── ImageSets
    │   └── Main
    │       └── train.txt
    └── JPEGImages
        └── 000001.jpg

utils.fileutils 拷贝问题

拷贝文件的时候先把源文件复制到目标文件夹,再给源文件改名,会遇到源文件名覆盖掉目标文件夹里面改好名的文件吧?为什么不直接复制到目标文件夹下的文件呢?
现在:src/000001.jpg -> (copy to) dst/000001.jpg ->(rename)dst/000100.jpg
建议:src/000001.jpg -> (copy to) dst/000100.jpg

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.