Datasets:
Remove previous sref per-file upload before shard upload
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- sref/README.md +0 -131
- sref/export_summary.json +0 -31
- sref/images/00/000000cf-99b2-53b2-fa4c-671eb7b17497.jpg +0 -3
- sref/images/00/000004cc-e7ce-33cb-c052-b5c8efc68ecb.jpg +0 -3
- sref/images/00/0000106a-10e7-1d5a-de93-5cf6411cb1b4.jpg +0 -3
- sref/images/00/00002c84-32c1-8744-97c1-2593ae2483f4.jpg +0 -3
- sref/images/00/00003136-cead-ff9c-ca25-44ee9585c8be.jpg +0 -3
- sref/images/00/00005884-392a-8d75-bc72-cec9ae5cb4bc.jpg +0 -3
- sref/images/00/00005df1-9fc1-0f62-7897-923cac6308c2.jpg +0 -3
- sref/images/00/0000628d-0cfc-7821-4419-ccbec9c5a96d.jpg +0 -3
- sref/images/00/00006a2f-8f2c-232e-6df3-1ff032952074.jpg +0 -3
- sref/images/00/00007489-3a60-e446-d1e4-fd8f5e2981f6.jpg +0 -3
- sref/images/00/00008865-6642-2716-18a9-49afb26acbc4.jpg +0 -3
- sref/images/00/00008c52-b3f4-b917-7c03-e804a246e223.jpg +0 -3
- sref/images/00/00008c71-e859-b369-92d1-a451f1b8ed61.jpg +0 -3
- sref/images/00/000091ee-5d0e-ade0-218e-91a901a56937.jpg +0 -3
- sref/images/00/000091f8-2008-5f9c-63ee-db501171fe07.jpg +0 -3
- sref/images/00/0000921e-0104-3494-e588-9b33fc4c8521.jpg +0 -3
- sref/images/00/000097b2-a1db-8e70-6ddf-4d7a4bc6a2bf.jpg +0 -3
- sref/images/00/00009939-1548-870a-4f89-faf0b0abdfcd.jpg +0 -3
- sref/images/00/0000a251-a35e-0eff-72fb-97d75d77b535.jpg +0 -3
- sref/images/00/0000b86d-8acd-2c8b-1629-9ab7c5083e48.jpg +0 -3
- sref/images/00/0000d81d-bccc-53b6-300a-0937975b091f.jpg +0 -3
- sref/images/00/0000deca-4277-a694-b791-bc209f190085.jpg +0 -3
- sref/images/00/0000e02d-b2af-e893-b4f6-5d0ea645e6e3.jpg +0 -3
- sref/images/00/0000ec31-830e-f109-3040-dd6ac64974cc.jpg +0 -3
- sref/images/00/0000ecf2-7935-1c94-a840-2dffe6152f0c.jpg +0 -3
- sref/images/00/0000f248-fd72-c6d4-4518-fca7cec67710.jpg +0 -3
- sref/images/00/000103d8-3b98-e9a3-1330-db4adbba8139.jpg +0 -3
- sref/images/00/00010ce3-0178-63a0-e486-95e79237b781.jpg +0 -3
- sref/images/00/00011813-0844-0da0-f78a-0106cf054ba1.jpg +0 -3
- sref/images/00/0001216c-bcc5-dad4-dad5-86109898411b.jpg +0 -3
- sref/images/00/00012593-5e8c-541d-e117-abe4a11597b9.jpg +0 -3
- sref/images/00/000139a4-41fc-0575-4411-eb48fbecd383.jpg +0 -3
- sref/images/00/00013bbc-1d97-e2cb-efc7-07d2c0c9b8f6.jpg +0 -3
- sref/images/00/000149dd-2e42-6705-5089-a12f957a96d4.jpg +0 -3
- sref/images/00/000152ee-1325-8a36-839c-69d302fbcc06.jpg +0 -3
- sref/images/00/00015620-ef03-8e38-a16c-ab84347dd412.jpg +0 -3
- sref/images/00/00015d49-29b4-84c5-b330-48d631bd2e79.jpg +0 -3
- sref/images/00/0001a2e5-bdcb-0ef6-b4cf-e7f2ece48d09.jpg +0 -3
- sref/images/00/0001e2a9-3375-ab41-76be-4c08d16018a4.jpg +0 -3
- sref/images/00/0001e4bd-e129-c246-7b4b-430eb4104deb.jpg +0 -3
- sref/images/00/0001eed0-baa1-6cd6-2954-ed5949b1671e.jpg +0 -3
- sref/images/00/0002038a-b293-4e91-4d91-b8d7a1a06157.jpg +0 -3
- sref/images/00/000213a9-1a2a-5b23-776b-28b10e9d4993.jpg +0 -3
- sref/images/00/00021ce7-24ae-a38a-53c5-8a8808a0e825.jpg +0 -3
- sref/images/00/000233e9-54f2-271e-9ee2-103f2f2780a0.jpg +0 -3
- sref/images/00/0002391d-4da2-c7d5-896c-0f3f076a9390.jpg +0 -3
- sref/images/00/00023cf6-c0a8-4d78-4dd9-e85cf4bbf50d.jpg +0 -3
- sref/images/00/00024dcd-1a29-634e-ae83-dd36c4d5b7f2.jpg +0 -3
sref/README.md
DELETED
|
@@ -1,131 +0,0 @@
|
|
| 1 |
-
# FreeStyle Dataset — sref split
|
| 2 |
-
|
| 3 |
-
This subfolder is the cref+sref+target triplet export of the
|
| 4 |
-
`cref_sref_oneig_filter_part1..part5` vault sources used by the VGO project.
|
| 5 |
-
The layout is intentionally simple so that downstream readers can use the
|
| 6 |
-
dataset **with nothing more than Python's standard library + Pillow + pandas**
|
| 7 |
-
— DuckDB and the internal `vault` package are **not** required.
|
| 8 |
-
|
| 9 |
-
## Contents
|
| 10 |
-
|
| 11 |
-
```
|
| 12 |
-
sref/
|
| 13 |
-
├── README.md # this file
|
| 14 |
-
├── pairs.csv # one row per (sequence_id, choice_id) — fully self-contained
|
| 15 |
-
├── metadata.jsonl # one row per sequence_id, preserves the original vault structure
|
| 16 |
-
├── export_summary.json # counts and export-time metadata
|
| 17 |
-
└── images/<uu>/<image_uuid>.<ext>
|
| 18 |
-
# deduplicated image pool. <uu> is the first two hex chars of the uuid.
|
| 19 |
-
```
|
| 20 |
-
|
| 21 |
-
- Exported sources: 5
|
| 22 |
-
- `cref_sref_oneig_filter_part1`
|
| 23 |
-
- `cref_sref_oneig_filter_part2`
|
| 24 |
-
- `cref_sref_oneig_filter_part3`
|
| 25 |
-
- `cref_sref_oneig_filter_part4`
|
| 26 |
-
- `cref_sref_oneig_filter_part5`
|
| 27 |
-
- Unique vault sequences exported: **417,761**
|
| 28 |
-
- Rows in `pairs.csv` (= sequences × choices): **3,342,076**
|
| 29 |
-
- Unique images in `images/`: **1,238,604**
|
| 30 |
-
- Export wall-clock: started 2026-06-11T08:11:57.855884Z, finished 2026-06-11T08:33:59.192685Z
|
| 31 |
-
|
| 32 |
-
## Schema — `pairs.csv`
|
| 33 |
-
|
| 34 |
-
| Column | Description |
|
| 35 |
-
| --- | --- |
|
| 36 |
-
| `sequence_id` | Vault sequence UUID. Eight rows share the same id, one per choice. |
|
| 37 |
-
| `choice_id` | 0..7. Index of the instruction × caption × language combination. |
|
| 38 |
-
| `source` | One of `cref_sref_oneig_filter_part{1..5}`. |
|
| 39 |
-
| `task_type` | Always `edit` for this export. |
|
| 40 |
-
| `cref_image` / `sref_image` / `target_image` | Relative path inside this folder, e.g. `images/ab/ab12….webp`. Open with PIL. |
|
| 41 |
-
| `cref_width` / `cref_height` / `sref_*` / `target_*` | Pixel dimensions reported by the vault. |
|
| 42 |
-
| `instruction` / `instruction_index` | Instruction text + its vault-internal key (`sample_instruction_en_123` etc). |
|
| 43 |
-
| `target_caption` / `target_caption_index` | Target image caption + its vault key (`captions/scene_3` etc). |
|
| 44 |
-
| `content_trigger_words` / `style_trigger_words` | Trigger phrases attached to the content/style references. |
|
| 45 |
-
| `message_formatter` | The original modality template, always `<image_0><image_1><text_0><text_1><image_2>`. |
|
| 46 |
-
| `require_loss_json` | JSON list aligned with the formatter modalities — `[false, false, false, false, true]` for edit. |
|
| 47 |
-
| `uri` | Vault-side original uri string. |
|
| 48 |
-
| `create_time` | ISO-8601 timestamp recorded in the vault. |
|
| 49 |
-
|
| 50 |
-
## Loading with pandas (no DuckDB needed)
|
| 51 |
-
|
| 52 |
-
```python
|
| 53 |
-
import pandas as pd
|
| 54 |
-
from PIL import Image
|
| 55 |
-
from pathlib import Path
|
| 56 |
-
|
| 57 |
-
root = Path("/path/to/sref") # local clone of this folder
|
| 58 |
-
df = pd.read_csv(root / "pairs.csv")
|
| 59 |
-
|
| 60 |
-
row = df.iloc[0]
|
| 61 |
-
cref = Image.open(root / row["cref_image"])
|
| 62 |
-
sref = Image.open(root / row["sref_image"])
|
| 63 |
-
target = Image.open(root / row["target_image"])
|
| 64 |
-
prompt = row["instruction"]
|
| 65 |
-
caption = row["target_caption"]
|
| 66 |
-
```
|
| 67 |
-
|
| 68 |
-
To keep only English instructions:
|
| 69 |
-
|
| 70 |
-
```python
|
| 71 |
-
en_df = df[df["instruction_index"].str.endswith("_en_123")]
|
| 72 |
-
```
|
| 73 |
-
|
| 74 |
-
To deduplicate to one row per sequence (e.g. for visualizing pairs only):
|
| 75 |
-
|
| 76 |
-
```python
|
| 77 |
-
unique = df.drop_duplicates(subset="sequence_id")
|
| 78 |
-
```
|
| 79 |
-
|
| 80 |
-
## Loading with `datasets`
|
| 81 |
-
|
| 82 |
-
```python
|
| 83 |
-
from datasets import load_dataset
|
| 84 |
-
|
| 85 |
-
ds = load_dataset(
|
| 86 |
-
"Blue2Giant/FreeStyle_Dataset",
|
| 87 |
-
data_files="sref/pairs.csv",
|
| 88 |
-
split="train",
|
| 89 |
-
)
|
| 90 |
-
```
|
| 91 |
-
|
| 92 |
-
Image columns are stored as relative paths inside this folder. After cloning
|
| 93 |
-
the repo (or using `huggingface_hub.snapshot_download`), resolve them against
|
| 94 |
-
the local snapshot root.
|
| 95 |
-
|
| 96 |
-
## Schema — `metadata.jsonl` (optional, for power users)
|
| 97 |
-
|
| 98 |
-
Each line is a JSON object preserving the original vault structure for a
|
| 99 |
-
single `sequence_id`. Useful if you need to:
|
| 100 |
-
|
| 101 |
-
- Reconstruct the eight `sequence_choices` exactly as the trainer saw them.
|
| 102 |
-
- Access the auxiliary texts that are not surfaced in `pairs.csv`, such as
|
| 103 |
-
`captions/scene_1`, `captions/scene_2`, `target_caption`, and the
|
| 104 |
-
per-language variants.
|
| 105 |
-
|
| 106 |
-
```json
|
| 107 |
-
{
|
| 108 |
-
"sequence_id": "...",
|
| 109 |
-
"source": "cref_sref_oneig_filter_part1",
|
| 110 |
-
"task_type": "edit",
|
| 111 |
-
"uri": "...",
|
| 112 |
-
"create_time": "2026-04-26T...",
|
| 113 |
-
"images": [{"id": "...", "index": "cref_0", "width": 1024, "height": 1024, "file_name": "images/.../....webp"}, ...],
|
| 114 |
-
"texts": [{"id": "...", "index": "...", "language": null, "content": "..."}, ...],
|
| 115 |
-
"choices": [{"choice_id": 0, "message_formatter": "<image_0><image_1><text_0><text_1><image_2>", "image_indices": ["cref_0", "sref_0", "target"], "text_indices": ["sample_instruction_cn_123", "captions/scene_3_en"], "require_loss": [false, false, false, false, true]}, ...],
|
| 116 |
-
"choices_weights": []
|
| 117 |
-
}
|
| 118 |
-
```
|
| 119 |
-
|
| 120 |
-
## Image dedup
|
| 121 |
-
|
| 122 |
-
Each image is stored once under its vault UUID, regardless of how many
|
| 123 |
-
sequences reference it. `pairs.csv` rows for different sequences therefore
|
| 124 |
-
reuse the same `cref_image` / `sref_image` paths whenever a cref/sref appears
|
| 125 |
-
in multiple pairs — this is the intended dedup behaviour and **not** a bug.
|
| 126 |
-
|
| 127 |
-
## License & provenance
|
| 128 |
-
|
| 129 |
-
These triplets were assembled by sampling cref/sref references from internal
|
| 130 |
-
collections; please refer to the parent repository's top-level dataset card
|
| 131 |
-
for licensing.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sref/export_summary.json
DELETED
|
@@ -1,31 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"config": "/data/vgo/xingpeng/new_vgo/Sref_Cref_MiniVGO/configs/data/0426_cref_sref_full_diffusion.yaml",
|
| 3 |
-
"vault_root": "/mnt/chengwei/vault/traindata/04-26",
|
| 4 |
-
"output_dir": "/mnt/jfs/gemini_sref_export",
|
| 5 |
-
"sources": [
|
| 6 |
-
"cref_sref_oneig_filter_part1",
|
| 7 |
-
"cref_sref_oneig_filter_part2",
|
| 8 |
-
"cref_sref_oneig_filter_part3",
|
| 9 |
-
"cref_sref_oneig_filter_part4",
|
| 10 |
-
"cref_sref_oneig_filter_part5"
|
| 11 |
-
],
|
| 12 |
-
"per_source_total": {
|
| 13 |
-
"cref_sref_oneig_filter_part1": 84645,
|
| 14 |
-
"cref_sref_oneig_filter_part2": 80729,
|
| 15 |
-
"cref_sref_oneig_filter_part3": 83406,
|
| 16 |
-
"cref_sref_oneig_filter_part4": 84327,
|
| 17 |
-
"cref_sref_oneig_filter_part5": 84654
|
| 18 |
-
},
|
| 19 |
-
"exported_sequences": 417761,
|
| 20 |
-
"exported_sequences_this_run": 36833,
|
| 21 |
-
"exported_rows": 3342076,
|
| 22 |
-
"unique_images": 1238604,
|
| 23 |
-
"images_written_this_run": 105459,
|
| 24 |
-
"images_already_on_disk": 0,
|
| 25 |
-
"images_missing_in_vault": 0,
|
| 26 |
-
"sequences_skipped_resume": 0,
|
| 27 |
-
"sequences_skipped_no_target_images": 0,
|
| 28 |
-
"started_at": "2026-06-11T08:11:57.855884Z",
|
| 29 |
-
"finished_at": "2026-06-11T08:33:59.192685Z",
|
| 30 |
-
"limit": null
|
| 31 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sref/images/00/000000cf-99b2-53b2-fa4c-671eb7b17497.jpg
DELETED
Git LFS Details
|
sref/images/00/000004cc-e7ce-33cb-c052-b5c8efc68ecb.jpg
DELETED
Git LFS Details
|
sref/images/00/0000106a-10e7-1d5a-de93-5cf6411cb1b4.jpg
DELETED
Git LFS Details
|
sref/images/00/00002c84-32c1-8744-97c1-2593ae2483f4.jpg
DELETED
Git LFS Details
|
sref/images/00/00003136-cead-ff9c-ca25-44ee9585c8be.jpg
DELETED
Git LFS Details
|
sref/images/00/00005884-392a-8d75-bc72-cec9ae5cb4bc.jpg
DELETED
Git LFS Details
|
sref/images/00/00005df1-9fc1-0f62-7897-923cac6308c2.jpg
DELETED
Git LFS Details
|
sref/images/00/0000628d-0cfc-7821-4419-ccbec9c5a96d.jpg
DELETED
Git LFS Details
|
sref/images/00/00006a2f-8f2c-232e-6df3-1ff032952074.jpg
DELETED
Git LFS Details
|
sref/images/00/00007489-3a60-e446-d1e4-fd8f5e2981f6.jpg
DELETED
Git LFS Details
|
sref/images/00/00008865-6642-2716-18a9-49afb26acbc4.jpg
DELETED
Git LFS Details
|
sref/images/00/00008c52-b3f4-b917-7c03-e804a246e223.jpg
DELETED
Git LFS Details
|
sref/images/00/00008c71-e859-b369-92d1-a451f1b8ed61.jpg
DELETED
Git LFS Details
|
sref/images/00/000091ee-5d0e-ade0-218e-91a901a56937.jpg
DELETED
Git LFS Details
|
sref/images/00/000091f8-2008-5f9c-63ee-db501171fe07.jpg
DELETED
Git LFS Details
|
sref/images/00/0000921e-0104-3494-e588-9b33fc4c8521.jpg
DELETED
Git LFS Details
|
sref/images/00/000097b2-a1db-8e70-6ddf-4d7a4bc6a2bf.jpg
DELETED
Git LFS Details
|
sref/images/00/00009939-1548-870a-4f89-faf0b0abdfcd.jpg
DELETED
Git LFS Details
|
sref/images/00/0000a251-a35e-0eff-72fb-97d75d77b535.jpg
DELETED
Git LFS Details
|
sref/images/00/0000b86d-8acd-2c8b-1629-9ab7c5083e48.jpg
DELETED
Git LFS Details
|
sref/images/00/0000d81d-bccc-53b6-300a-0937975b091f.jpg
DELETED
Git LFS Details
|
sref/images/00/0000deca-4277-a694-b791-bc209f190085.jpg
DELETED
Git LFS Details
|
sref/images/00/0000e02d-b2af-e893-b4f6-5d0ea645e6e3.jpg
DELETED
Git LFS Details
|
sref/images/00/0000ec31-830e-f109-3040-dd6ac64974cc.jpg
DELETED
Git LFS Details
|
sref/images/00/0000ecf2-7935-1c94-a840-2dffe6152f0c.jpg
DELETED
Git LFS Details
|
sref/images/00/0000f248-fd72-c6d4-4518-fca7cec67710.jpg
DELETED
Git LFS Details
|
sref/images/00/000103d8-3b98-e9a3-1330-db4adbba8139.jpg
DELETED
Git LFS Details
|
sref/images/00/00010ce3-0178-63a0-e486-95e79237b781.jpg
DELETED
Git LFS Details
|
sref/images/00/00011813-0844-0da0-f78a-0106cf054ba1.jpg
DELETED
Git LFS Details
|
sref/images/00/0001216c-bcc5-dad4-dad5-86109898411b.jpg
DELETED
Git LFS Details
|
sref/images/00/00012593-5e8c-541d-e117-abe4a11597b9.jpg
DELETED
Git LFS Details
|
sref/images/00/000139a4-41fc-0575-4411-eb48fbecd383.jpg
DELETED
Git LFS Details
|
sref/images/00/00013bbc-1d97-e2cb-efc7-07d2c0c9b8f6.jpg
DELETED
Git LFS Details
|
sref/images/00/000149dd-2e42-6705-5089-a12f957a96d4.jpg
DELETED
Git LFS Details
|
sref/images/00/000152ee-1325-8a36-839c-69d302fbcc06.jpg
DELETED
Git LFS Details
|
sref/images/00/00015620-ef03-8e38-a16c-ab84347dd412.jpg
DELETED
Git LFS Details
|
sref/images/00/00015d49-29b4-84c5-b330-48d631bd2e79.jpg
DELETED
Git LFS Details
|
sref/images/00/0001a2e5-bdcb-0ef6-b4cf-e7f2ece48d09.jpg
DELETED
Git LFS Details
|
sref/images/00/0001e2a9-3375-ab41-76be-4c08d16018a4.jpg
DELETED
Git LFS Details
|
sref/images/00/0001e4bd-e129-c246-7b4b-430eb4104deb.jpg
DELETED
Git LFS Details
|
sref/images/00/0001eed0-baa1-6cd6-2954-ed5949b1671e.jpg
DELETED
Git LFS Details
|
sref/images/00/0002038a-b293-4e91-4d91-b8d7a1a06157.jpg
DELETED
Git LFS Details
|
sref/images/00/000213a9-1a2a-5b23-776b-28b10e9d4993.jpg
DELETED
Git LFS Details
|
sref/images/00/00021ce7-24ae-a38a-53c5-8a8808a0e825.jpg
DELETED
Git LFS Details
|
sref/images/00/000233e9-54f2-271e-9ee2-103f2f2780a0.jpg
DELETED
Git LFS Details
|
sref/images/00/0002391d-4da2-c7d5-896c-0f3f076a9390.jpg
DELETED
Git LFS Details
|
sref/images/00/00023cf6-c0a8-4d78-4dd9-e85cf4bbf50d.jpg
DELETED
Git LFS Details
|
sref/images/00/00024dcd-1a29-634e-ae83-dd36c4d5b7f2.jpg
DELETED
Git LFS Details
|