sana-vae-latents
收藏资源简介:
SANA VAE Latents — DC-AE f32c32是一个预计算的VAE潜在表示数据集,专门设计用于训练NVLabs SANA模型。它包含约490万个动漫和插画图像的编码潜在表示,并排除了AI生成的艺术作品。数据以WebDataset格式存储,每个样本包括一个.npy文件(存储形状为[32, H/32, W/32]的fp16精度潜在向量)和一个.json文件(包含提示词、宽度、高度等元数据)。图像使用DC-AE f32c32自动编码器进行编码,并经过缩放因子0.41407调整,同时被调整大小并中心裁剪至最近的1024像素宽高比桶。数据来源于gelbooru-darask、gelbooru-darask2和danbooru-darask三个标注数据集,但需注意gelbooru-darask和gelbooru-darask2之间存在约143万个ID重叠,使用前需进行去重处理。该数据集适用于文本到图像生成模型的训练,特别针对动漫和插画风格的图像生成任务。
SANA VAE Latents — DC-AE f32c32 is a pre-computed VAE latent representation dataset specifically designed for training the NVLabs SANA model. It contains encoded latent representations of approximately 4.9 million anime and illustration images, with AI-generated artworks excluded. The data is stored in WebDataset format, where each sample includes a .npy file (storing fp16-precision latent vectors with shape [32, H/32, W/32]) and a .json file containing metadata such as prompts, width, height and other relevant information. The images were encoded using the DC-AE f32c32 autoencoder, adjusted with a scaling factor of 0.41407, and resized and center-cropped to the nearest 1024-pixel aspect ratio buckets. The dataset is sourced from three annotated datasets: gelbooru-darask, gelbooru-darask2 and danbooru-darask. Note that there are approximately 1.43 million overlapping IDs between gelbooru-darask and gelbooru-darask2, so deduplication is required before use. This dataset is suitable for training text-to-image generation models, particularly for anime and illustration style image generation tasks.
数据集概述:SANA VAE Latents — DC-AE f32c32
- 规模:约 490 万个独有样本(1M < n < 10M),原始数据存在约 143 万重复 ID,去重后得到约 490 万唯一潜变量。
- 内容结构:以 WebDataset
.tarshard 格式存储,每个样本包含一对文件,通过源图像 ID 关联:{id}.npy:VAE 潜变量,FP16 格式,形状为[32, H/32, W/32]。{id}.json:元数据,包含file_name(指向.npy)、prompt(图文描述)、width和height(桶尺寸)。
- 技术细节:
- VAE 模型:使用
mit-han-lab/dc-ae-f32c32-sana-1.1-diffusers的 DC-AE 自编码器。 - 编码流程:图像先缩放并中心裁剪至最接近的 SANA 1024px 宽高比桶(
ASPECT_RATIO_1024),然后编码并乘以缩放因子0.41407。元数据中的W和H对应桶尺寸。 - 图文描述:采用 NetaYume 风格的丰富描述,来自源数据集。
- VAE 模型:使用
- 数据来源:动漫 / 插画图像(排除 AI 生成艺术),分别来自:
darask0/gelbooru-daraskdarask0/gelbooru-darask2darask0/danbooru-darask
- 去重提醒:
gelbooru-darask与gelbooru-darask2存在约 143 万重叠 ID,构建索引时需按{id}去重,保留每个.npy的唯一条目。 - 文件命名:Shard 文件名格式为
shard_s{k}of{N}_{NNNNNN}.tar,其中k为产生进程的工作器索引,所有.tar文件统一处理。 - 硬件生成:使用 RTX PRO 6000 GPU 集群计算。




