Coder Social home page Coder Social logo

fddb-to-coco-widerface's Introduction

FDDB-Create-Format-Annotations

Most face detection repositories only support COCO format and Widerface format annotations. However. original FDDB dataset does not provide such annotations. This project helps create COCO format and Widerface format annotation files for FDDB.

Use Annotations

We provide annotation files in COCO and Widerface format for 10-fold cross validation. You can find them in annotations/COCO/ and annotations/Widerface/ . Since there is no key point ground truth in FDDB dataset, we simply fake key points.

COCO format example:

{"info": 
 	{"description": "FDDB in COCO format.", 
     "url": "", 
     "version": "1.1", 
     "contributor": "SSRSGJYD", 
     "date_created": "2020-11-15"}, 
 "images": [
     {"file_name": "2002/08/11/big/img_591.jpg", 
      "coco_url": "local", 
      "height": 431, 
      "width": 450, 
      "flickr_url": "local", 
      "id": 1}, 
     ...], 
 "annotations": [
     {"segmentation": [], 
 	  "num_keypoints": 5, 
 	  "keypoints": [0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1], 
 	  "iscrowd": 0, 
 	  "area": 43139, 
 	  "image_id": 1, 
 	  "bbox": [180, 41, 179, 241],
      "category_id": 1, 
      "id": 1}, 
	...]
}

Widerface format example:

# 2002/08/11/big/img_591.jpg
180 41 179 241 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Create Annotations By Yourself

Our code works in Python 3.x environments. Install requirements by:

pip3 install -r requirements.txt

Download FDDB dataset from here and decompress the two folders into /fddb/images/ .

To create COCO format annotations:

python fddb2coco.py

To create Widerface format annotations:

python fddb2txt.py

Citation

@TechReport{fddbTech,
  author = {Vidit Jain and Erik Learned-Miller},
  title =  {FDDB: A Benchmark for Face Detection in Unconstrained Settings},
  institution =  {University of Massachusetts, Amherst},
  year = {2010},
  number = {UM-CS-2010-009}
  }

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.