🚀 紫色梦幻通量LoRA模型
本项目是一个文本到图像生成的LoRA模型,基于特定基础模型训练,能根据输入的文本描述生成相关图像,目前仍在训练阶段。
🚀 快速开始
安装与设置
import torch
from pipelines import DiffusionPipeline
base_model = "black-forest-labs/FLUX.1-dev"
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
lora_repo = "prithivMLmods/Purple-Dreamy-Flux-LoRA"
trigger_word = "Purple Dreamy"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
触发图像生成
你应该使用 Purple Dreamy
来触发图像生成。
模型下载
此模型的权重以Safetensors格式提供。
点击下载 ,可在“文件与版本”选项卡中获取。
✨ 主要特性
- 文本到图像生成:根据输入的文本描述生成对应的图像。
- LoRA技术:基于LoRA技术进行训练,可与基础模型结合使用。
📦 安装指南
安装步骤已在“快速开始”部分展示,需导入必要的库,加载基础模型和LoRA模型,并将其部署到指定设备。
💻 使用示例
基础用法
import torch
from pipelines import DiffusionPipeline
base_model = "black-forest-labs/FLUX.1-dev"
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
lora_repo = "prithivMLmods/Purple-Dreamy-Flux-LoRA"
trigger_word = "Purple Dreamy"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
📚 详细文档
模型描述
prithivMLmods/Purple-Dreamy-Flux-LoRA
图像生成参数
属性 |
详情 |
LR调度器 |
constant |
噪声偏移 |
0.03 |
优化器 |
AdamW |
多分辨率噪声折扣 |
0.1 |
网络维度 |
64 |
多分辨率噪声迭代次数 |
10 |
网络Alpha值 |
32 |
重复次数与步数 |
22 & 2.2K |
训练轮数 |
15 |
每N轮保存一次 |
1 |
标注方式:florence2 - en(自然语言 & 英语)
用于训练的总图像数量:17 [高分辨率]
最佳尺寸
数据来源
模型托管地址
🧨 模型托管在此处:https://huggingface.co/spaces/prithivMLmods/FLUX-LoRA-DLC
模型示例展示
示例文本及输出图像
- 文本:'Purple Dreamy, a medium - angle shot of a young woman with long brown hair, wearing a pair of eye - level glasses, stands in front of a backdrop of purple and white lights. The womans eyes are closed, her lips are slightly parted, as if she is looking up at the sky. Her hair is cascading over her shoulders, framing her face. She is wearing a sleeveless bra, adorned with tiny white dots, and a gold chain necklace around her neck. Her left earrings are dangling from her ears, adding a pop of color to the scene.'
输出图像:点击查看
- 文本:'Purple Dreamy, a sparrow is perched on a branch, facing the left side of the frame. The sparrows head is turned slightly to the right, with its beak pointed towards the left. Its eyes are a piercing blue, and its wings are a light brown, while its tail is a darker shade of brown. The birds beak is pointed to the left, and its eyes are slightly open. The background is blurred, but it is a soft, pinkish hue. There are twigs and branches behind the sparrow, adding a pop of color to the scene.'
输出图像:点击查看
- 文本:'Purple Dreamy, a medium - sized woman with long dark brown hair, wearing a pink sleeveless dress adorned with white dots. Her eyes are closed, and her lips are slightly parted, as if she is sleeping. Her left arm is raised in the air, while her right arm is stretched out to the side. She is wearing a gold necklace with a pendant, adding a touch of charm to her outfit. The backdrop is a vibrant pink, with a starburst effect.'
输出图像:点击查看
其他示例图像

📄 许可证
本模型使用的许可证为:creativeml - openrail - m
⚠️ 重要提示
该模型仍处于训练阶段,这不是最终版本,可能会包含瑕疵,并且在某些情况下表现不佳。