File size: 1,563 Bytes
f15db82
 
 
 
 
 
 
 
 
52ef48c
 
 
 
 
 
 
dd70dcb
 
c7095c4
 
19b68b8
52ef48c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
task_categories:
- image-classification
- text-to-image
- unconditional-image-generation
pretty_name: Danbooru SFW 512 Filtered and Cropped Dataset
size_categories:
- 1M<n<10M
---
# Danbooru SFW 512 Filtered and Cropped

A version of Danbooru SFW which has been automatically filtered and cropped to 128x128 so that the resulting images focus almost entirely on characters.
First filtering was applied to remove non-character focused images, then cropping was applied to remove horizontal/vertical bars and further focus on the
central character(s) of each image. Both steps were performed automatically by two different vision models trained on manually labelled subsets of the original dataset.
This technique provided satisfactory results, however there is much room for improvement.

## Dataset Preprocessing

- [db-sfw-512px-character-filter](https://huggingface.co/datasets/hayden-donnelly/db-sfw-512px-character-filter) was used to train the character filter model. 
- [db-sfw-512px-character-crops](https://huggingface.co/datasets/hayden-donnelly/db-sfw-512px-character-crops) was used to train the crop model.

## Original Dataset Citation

```bibtex
@misc{danbooru2021,
    author={Anonymous and Danbooru community and Gwern Branwen},
    title={Danbooru2021: A Large-Scale Crowdsourced and Tagged Anime Illustration Dataset},
    howpublished={\url{https://gwern.net/danbooru2021}},
    url={https://gwern.net/danbooru2021},
    type={dataset},
    year={2022},
    month={January},
    timestamp={2022-01-21},
    note={Accessed: 2023-12-06}
}
```