🚀 sweet-brush
sweet-brush是一个文本到图像的模型,借助AI Toolkit by Ostris进行训练,能生成具有特定风格的图像,可用于多种图像生成工具。
🚀 快速开始
触发词
你需要使用 in the style of TOK
来触发图像生成。
下载模型并在不同工具中使用
此模型的权重以Safetensors格式提供。你可以在 Files & versions 标签页 下载。下载后可在ComfyUI、AUTOMATIC1111、SD.Next、Invoke AI等工具中使用。
使用 🧨 diffusers 库
from diffusers import AutoPipelineForText2Image
import torch
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to('cuda')
pipeline.load_lora_weights('fffiloni/sweet-brush', weight_name='sweet-brush.safetensors')
image = pipeline('A person in a bustling cafe. in the style of TOK').images[0]
image.save("my_image.png")
有关更多详细信息,包括LoRA的加权、合并和融合,请查看 diffusers中加载LoRA的文档。
💻 使用示例
基础用法
from diffusers import AutoPipelineForText2Image
import torch
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to('cuda')
pipeline.load_lora_weights('fffiloni/sweet-brush', weight_name='sweet-brush.safetensors')
image = pipeline('A person in a bustling cafe. in the style of TOK').images[0]
image.save("my_image.png")
高级用法
目前文档未提供高级用法示例,你可以参考 diffusers中加载LoRA的文档 进行更复杂的操作。
📄 许可证
本模型使用的许可证为 flux-1-dev-non-commercial-license
,你可以通过 此链接 查看许可证详情。
📦 模型信息
属性 |
详情 |
基础模型 |
black-forest-labs/FLUX.1-dev |
触发提示词 |
in the style of TOK |
许可证 |
other |
许可证名称 |
flux-1-dev-non-commercial-license |
许可证链接 |
https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md |
🔍 示例展示
输入文本 |
输出图像 |
a coi fish. in the style of TOK |
示例图片 |
a panda on eucalyptus branch, sleeping. in the style of TOK |
示例图片 |
a boy snowboarding. in the style of TOK |
示例图片 |
a man tennis player playing tennis on tennis court. in the style of TOK |
示例图片 |
playing curling. in the style of TOK |
示例图片 |
a man playing billard. in the style of TOK |
示例图片 |
a bartender shaking a cocktail. in the style of TOK |
示例图片 |
old fierce pirate holding a shovel digging to find a treasure. in the style of TOK |
示例图片 |
a picturesque village nestled amidst rolling hills and colorful meadows. We see quaint houses with smoke curling from chimneys and children playing in the streets.. in the style of TOK |
示例图片 |
a panda playing football. in the style of TOK |
示例图片 |
an illustration of a chameleon on a old wall. in the style of TOK |
示例图片 |