sdxl-qwen-phase0
收藏资源简介:
SDXL–Qwen Phase-0是一个专为训练AbstractPhil/geolip-sdxl-aleph模型而构建的研究性数据集。其目标是通过整流流(rectified-flow)目标,在保持SDXL基础模型不变的情况下,用新的文本编码器(Qwen)替换原有的CLIP-G编码器进行再训练。数据集包含三个核心字段:图像(由Qwen-Image-Lightning模型根据提示词生成的1024×1024合成渲染图,使用4步蒸馏且无分类器引导)、提示词(来源于Conceptual Captions的未标注数据流,经过质量过滤和年龄内容过滤)和Aleph地址(一个32×128维的float16数组,通过冻结的aleph谱变分自编码器从提示词的字节三元组图像计算得到,作为编码器无关的、确定性的几何地址,用于重建表面形式而非语义)。数据构建过程包括提示词来源与过滤、图像生成和地址计算。数据集实施了严格的内容安全策略,包括提示词年龄正则匹配过滤和生成图像的年龄分类器过滤,从结构上排除了未成年人相关内容。该数据集规模较小(训练集约3839个样本),属于可行性研究的“第0阶段”,图像均为合成数据,继承了Qwen-Image的偏见和伪影。Aleph地址是形式重建码,不表达语义相似性。数据集适用于训练基于流匹配的文本到图像生成模型,特别是那些需要将图像作为流匹配目标,并将aleph地址作为编码器不变锚点的场景。数据遵循Apache-2.0许可证分发。
SDXL–Qwen Phase-0 is a research dataset built specifically for training the `AbstractPhil/geolip-sdxl-aleph` model. It aims to retrain the model by replacing the original CLIP-G encoder with a new text encoder (Qwen) while keeping the SDXL base model unchanged, using a rectified-flow objective. The datasets images serve as flow-matching targets for SDXL, where the model learns to reproduce these images based on new conditional inputs. The data includes three core fields: 1) **Images**: 1024×1024 synthetic renderings generated by the Qwen-Image-Lightning model from prompts (using 4-step distillation and no classifier guidance); 2) **Prompts**: Text descriptions used to generate the images, sourced from unannotated data streams of Conceptual Captions, with quality filtering (removing degenerate text) and age content filtering; 3) **Aleph addresses**: A 32×128-dimensional float16 array computed from byte trigram images of the prompts via a frozen aleph spectral variational autoencoder, serving as an encoder-agnostic, deterministic geometric address for reconstructing surface forms rather than semantics. The data construction process involves prompt sourcing and filtering, image generation with Qwen-Image-Lightning, and aleph address computation. The dataset implements strict content safety policies, including prompt age regex matching filtering and generated image age classifier filtering, structurally excluding content related to minors. It is relatively small (approximately 3,839 samples in the training set) and represents a feasibility study "Phase 0." All images are synthetic, inheriting biases and artifacts from Qwen-Image. Aleph addresses are form reconstruction codes and do not express semantic similarity. The dataset is suitable for training flow-matching-based text-to-image generation models, particularly in scenarios where images are used as flow-matching targets and aleph addresses as encoder-invariant anchors. The data is distributed under the Apache-2.0 license.
数据集概述
SDXL–Qwen Phase-0 是一个专为训练 AbstractPhil/geolip-sdxl-aleph 模型而构建的合成图像-文本配对数据集。该数据集的核心目标是在修正流(Rectified-Flow) 框架下,使用新的Qwen文本编码器替换原有的CLIP-G编码器来重新训练SDXL模型。
- 数据集大小: 约3839个样本,规模为Phase-0(
1K<n<10K),单train分割。 - 许可证: Apache-2.0。
- 语言: 英语(en)。
- 任务类别: 文生图(text-to-image)。
数据内容与结构
数据集包含三个关键字段:
| 字段 | 类型 | 描述 |
|---|---|---|
image |
Image |
由Qwen-Image-Lightning根据对应文本提示生成的1024×1024图像。这是修正流的目标图像。 |
caption |
string |
用于生成图像的文本提示。来源为Conceptual Captions,并经过了质量过滤和年龄审核。 |
aleph_address |
Array2D(shape=(32, 128), float16) |
根据caption的字节流,通过冻结的aleph模型计算得出的编码器无关几何地址。它是一个表面形式重建码,而非语义嵌入。 |
构建过程
- 字幕来源: 主要从Conceptual Captions(
unlabeled流)中获取文本,未使用其原始图像。 - 质量门控: 过滤掉退化文本(如数字坐标、符号垃圾、单字重复等),保留包含足够真实字母单词的caption。
- 图像生成: 使用Qwen-Image和
lightx2v/Qwen-Image-Lightning的4步LoRA,在无分类器引导(CFG off)条件下,以可重复的随机种子生成1024×1024图像。 - Aleph地址计算: 将caption转换为字节三元组图像,通过冻结的aleph谱VAE得到签名投影码本行,再进行自适应池化以生成固定尺寸(32×128)的地址。
内容安全机制
为遵循内容政策(CSAM),数据构建时设置了两个硬性门槛:
- 提示门控: 在图像生成前,对所有caption进行年龄标志正则表达式检查,命中则丢弃。
- 输出门控: 对生成的每张图像进行年龄分类(使用
nateraw/vit-age-classifier模型),任何被判定为未成年的图像将被直接拒绝且不写入数据集。此门控倾向于过度拒绝无人图像,以确保安全。
Aleph地址说明
- 性质:该地址是表面形式重建码,而非语义嵌入。它编码的是caption字节的形式(词法和字符重叠度高),与句子相似度几乎无关。
- 优势:
- 编码器无关:源于字节,不依赖于文本编码器(CLIP或Qwen)。
- 确定性:相同的caption总是产生相同的地址。
- 尺度无关:是底层谱VAE地址方案的一个属性。
预期用途
旨在训练图像→噪声→图像(image→noise→image)的修正流模型。该模型同时以池化文本表示和不变的aleph地址作为条件输入。主要消费模型为 geolip-sdxl-aleph。
数据加载
python from datasets import load_dataset ds = load_dataset("AbstractPhil/sdxl-qwen-phase0", split="train") row = ds[0] img = row["image"] caption = row["caption"] import numpy as np address = np.asarray(row["aleph_address"], dtype=np.float16)
来源与许可
- 图像: 由Qwen-Image(Apache-2.0)生成。
- 字幕: 源自Conceptual Captions(Google),遵守其条款。
- Aleph地址: 由冻结的aleph模型
AbstractPhil/geolip-aleph-void产生。
局限性
- 图像为合成图像,继承Qwen-Image的偏差和伪影。
- 字幕经过过滤但未人工精选,仍存在噪声。
- 年龄输出门控可能导致部分无人图像被过度拒绝。
aleph_address是重建码,而非语义向量。- 规模较小(Phase-0),仅适用于可行性验证,不适合大规模训练。




