🚀 notion-style-lora
notion-style-lora是一个基于AI的文本到图像生成模型,借助特定的触发词,可生成具有特定风格的图像。该模型使用 AI Toolkit by Ostris 进行训练,支持多种工具使用。
🚀 快速开始
触发词使用
你需要使用 not1on_style
来触发图像生成。
模型下载与使用
此模型的权重以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('shinealom/notion-style-lora', weight_name='notion-style-lora.safetensors')
image = pipeline('[trigger] with red hair, playing chess at the park, bomb going off in the background').images[0]
image.save("my_image.png")
更多详细信息,包括LoRAs的加权、合并和融合,请查看 diffusers中加载LoRAs的文档。
✨ 主要特性
- 多样化场景生成:能够根据不同的文本描述,生成如公园下棋、舞台表演、后末日世界等多样化场景的图像。
- 多工具支持:支持ComfyUI、AUTOMATIC1111、SD.Next、Invoke AI等多种图像生成工具。
- 便捷的库支持:可方便地与 🧨 diffusers 库 集成使用。
📦 安装指南
下载模型
在 Files & versions 标签页 下载以Safetensors格式提供的模型权重。
依赖安装
如果你想使用 diffusers
库,需要安装相关依赖:
pip install diffusers torch
💻 使用示例
基础用法
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('shinealom/notion-style-lora', weight_name='notion-style-lora.safetensors')
image = pipeline('[trigger] with red hair, playing chess at the park, bomb going off in the background').images[0]
image.save("my_image.png")
高级用法
你可以根据 diffusers中加载LoRAs的文档 对LoRAs进行加权、合并和融合等操作,以实现更复杂的图像生成效果。
📚 详细文档
模型信息
示例展示
以下是一些示例文本及其生成的图像链接:
示例文本 |
图像链接 |
[trigger] with red hair, playing chess at the park, bomb going off in the background |
samples/1730707433252__000002500_0.jpg |
[trigger] holding a coffee cup, in a beanie, sitting at a cafe |
samples/1730707443278__000002500_1.jpg |
[trigger] is a DJ at a night club, fish eye lens, smoke machine, lazer lights, holding a martini |
samples/1730707453302__000002500_2.jpg |
[trigger] showing off his cool new t shirt at the beach, a shark is jumping out of the water in the background |
samples/1730707463320__000002500_3.jpg |
[trigger] building a log cabin in the snow covered mountains |
samples/1730707473353__000002500_4.jpg |
[trigger] playing the guitar, on stage, singing a song, laser lights, punk rocker |
samples/1730707483390__000002500_5.jpg |
[trigger] with a beard, building a chair, in a wood shop |
samples/1730707493411__000002500_6.jpg |
photo of a [trigger], white background, medium shot, modeling clothing, studio lighting, white backdrop |
samples/1730707503424__000002500_7.jpg |
[trigger] holding a sign that says, ''this is a sign'' |
samples/1730707513447__000002500_8.jpg |
[trigger], in a post apocalyptic world, with a shotgun, in a leather jacket, in a desert, with a motorcycle |
samples/1730707523503__000002500_9.jpg |
📄 许可证
本模型使用 flux-1-dev-non-commercial-license 许可证,详情请查看 许可证链接。