Datasets:
Formats:
parquet
Size:
1M - 10M
ArXiv:
Tags:
fdsml
formula-driven-supervised-learning
fractal
synthetic-data
pre-training
iterated-function-system
License:
Configure the Dataset Viewer
Browse files
README.md
CHANGED
|
@@ -13,6 +13,24 @@ tags:
|
|
| 13 |
- synthetic-data
|
| 14 |
- pre-training
|
| 15 |
- iterated-function-system
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
---
|
| 17 |
|
| 18 |
# FineFractalDB
|
|
@@ -32,7 +50,39 @@ Compared with FractalDB-1k, the generation process is refined for higher intra-c
|
|
| 32 |
|
| 33 |
## Contents
|
| 34 |
|
| 35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
```text
|
| 38 |
finefractaldb/
|
|
@@ -58,11 +108,19 @@ Images are rendered with the 3×3 patch option (`--patch`) and random seed 0, ex
|
|
| 58 |
|
| 59 |
## Download
|
| 60 |
|
|
|
|
|
|
|
| 61 |
```bash
|
| 62 |
hf download fdsml/FineFractalDB finefractaldb.zip --repo-type dataset --local-dir datasets
|
| 63 |
unzip datasets/finefractaldb.zip -d datasets
|
| 64 |
```
|
| 65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
The dataset can also be regenerated from scratch with the [official code](https://github.com/ShineiArakawa/fdsml#generate-finefractaldb) in about 15 minutes on a 4-core CPU.
|
| 67 |
|
| 68 |
## Citation
|
|
|
|
| 13 |
- synthetic-data
|
| 14 |
- pre-training
|
| 15 |
- iterated-function-system
|
| 16 |
+
configs:
|
| 17 |
+
- config_name: default
|
| 18 |
+
data_files:
|
| 19 |
+
- split: train
|
| 20 |
+
path: data/train-*.parquet
|
| 21 |
+
dataset_info:
|
| 22 |
+
features:
|
| 23 |
+
- name: image
|
| 24 |
+
dtype: image
|
| 25 |
+
- name: label
|
| 26 |
+
dtype: int64
|
| 27 |
+
- name: weight_id
|
| 28 |
+
dtype: int64
|
| 29 |
+
- name: params
|
| 30 |
+
list: float32
|
| 31 |
+
length: 6
|
| 32 |
+
- name: file_name
|
| 33 |
+
dtype: string
|
| 34 |
---
|
| 35 |
|
| 36 |
# FineFractalDB
|
|
|
|
| 50 |
|
| 51 |
## Contents
|
| 52 |
|
| 53 |
+
The dataset is provided in two equivalent forms:
|
| 54 |
+
|
| 55 |
+
- `finefractaldb.zip` (about 11.5 GB): the original image-folder archive used by the [official code](https://github.com/ShineiArakawa/fdsml).
|
| 56 |
+
- `data/train-*.parquet` (about 11.5 GB in total): the same images and parameters as Parquet shards. This is what the Dataset Viewer above shows and what `datasets.load_dataset` reads.
|
| 57 |
+
|
| 58 |
+
### Parquet shards
|
| 59 |
+
|
| 60 |
+
Each row has the following columns:
|
| 61 |
+
|
| 62 |
+
| Column | Type | Description |
|
| 63 |
+
|---|---|---|
|
| 64 |
+
| `image` | image | 362×362 RGB PNG |
|
| 65 |
+
| `label` | int64 | class (IFS) index, `0`–`999` |
|
| 66 |
+
| `weight_id` | int64 | per-class instance index, `0`–`999` |
|
| 67 |
+
| `params` | list of 6 float32 | instance parameters `wa, wb, wc, wd, we, wf` (last row of the corresponding CSV) |
|
| 68 |
+
| `file_name` | string | path of the image inside `finefractaldb.zip` |
|
| 69 |
+
|
| 70 |
+
Reading the Parquet shards requires the [`datasets`](https://huggingface.co/docs/datasets) library (`pip install datasets`), which decodes the `image` column into PIL images:
|
| 71 |
+
|
| 72 |
+
```python
|
| 73 |
+
from datasets import load_dataset
|
| 74 |
+
|
| 75 |
+
ds = load_dataset("fdsml/FineFractalDB", split="train", streaming=True)
|
| 76 |
+
example = next(iter(ds))
|
| 77 |
+
example["image"].show()
|
| 78 |
+
print(example["label"], example["params"])
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
The shards are generated from the zip with `tools/create_hf_parquet.py` in the official code. Note that the official training code reads `finefractaldb.zip` directly and does not depend on the `datasets` library or the Parquet shards.
|
| 82 |
+
|
| 83 |
+
### Zip archive
|
| 84 |
+
|
| 85 |
+
`finefractaldb.zip` extracts to:
|
| 86 |
|
| 87 |
```text
|
| 88 |
finefractaldb/
|
|
|
|
| 108 |
|
| 109 |
## Download
|
| 110 |
|
| 111 |
+
To train with the official code, download and extract the zip archive:
|
| 112 |
+
|
| 113 |
```bash
|
| 114 |
hf download fdsml/FineFractalDB finefractaldb.zip --repo-type dataset --local-dir datasets
|
| 115 |
unzip datasets/finefractaldb.zip -d datasets
|
| 116 |
```
|
| 117 |
|
| 118 |
+
To download only the Parquet shards:
|
| 119 |
+
|
| 120 |
+
```bash
|
| 121 |
+
hf download fdsml/FineFractalDB --include "data/*.parquet" --repo-type dataset --local-dir datasets/finefractaldb_parquet
|
| 122 |
+
```
|
| 123 |
+
|
| 124 |
The dataset can also be regenerated from scratch with the [official code](https://github.com/ShineiArakawa/fdsml#generate-finefractaldb) in about 15 minutes on a 4-core CPU.
|
| 125 |
|
| 126 |
## Citation
|