🚀 Norod78/Flux_1_Dev_LoRA_Paper-Cutout-Style模型
该项目提供了用于black-forest-labs/FLUX.1-dev
的LoRA权重,能够生成具有剪纸风格的图像,可通过特定关键词触发图像生成,使用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('Norod78/Flux_1_Dev_LoRA_Paper-Cutout-Style', weight_name='Flux_1_Dev_LoRA_Paper-Cutout-Style.safetensors')
image = pipeline('Gal Gadot as wonderwoman, Paper Cutout Style').images[0]
更多关于加载、加权、合并和融合LoRAs的详细信息,请查看 diffusers中加载LoRAs的文档。
✨ 主要特性
- 特定风格生成:能够生成具有剪纸风格的图像。
- 易于使用:借助
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('Norod78/Flux_1_Dev_LoRA_Paper-Cutout-Style', weight_name='Flux_1_Dev_LoRA_Paper-Cutout-Style.safetensors')
image = pipeline('Gal Gadot as wonderwoman, Paper Cutout Style').images[0]
高级用法
文档未提供高级用法代码示例,故跳过此部分。
📚 详细文档
模型描述
这些是用于black-forest-labs/FLUX.1-dev
的Norod78/Flux_1_Dev_LoRA_Paper-Cutout-Style
LoRA权重。权重是使用 fal.ai Flux训练器 进行训练的。
触发词
你应该使用 Paper Cutout Style
来触发图像生成。
数据集
该模型使用了Norod78/PaperCutoutStyle
数据集进行训练。
示例展示
文本提示 |
输出图像 |
The cookie monster, Paper Cutout Style |
点击查看 |
Gal Gadot as wonderwoman, Paper Cutout Style |
点击查看 |
The Joker, Paper Cutout Style |
点击查看 |
A green Cthulhu is rising from the blue sea in a great lightning storm, based on a story by H.P. Lovecraft, Paper Cutout Style |
点击查看 |
Kermit the frog, Paper Cutout Style |
点击查看 |
🔧 技术细节
文档未提供具体的技术实现细节,故跳过此章节。
📄 许可证
请遵守 此处 描述的许可条款。