Skip to main content
QUICK REVIEW

[Paper Review] DAF:re: A Challenging, Crowd-Sourced, Large-Scale, Long-Tailed Dataset For Anime Character Recognition

Edwin Arkel Rios, Wen-Huang Cheng|arXiv (Cornell University)|Jan 21, 2021
Video Analysis and SummarizationComputer Science17 references7 citations
TL;DR

This paper introduces DAF:re, a large-scale, crowd-sourced, long-tailed dataset of 500K anime faces across 3,000 classes, designed to advance anime character recognition. Experiments show that Vision Transformers (ViT) outperform CNNs like ResNet under small-batch (64) and small-image (128×128) settings, especially when finetuned, while CNNs dominate under large-batch (1024) and large-image (224×224) conditions.

ABSTRACT

In this work we tackle the challenging problem of anime character recognition. Anime, referring to animation produced within Japan and work derived or inspired from it. For this purpose we present DAF:re (DanbooruAnimeFaces:revamped), a large-scale, crowd-sourced, long-tailed dataset with almost 500 K images spread across more than 3000 classes. Additionally, we conduct experiments on DAF:re and similar datasets using a variety of classification models, including CNN based ResNets and self-attention based Vision Transformer (ViT). Our results give new insights into the generalization and transfer learning properties of ViT models on substantially different domain datasets from those used for the upstream pre-training, including the influence of batch and image size in their training. Additionally, we share our dataset, source-code, pre-trained checkpoints and results, as Animesion, the first end-to-end framework for large-scale anime character recognition: https://github.com/arkel23/animesion

Motivation & Objective

  • To address the lack of large-scale, diverse, and long-tailed datasets for anime character recognition in computer vision.
  • To investigate the generalization and transfer learning performance of Vision Transformers (ViT) on domains substantially different from their ImageNet pre-training distribution.
  • To compare ViT and CNN-based models (ResNet) under varying hyperparameters such as image size and batch size in anime face classification.
  • To release a complete end-to-end framework, Animesion, including code, pre-trained models, and dataset to accelerate research in anime multimedia analysis.

Proposed method

  • Revamped the original DanbooruAnimeFaces (DAF) dataset into DAF:re, a crowd-sourced, large-scale, long-tailed dataset with ~500K images and 3,000 classes.
  • Collected images from public sources and applied standardized preprocessing: resizing to 160×160 or 256×256, random crop to 128×128 or 224×224, and random horizontal flip for data augmentation.
  • Trained multiple models including ResNet-18, ResNet-152, and Vision Transformers (ViT-B/16, ViT-B/32, ViT-L/16, ViT-L/32) with and without ImageNet pretraining.
  • Used stochastic gradient descent with momentum (initial LR=0.001, decay by 1/3 every 20 epochs for 50 epochs, or every 50 epochs for 200 epochs).
  • Evaluated models using top-1 and top-5 accuracy on validation and test splits, with normalization and no augmentation during inference.
  • Released the dataset, code, pre-trained models, and the Animesion framework to support reproducibility and future research.

Experimental results

Research questions

  • RQ1How do Vision Transformers (ViT) perform in anime face recognition compared to CNNs like ResNet under different training hyperparameters?
  • RQ2What is the impact of image size (128×128 vs. 224×224) and batch size (64 vs. 1024) on the performance of ViT and ResNet models in this downstream task?
  • RQ3How does transfer learning from ImageNet pretraining affect ViT and ResNet models when applied to a long-tailed, stylized, drawn-image dataset like DAF:re?
  • RQ4Can ViT models generalize effectively to domains (e.g., anime) that differ significantly from their pre-training distribution (natural images)?
  • RQ5What are the performance trade-offs between ViT and CNN-based models when the dataset is large-scale and long-tailed?

Key findings

  • Under small-batch (64) and small-image (128×128) settings, ViT models with ImageNet pretraining achieved top-1 accuracy of 92.80% on the moeImouto dataset, significantly outperforming ResNet-18 (61.20%) and ResNet-152 (63.06%) when finetuned.
  • With large-batch (1024) and large-image (224×224) settings, ResNet-18 achieved 68.30% top-1 accuracy, while ViT-B/32 only reached 59.92% top-1 accuracy, indicating CNNs dominate under these conditions.
  • The ViT-L/16 model achieved 94.23% top-5 accuracy on DAF:re with 64 batch size and 128×128 input, demonstrating strong generalization under favorable hyperparameter settings.
  • Pretraining significantly improved ViT performance: ViT-B/16 reached 91.57% top-1 accuracy on moeImouto with pretraining (vs. 67.28% without), while ResNet-18 improved from 72.58% to 61.20% under the same conditions.
  • The performance gap between ViT and CNNs is highly sensitive to hyperparameters: ViT outperforms CNNs when batch size is small and image size is small, but underperforms when batch size is large and image size is large.
  • Even without pretraining, ViT-B/16 achieved 82.14% top-1 accuracy on DAF:re with 64 batch size and 128×128 input, indicating strong inductive bias or capacity for this domain.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.