Code Monkey home page Code Monkey logo

wider-face-pascal-voc-annotations's Introduction

WIDER FACE PASCAL VOC ANNOTATIONS

This repository contains the WIDER FACE annotations converted to the Pascal VOC XML format.

It also contains the script used to do this conversion.

usage: convert.py [-h] [-ap ANNOTATIONS_PATH] [-tp TARGET_PATH]
                  [-ip IMAGES_PATH]

optional arguments:
  -h, --help            show this help message and exit
  -ap ANNOTATIONS_PATH, --annotations-path ANNOTATIONS_PATH
                        the annotations file path.
                        ie:"./wider_face_split/wider_face_train_bbx_gt.txt".
  -tp TARGET_PATH, --target-path TARGET_PATH
                        the target directory path where XML files will be
                        copied.
  -ip IMAGES_PATH, --images-path IMAGES_PATH
                        the images directory path. ie:"./WIDER_train/images"

It has been used as following:

$ ./convert.py -ap ./wider_face_split/wider_face_train_bbx_gt.txt -tp ./WIDER_train_annotations/ -ip ./WIDER_train/images/
$ ./convert.py -ap ./wider_face_split/wider_face_val_bbx_gt.txt -tp ./WIDER_val_annotations/ -ip ./WIDER_val/images/

License

MIT Licensed. Copyright (c) Alexis Kofman 2018.

wider-face-pascal-voc-annotations's People

Contributors

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

wider-face-pascal-voc-annotations's Issues

I want to use my face detection data set for face model training. My standard face tool is labelme, which is in json format. I saw that many face detection algorithms are based on widerface for training, so I want to know How do I convert my face frame data into widerface format? Thank you

I want to use my face detection data set for face model training. My standard face tool is labelme, which is in json format. I saw that many face detection algorithms are based on widerface for training, so I want to know How do I convert my face frame data into widerface format? Thank you

Code fails when there are no faces in the image

0_Parade_Parade_0_452.jpg => ./WIDER_train_annotations/0_Parade_Parade_0_452.xml
Traceback (most recent call last):
File "convert.py", line 86, in
convertWFAnnotations(ARGS['annotations_path'], ARGS['target_path'], ARGS['images_path'])
File "convert.py", line 55, in convertWFAnnotations
folder, basename, path, width, height = parseImFilename(imFilename, imPath)
File "convert.py", line 41, in parseImFilename
im = Image.open(os.path.join(imPath, imFilename))
File "/home/cp2016/cp201613/epp/venv/lib/python3.8/site-packages/PIL/Image.py", line 2843, in open
fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: './WIDER_train/images/0 0 0 0 0 0 0 0 0 0'

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.