🚀 药丸与糖果马赛克风格 [FLUX]
本项目是一个文本到图像的生成模型,基于stable-diffusion
框架,通过lora
技术训练,能够根据包含特定关键词的提示生成具有药丸与糖果马赛克风格的图像。
🚀 快速开始
模型描述
在提示词中加入 Pill and Candy Mosaic 即可触发特定风格的图像生成。
触发词
你应该使用 Pill and Candy Mosaic
来触发图像生成。
下载模型
该模型的权重以 Safetensors 格式提供。
可在 Files & versions 标签页 下载。
使用 🧨 diffusers 库
from diffusers import AutoPipelineForText2Image
import torch
device = "cuda" if torch.cuda.is_available() else "cpu"
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to(device)
pipeline.load_lora_weights('Norod78/pill-and-candy-mosaic-style-flux', weight_name='Pill_and_Candy_Mosaic_Style_FLUX.safetensors')
image = pipeline('Pill and Candy Mosaic. Two cyclists in the foreground and one in the background').images[0]
有关更多详细信息,包括 LoRAs 的加权、合并和融合,请查看 diffusers 中加载 LoRAs 的文档。
✨ 主要特性
- 风格独特:能够生成具有药丸与糖果马赛克风格的图像。
- 易于使用:通过特定触发词即可生成相应风格的图像。
📦 安装指南
暂未提及具体安装步骤,可参考上述使用 diffusers 库的代码示例进行操作。
💻 使用示例
基础用法
from diffusers import AutoPipelineForText2Image
import torch
device = "cuda" if torch.cuda.is_available() else "cpu"
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to(device)
pipeline.load_lora_weights('Norod78/pill-and-candy-mosaic-style-flux', weight_name='Pill_and_Candy_Mosaic_Style_FLUX.safetensors')
image = pipeline('Pill and Candy Mosaic. Two cyclists in the foreground and one in the background').images[0]
高级用法
可参考 diffusers 中加载 LoRAs 的文档 进行 LoRAs 的加权、合并和融合等操作。
📚 详细文档
- 模型类型:基于
stable-diffusion
的lora
模型。
- 训练数据:
Norod78/PillAndCandyMosaic
数据集。
| 属性 | 详情 |
|------|------|
| 模型类型 | 基于stable-diffusion
的lora
模型 |
| 训练数据 | Norod78/PillAndCandyMosaic
数据集 |
📄 许可证
本模型使用 bespoke-lora-trained-license 许可证。