StyleTransfer-SFT-OmniStyle
收藏资源简介:
OmniStyle-150K是一个用于风格迁移SFT训练的三元组数据集,包含143,992张风格化结果图片,1,812张内容图片和950张风格图片。数据集按照<内容图片名>&&<风格图片名>.png的格式组织文件,便于风格迁移的训练。
OmniStyle-150K is a triplet dataset designed for supervised fine-tuning (SFT) of style transfer tasks. It contains 143,992 stylized result images, 1,812 content images, and 950 style images. The dataset organizes its files in the format of <content_image_name>&&<style_image_name>.png, which facilitates the training of style transfer models.
StyleTransfer-SFT-OmniStyle 数据集概述
基本信息
- 数据集名称: StyleTransfer-SFT-OmniStyle (OmniStyle-150K)
- 主要用途: 用于风格迁移的监督式微调训练
- 任务类别: 图像到图像
- 核心标签: 风格迁移、监督式微调、omnistyle
- 许可协议: Apache-2.0
- 数据规模: 100K 到 1M 之间
数据统计
- 风格化结果图像: 143,992 张
- 内容图像: 1,812 张
- 风格参考图像: 950 张
数据结构
数据集采用三元组格式组织,目录结构如下:
OmniStyle-150k/ ├── content/ # 原始内容图像 ├── style/ # 风格参考图像 └── OmniStyle-150K/ # 风格化结果图像 └── <内容图像名>&&<风格图像名>.png
数据格式说明
- 每个风格化结果图像的文件名格式为:
<内容图像名>&&<风格图像名>.png - 内容: 待进行风格化的输入图像
- 风格: 作为参考的风格图像
- 结果: 风格化后的输出图像
使用方式
数据准备
bash
合并并解压文件
cat omnistyle_150k.tar.part_* > omnistyle_150k.tar tar -xvf omnistyle_150k.tar
数据加载示例
python import os for img in os.listdir("OmniStyle-150k/OmniStyle-150K"): content_name, style_name = img.split("&&") style_name = style_name[:-4] # 内容图像路径: OmniStyle-150k/content/{content_name} # 风格图像路径: OmniStyle-150k/style/{style_name} # 结果图像路径: OmniStyle-150k/OmniStyle-150K/{img}




