AlphaAnything_Data / README.md
WLuLi's picture
Upload AlphaAnything training datasets
8bc48e9 verified
|
Raw History Blame Contribute Delete
2.86 kB
---
pretty_name: AlphaAnything Training Datasets
license: cc-by-nc-4.0
language:
- en
task_categories:
- text-to-image
- image-to-image
size_categories:
- 100K<n<1M
tags:
- image
- text
- rgba
- alphaanything
source_datasets:
- artplus/PrismLayersPro
configs:
- config_name: t2rgba_train
default: true
data_files:
- split: train
path: train/t2rgba_train.jsonl
- config_name: prismlayerspro_annotations
data_files:
- split: train
path: train/prismlayerspro_annotations.jsonl
---
# AlphaAnything Training Datasets
[Paper](https://arxiv.org/abs/2610.32413) · [Project](https://wluli.github.io/AlphaAnything/) · [Code](https://github.com/WLuLi/AlphaAnything)
Training datasets and annotations for **AlphaAnything: Extending Pretrained RGB Generators to RGBA**.
## Contents (`train/`)
| Subset | Description | Files |
| --- | --- | --- |
| T2RGBA training | 8,963 RGBA PNG images (1024×1024) with multi-granularity captions across 9 categories | [t2rgba_train-00000-of-00002.tar](train/t2rgba_train-00000-of-00002.tar), [t2rgba_train-00001-of-00002.tar](train/t2rgba_train-00001-of-00002.tar), [t2rgba_train.jsonl](train/t2rgba_train.jsonl) |
| PrismLayersPro annotations | 719,968 extraction instructions across 179,992 layers of [PrismLayersPro](https://huggingface.co/datasets/artplus/PrismLayersPro) (images reconstructed from upstream Parquet files) | [prismlayerspro_annotations.jsonl](train/prismlayerspro_annotations.jsonl), [prepare_prismlayerspro.py](prepare_prismlayerspro.py) |
## Usage
Download the files into `data/` in the [code repository](https://github.com/WLuLi/AlphaAnything).
### 1. Extract T2RGBA training data
```bash
tar -xf data/train/t2rgba_train-00000-of-00002.tar -C data/train
tar -xf data/train/t2rgba_train-00001-of-00002.tar -C data/train
```
This creates `data/train/t2rgba_train/train.csv` and `data/train/t2rgba_train/images/000000.png` ... `008962.png`.
### 2. Reconstruct PrismLayersPro training images
```bash
python data/prepare_prismlayerspro.py \
--annotations data/train/prismlayerspro_annotations.jsonl \
--prism-dir data/train/PrismLayersPro_raw \
--output-dir data/train/prismlayerspro \
--download \
--num-workers 4
```
This writes extracted source RGB images, 1024×1024 target RGBA layers, and `data/train/prismlayerspro/train.jsonl`.
## License
All original data, images, captions, and annotations in this repository are licensed under [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/) (non-commercial use only). Upstream images from [artplus/PrismLayersPro](https://huggingface.co/datasets/artplus/PrismLayersPro) (Apache-2.0) are not redistributed here and must be obtained directly under their original terms. See [LICENSE](LICENSE) and [NOTICE](NOTICE) for details.
Please cite [our paper](https://arxiv.org/abs/2610.32413) when using these datasets.