🚀 故事板场景生成模型 Flux v3_HLH
这是一个基于AI的文本到图像生成模型,可根据特定的文本提示生成相关的黑白插画场景,适用于多种图像生成工具和库。
🚀 快速开始
触发词使用
你需要使用 SSGM
来触发图像生成。
模型下载与使用
此模型的权重以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('jwywoo/storyboard-scene-generation-model-flux-v3-HLH', weight_name='storyboard_scene_generation_model_flux_v3_HLH.safetensors')
image = pipeline('[trigger] black and white color illustration, two asian males in their late 30s and one asian female in her late 20s having a conversation about economic issue in a newsroom, while laughing and arguing').images[0]
image.save("my_image.png")
更多详细信息,包括LoRAs的加权、合并和融合,请查看 diffusers中加载LoRAs的文档。
💻 使用示例
基础用法
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('jwywoo/storyboard-scene-generation-model-flux-v3-HLH', weight_name='storyboard_scene_generation_model_flux_v3_HLH.safetensors')
prompt = '[trigger] black and white color illustration, two asian males in their late 30s and one asian female in her late 20s having a conversation about economic issue in a newsroom, while laughing and arguing'
image = pipeline(prompt).images[0]
image.save("my_image.png")
高级用法
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('jwywoo/storyboard-scene-generation-model-flux-v3-HLH', weight_name='storyboard_scene_generation_model_flux_v3_HLH.safetensors')
prompts = [
'[trigger] black and white color illustration, one young female professor explains about why people can\'t date while 3~4 students in their early 30s got shocked',
'[trigger] black and white color illustration, one asian male in his 30s and one asian female in her early 20s sitting on the different couch talking about their life while the guy is trying to make fun of her'
]
for i, prompt in enumerate(prompts):
image = pipeline(prompt).images[0]
image.save(f"image_{i}.png")
📄 许可证
本模型使用 flux-1-dev-non-commercial-license 许可证。
📦 模型信息
属性 |
详情 |
基础模型 |
black-forest-labs/FLUX.1-dev |
实例提示词 |
SSGM |
许可证 |
flux-1-dev-non-commercial-license |
许可证链接 |
https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md |