task_categories:text-to-image language:en size_categories:n<1K format:imagefolder modality:image modality:text library:datasets library:mlcroissant region:us art
---
task_categories:
- text-to-image
language:
- en
tags:
- art
size_categories:
- n<1K
---
### Images were collected from zerochan.net and captioned by Claude Sonnet3.5-v2.


***Dataset Process***  

```
import json
import os

image_folder = "PATH_TO_IMAGE_FOLDER"
metadata_file = os.path.join(image_folder, 'metadata.jsonl')
with open(metadata_file, 'r', encoding='utf-8') as f:
    for line in f:
        data = json.loads(line)
        filename = data['file_name'].split('.')[0]
        text = data['caption']
        output_file = os.path.join(image_folder, f'{filename}.txt')
        with open(output_file, 'w', encoding='utf-8') as txt_file:
            txt_file.write(text)
os.remove(metadata_file)
```