🚀 Tosti vector 1 (1500 steps)
本项目是一个基于特定训练流程得到的模型,可用于生成具有特定风格的图像,借助相关工具和库,能方便地实现图像生成功能。
🚀 快速开始
你可以使用 in a dark fantasy style, grainy
来触发图像生成。
示例展示
✨ 主要特性
- 多风格图像生成:能够生成多种不同风格和主题的数字卡通插画,涵盖人物、动物、奇幻生物等多种元素。
- 特定风格触发:使用特定的触发词
in a dark fantasy style, grainy
可以生成具有黑暗奇幻风格且带颗粒感的图像。
- 与
diffusers
库兼容:可以与 diffusers
库结合使用,方便进行图像生成操作。
📦 安装指南
使用该模型前,你需要安装 diffusers
库,可参考以下代码示例:
from diffusers import AutoPipelineForText2Image
import torch
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.float16).to('cuda')
pipeline.load_lora_weights('lichorosario/flux-samhtr-remastered', weight_name='lora.safetensors')
💻 使用示例
基础用法
from diffusers import AutoPipelineForText2Image
import torch
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.float16).to('cuda')
pipeline.load_lora_weights('lichorosario/flux-samhtr-remastered', weight_name='lora.safetensors')
image = pipeline('your prompt').images[0]
高级用法
若你想了解更多细节,包括 LoRAs 的加权、合并和融合等操作,请查看 diffusers 中加载 LoRAs 的文档。
📚 详细文档
模型信息
属性 |
详情 |
模型类型 |
基于 black-forest-labs/FLUX.1-schnell 的文本到图像生成模型 |
训练数据 |
未提及 |
触发词说明
你应该使用 in a dark fantasy style, grainy
来触发图像生成。
示例展示
以下是一些使用该模型生成的图像示例:
- 示例一
- 输入文本:This is a playful digital cartoon illustration featuring a young boy and a white cat... in a dark fantasy style, grainy
- 输出图像:images/example_xi42rsvku.png
- 示例二
- 输入文本:This is a digital cartoon illustration that portrays a character reminiscent of a horror or dark fantasy figure... in a dark fantasy style, grainy
- 输出图像:images/example_q27aeqwdr.png
(此处省略其他示例,可根据原文档依次列出)
📄 许可证
本模型使用 flux-1-dev-non-commercial-license 许可证。