Datasets:
Link paper, project page and improve metadata
#2
by nielsr HF Staff - opened
README.md
CHANGED
|
@@ -1,16 +1,25 @@
|
|
| 1 |
---
|
| 2 |
-
pretty_name: 0426 CRef/SRef LoRA Triplet Dataset
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
- zh
|
| 6 |
task_categories:
|
| 7 |
- image-to-image
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
#
|
| 11 |
|
| 12 |
-
|
| 13 |
|
|
|
|
|
|
|
|
|
|
| 14 |
- **content**: content reference image, used as `cref_0`
|
| 15 |
- **style**: style reference image, used as `sref_0`
|
| 16 |
- **target**: image generated from the combined content + style condition
|
|
@@ -77,24 +86,16 @@ print(target_caption)
|
|
| 77 |
## Which Prompt Fields Are Used For Training?
|
| 78 |
|
| 79 |
The 0426 training config uses the three lora-triplet sources:
|
|
|
|
| 80 |
|
| 81 |
-
|
| 82 |
-
cref_sref_qwen_lora_part1
|
| 83 |
-
cref_sref_flux_lora_part1
|
| 84 |
-
cref_sref_illustrious_lora_part1
|
| 85 |
-
```
|
| 86 |
-
|
| 87 |
-
In the training loader, a sample is not represented by a single prompt string. Each training choice is:
|
| 88 |
-
|
| 89 |
```text
|
| 90 |
<cref_0 image> <sref_0 image> <instruction text> <target caption text> <target image>
|
| 91 |
```
|
| 92 |
|
| 93 |
-
Only the final `target` image has `require_loss=True`; the two text fields are conditioning text.
|
| 94 |
-
|
| 95 |
For these lora-triplet sources, the training DB provides 8 text choices per sequence. Each choice uses exactly one instruction field plus one target-caption field:
|
| 96 |
|
| 97 |
-
| Instruction field
|
| 98 |
| --- | --- |
|
| 99 |
| `vault_primary_instruction_en_123` | `primary_instruction_en_123` |
|
| 100 |
| `vault_primary_instruction_cn_123` | `primary_instruction_cn_123` |
|
|
@@ -103,75 +104,24 @@ For these lora-triplet sources, the training DB provides 8 text choices per sequ
|
|
| 103 |
|
| 104 |
paired with one of:
|
| 105 |
|
| 106 |
-
| Target-caption field
|
| 107 |
| --- | --- |
|
| 108 |
| `vault_captions_scene_3_en` | `captions/scene_3_en` |
|
| 109 |
| `vault_captions_scene_3` | `captions/scene_3` |
|
| 110 |
|
| 111 |
-
So, to reproduce the training text conditioning, use one of these pairs, for example:
|
| 112 |
-
|
| 113 |
-
```python
|
| 114 |
-
instruction = row["vault_primary_instruction_en_123"]
|
| 115 |
-
target_caption = row["vault_captions_scene_3_en"]
|
| 116 |
-
texts = [instruction, target_caption]
|
| 117 |
-
```
|
| 118 |
-
|
| 119 |
-
or sample uniformly from the 8 combinations:
|
| 120 |
-
|
| 121 |
-
```python
|
| 122 |
-
import random
|
| 123 |
-
|
| 124 |
-
instruction_key = random.choice([
|
| 125 |
-
"vault_primary_instruction_en_123",
|
| 126 |
-
"vault_primary_instruction_cn_123",
|
| 127 |
-
"vault_sample_instruction_en_123",
|
| 128 |
-
"vault_sample_instruction_cn_123",
|
| 129 |
-
])
|
| 130 |
-
caption_key = random.choice([
|
| 131 |
-
"vault_captions_scene_3_en",
|
| 132 |
-
"vault_captions_scene_3",
|
| 133 |
-
])
|
| 134 |
-
|
| 135 |
-
texts = [row[instruction_key], row[caption_key]]
|
| 136 |
-
```
|
| 137 |
-
|
| 138 |
-
The columns `content_generation_prompt`, `style_generation_prompt`, and `target_generation_prompt` are provenance fields recovered from the original image-generation pipeline. They are useful for analysis, but they are **not** the primary text fields used by the 0426 VGO training loader.
|
| 139 |
-
|
| 140 |
-
All image paths in `triplets.csv` are **relative to the source directory**. For example, in `cref_sref/qwen/triplets.csv`:
|
| 141 |
-
|
| 142 |
-
```text
|
| 143 |
-
images/content/xxx.png -> cref_sref/qwen/images/content/xxx.png
|
| 144 |
-
images/style/yyy.png -> cref_sref/qwen/images/style/yyy.png
|
| 145 |
-
images/target/zzz.png -> cref_sref/qwen/images/target/zzz.png
|
| 146 |
-
```
|
| 147 |
-
|
| 148 |
-
## Main Files
|
| 149 |
-
|
| 150 |
-
| File | Meaning |
|
| 151 |
-
| --- | --- |
|
| 152 |
-
| `triplets.csv` | One row per training example. This is the file most users should start from. |
|
| 153 |
-
| `content_images.csv` | Deduplicated metadata for unique content images. |
|
| 154 |
-
| `style_images.csv` | Deduplicated metadata for unique style images. |
|
| 155 |
-
| `target_images.csv` | Deduplicated metadata for unique target images. |
|
| 156 |
-
| `summary.json` | Per-source counts and match/prompt recovery statistics. |
|
| 157 |
-
|
| 158 |
-
Important `triplets.csv` columns:
|
| 159 |
-
|
| 160 |
-
- `sequence_id`
|
| 161 |
-
- `base_model`
|
| 162 |
-
- `content_image_path`, `style_image_path`, `target_image_path`
|
| 163 |
-
- `vault_primary_instruction_en_123`, `vault_primary_instruction_cn_123`
|
| 164 |
-
- `vault_sample_instruction_en_123`, `vault_sample_instruction_cn_123`
|
| 165 |
-
- `vault_captions_scene_3_en`, `vault_captions_scene_3`
|
| 166 |
-
- `vault_texts_json`
|
| 167 |
-
- `content_generation_prompt`, `style_generation_prompt`, `target_generation_prompt` provenance fields
|
| 168 |
-
- `content_original_path`, `style_original_path`, `target_original_path` provenance fields
|
| 169 |
-
- `content_match_status`, `style_match_status`, `target_match_status`
|
| 170 |
-
- `content_prompt_status`, `style_prompt_status`, `target_prompt_status`
|
| 171 |
-
|
| 172 |
## Notes
|
| 173 |
|
| 174 |
- Images are deduplicated; the same image file may appear in multiple triplet rows.
|
| 175 |
- `original_path` and prompt fields are best-effort provenance metadata and may be unresolved for some rows.
|
| 176 |
-
- `_state/`, if present, is internal export/resume state and is not needed for normal dataset use.
|
| 177 |
- For detailed column definitions and provenance status values, see `cref_sref/README.md`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
|
|
|
| 2 |
language:
|
| 3 |
- en
|
| 4 |
- zh
|
| 5 |
task_categories:
|
| 6 |
- image-to-image
|
| 7 |
+
pretty_name: FreeStyle CRef/SRef LoRA Triplet Dataset
|
| 8 |
+
license: cc-by-nc-4.0
|
| 9 |
+
tags:
|
| 10 |
+
- style-transfer
|
| 11 |
+
- diffusion
|
| 12 |
+
- lora
|
| 13 |
+
- dual-reference-generation
|
| 14 |
---
|
| 15 |
|
| 16 |
+
# FreeStyle: Free Control of Style-Content Dual-Reference Generation from Community LoRA Mining
|
| 17 |
|
| 18 |
+
[**Project Page**](https://blue2giant.github.io/FreeStyle/) | [**Paper**](https://huggingface.co/papers/2606.20506) | [**GitHub**](https://github.com/Blue2Giant/FreeStyle)
|
| 19 |
|
| 20 |
+
This dataset contains CRef/SRef LoRA triplets exported from the 0426 diffusion training data. It was introduced as part of **FreeStyle**, a scalable dual-reference generation framework that treats community LoRAs as compositional anchors for style and content.
|
| 21 |
+
|
| 22 |
+
Each training example in this dataset consists of three images:
|
| 23 |
- **content**: content reference image, used as `cref_0`
|
| 24 |
- **style**: style reference image, used as `sref_0`
|
| 25 |
- **target**: image generated from the combined content + style condition
|
|
|
|
| 86 |
## Which Prompt Fields Are Used For Training?
|
| 87 |
|
| 88 |
The 0426 training config uses the three lora-triplet sources:
|
| 89 |
+
`cref_sref_qwen_lora_part1`, `cref_sref_flux_lora_part1`, and `cref_sref_illustrious_lora_part1`.
|
| 90 |
|
| 91 |
+
In the training loader, a sample is represented by:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
```text
|
| 93 |
<cref_0 image> <sref_0 image> <instruction text> <target caption text> <target image>
|
| 94 |
```
|
| 95 |
|
|
|
|
|
|
|
| 96 |
For these lora-triplet sources, the training DB provides 8 text choices per sequence. Each choice uses exactly one instruction field plus one target-caption field:
|
| 97 |
|
| 98 |
+
| Instruction field | Vault text index |
|
| 99 |
| --- | --- |
|
| 100 |
| `vault_primary_instruction_en_123` | `primary_instruction_en_123` |
|
| 101 |
| `vault_primary_instruction_cn_123` | `primary_instruction_cn_123` |
|
|
|
|
| 104 |
|
| 105 |
paired with one of:
|
| 106 |
|
| 107 |
+
| Target-caption field | Vault text index |
|
| 108 |
| --- | --- |
|
| 109 |
| `vault_captions_scene_3_en` | `captions/scene_3_en` |
|
| 110 |
| `vault_captions_scene_3` | `captions/scene_3` |
|
| 111 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
## Notes
|
| 113 |
|
| 114 |
- Images are deduplicated; the same image file may appear in multiple triplet rows.
|
| 115 |
- `original_path` and prompt fields are best-effort provenance metadata and may be unresolved for some rows.
|
|
|
|
| 116 |
- For detailed column definitions and provenance status values, see `cref_sref/README.md`.
|
| 117 |
+
|
| 118 |
+
## Citation
|
| 119 |
+
|
| 120 |
+
```bibtex
|
| 121 |
+
@article{lan2026freestyle,
|
| 122 |
+
title = {FreeStyle: Free Control of Style-Content Dual-Reference Generation from Community LoRA Mining},
|
| 123 |
+
author = {Lan, Jinghong and Cheng, Wei and Chen, Yunuo and Ye, Ziqi and Xing, Peng and Fang, Yixiao and Wang, Rui and Yang, Yufeng and Zhang, Xuanyang and Zou, Difan and Zeng, Xianfang and Yu, Gang and Zhang, Chi},
|
| 124 |
+
journal = {arXiv preprint arXiv:2606.20506},
|
| 125 |
+
year = {2026}
|
| 126 |
+
}
|
| 127 |
+
```
|