AnimeDrawingsDataset
A dataset for 2D pose estimation of anime/manga images.
Install / Use
/learn @dragonmeteor/AnimeDrawingsDatasetREADME
Anime Drawings Dataset
A dataset for 2D pose estimation of anime/manga images. This repository contains code to:
- Download images from the Internet and process them.
- Generate HTML files that allow the user to view the dataset.
Dependencies
- The Ruby programming language.
- The following Ruby packages. (You only need to have the first one installed.)
bundler(for installing the following three packages)rake(for automation)nokogiri(for HTML processing)mechanize(for interaction with web pages)
- ImageMagick
- You should be able to run the
convertcommand from the shell.
- You should be able to run the
Preparing the Dataset
First, please clone the dataset into a directory of your choice. Then, change into the directory of the repository. At this point, you should have (1) the Ruby language, (2) the bundler package, and (3) ImageMagick installed in your system.
The next step is to install other Ruby packages. Run:
bundle install
Then, run:
rake build
The above command will download all the images and process them. This can take some time, so sit back, relax, and wait.
After the above command finishes, you can browse the dataset by viewing the HTML page index.html in the root of the repository.
Where Are the Data?
The images are located in the data/images directory. The joint positions are located in the following files:
data/data.jsoncontains all the 2,000 examples.data/train.jsoncontains the 1,400 training examples.data/val.jsoncontains all the 100 validation examples.data/test.jsoncontains all the 500 test examples.
Some joint names are a little counter-intuitive:
arm_leftandarm_rightare the shoulder joints.leg_leftandleg_rightare the hip joints.tiptoe_leftandtiptoe_rightare the tips of the shoes or feet (if the character does not wear shoes).
Docker Image
For those who do not want to figure out how to install the dependencies, I have prepared a Docker image with all of them. The name of the image is:
dragonmeteor/animedrawingsdataset
You can also inspect the image on the web here.
To use the image, you first need to clone the repository to a location. Let us say to /opt/AnimeDrawingsDataset. Then, you can run the image, mounting the repository directory as a data volume.
docker run -ti --net=host -v /opt/AnimeDrawingsDataset:/AnimeDrawingsDataset dragonmeteor/animedrawingsdataset /bin/bash
In the command above, we mount it to the /AnimeDrawingsDataset in the container. Next, change to the directory and start the downloading process:
cd /AnimeDrawingsDataset
rake build
Acknowledgement
This dataset would not have been possible without volunteers who helped us annotated the pictures. Thank you very much!
