🚀 Flux.1-Dev-Movie-Boards-LoRA
本模型是一个文本到图像的LoRA模型,可基于特定提示词生成电影海报风格的图像。目前模型仍在训练阶段,非最终版本,可能存在瑕疵,部分情况下表现欠佳。
🚀 快速开始
环境设置
import torch
from pipelines import DiffusionPipeline
base_model = "black-forest-labs/FLUX.1-dev"
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
lora_repo = "prithivMLmods/Flux.1-Dev-Movie-Boards-LoRA"
trigger_word = "movieboard"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
触发词使用
你应该使用 movieboard
来触发图像生成。
模型下载
该模型的权重以Safetensors格式提供。
点击下载,可在“文件与版本”选项卡中获取。
✨ 主要特性
- 文本到图像转换:基于输入的文本提示生成电影海报风格的图像。
- LoRA技术:在基础模型上进行微调,提高特定任务的性能。
📦 安装指南
暂未提供具体安装步骤,可参考上述快速开始部分的代码示例进行环境设置。
💻 使用示例
基础用法
prompt = "movieboard, A black and white photograph of a man in a space suit is seen on a page of a magazine. The man is wearing a white helmet on his head, and is standing in a field of tall grass. The background of the photograph is a bright yellow circle, and the word 'InterSTAR' is written in bold black letters at the top of the page. The number '20' is in the upper right corner of the frame."
image = pipe(prompt).images[0]
image.save("output_image.png")
📚 详细文档
模型描述
prithivMLmods/Flux.1-Dev-Movie-Boards-LoRA
图像生成参数如下:
参数 |
值 |
参数 |
值 |
LR Scheduler |
constant |
Noise Offset |
0.03 |
Optimizer |
AdamW |
Multires Noise Discount |
0.1 |
Network Dim |
64 |
Multires Noise Iterations |
10 |
Network Alpha |
32 |
Repeat & Steps |
16 & 2100 |
Epoch |
14 |
Save Every N Epochs |
1 |
标注方式:florence2-en(自然语言 & 英语)
训练使用的图像总数:11
最佳尺寸
- 768 x 1024(最佳)
- 1024 x 1024(默认)
📄 许可证
本模型使用的许可证为 creativeml-openrail-m
。
模型示例展示
⚠️ 重要提示
该模型仍处于训练阶段,并非最终版本,可能存在瑕疵,部分情况下表现欠佳。
模型示例
以下是一些使用该模型生成的图像示例:
输入文本 |
输出图像 |
'movieboard, A black and white photograph of a man in a space suit is seen on a page of a magazine. The man is wearing a white helmet on his head, and is standing in a field of tall grass. The background of the photograph is a bright yellow circle, and the word "InterSTAR" is written in bold black letters at the top of the page. The number "20" is in the upper right corner of the frame.' |
点击查看 |
'movieboard, a vibrant orange-brown poster is adorned with a black frame. The poster features a black figure of a robot, with the words "Iron Man" written in bold black letters at the top of the poster. The robot is facing to the right, with its arms outstretched. The backdrop is a stark white wall, with a textured black border. The bottom left corner of the frame has the number "08" in white letters.' |
点击查看 |
'movieboard, Captured from a high-angle perspective on a white backdrop, a black framed poster is adorned with the words "SPIDER-MAN" in bold, black font. The poster features a black silhouette of a spider-man in a green jacket, blue pants, and red and white shoes. The man is jumping in the air, with his arms out to the side. His legs are bent at the knees, and his feet are crossed at the bottom of the frame. The backdrop is a light gray, with a white outline of a cityscape in the background. The text "into the Spider-Verse" is written in bold black font at the top of the poster. Below the poster, the date "1/2018" is printed in white font.' |
点击查看 |
'movieboard, Captured on a white poster, a man in a gray jacket and black pants is holding a gray bag in his left hand. He is standing in front of a large red wave. Above the man, the word "Joker" is written in bold black letters. To the top left of the poster, there is a rainbow colored logo.' |
点击查看 |