🚀 故事板場景生成模型 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 |