🚀 电影感照片生成模型 - cinematicShot - Pics - Flux
本模型专注于生成具有电影感的照片,通过特定的参数设置和触发词,能够根据文本描述生成高质量的图像,为图像创作提供了新的可能。
🚀 快速开始
模型设置
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 = "strangerzonehf/cinematicShot-Pics-Flux"
trigger_word = "cinematic shot"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
触发图像生成
你可以使用 cinematic shot
作为触发词来生成图像。
模型下载
本模型的权重以 Safetensors 格式提供。你可以在 Files & versions 标签页 下载。
✨ 主要特性
- 基于
black - forest - labs/FLUX.1 - dev
基础模型,结合 LoRA 技术进行微调。
- 支持使用
cinematic shot
触发词生成具有电影感的图像。
- 提供多种图像生成示例,涵盖不同场景和人物形象。
📦 安装指南
安装所需的库:
import torch
from pipelines import DiffusionPipeline
💻 使用示例
基础用法
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 = "strangerzonehf/cinematicShot-Pics-Flux"
trigger_word = "cinematic shot"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
prompt = 'cinematic shot, Captured at eye - level on a cloudy day, a woman stands with her arms outstretched, wearing a brown turtleneck and blue jeans. Her jacket is draped over her shoulders, adding a touch of warmth to her outfit. The jacket is adorned with a white fur trim. The womans hair is pulled back in a ponytail, framing her face. In the distance, a body of water can be seen, with a mountain range in the background.'
image = pipe(prompt).images[0]
image.save("output_image.png")
📚 详细文档
图像生成参数
属性 |
详情 |
基础模型 |
black - forest - labs/FLUX.1 - dev |
触发提示词 |
cinematic shot |
许可证 |
creativeml - openrail - m |
图像生成示例
文本提示 |
输出图像 |
cinematic shot, Captured at eye - level on a cloudy day, a woman stands with her arms outstretched, wearing a brown turtleneck and blue jeans. Her jacket is draped over her shoulders, adding a touch of warmth to her outfit. The jacket is adorned with a white fur trim. The womans hair is pulled back in a ponytail, framing her face. In the distance, a body of water can be seen, with a mountain range in the background. |
[点击查看](https://cdn - uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/sfTr7x9n4dUxHAj952aVN.png) |
cinematic shot, a medium - angle shot captures a young woman seated in a convertible car. She is dressed in a red and blue sweater, a white scarf, and blue jeans. Her left arm is raised above her head, adding a touch of balance to the scene. The cars interior is a deep blue, with a black seat, and a white canopy. The womans gaze is directed towards the left side of the frame, and her left hand is resting on her right arm. |
点击查看 |
cinematic shot, Captured at eye - level on a high - angle shot of a young man sitting on the hood of a white sports car. The man is dressed in a black and white jacket, black pants, and white sneakers. His hair is short and dark, and he has a serious expression on his face. The car is adorned with the word Color in bold black letters, and the back of the car is a bright orange. The sky behind the man is a light blue with a few wispy clouds. |
点击查看 |
cinematic shot, a medium - sized man stands in the foreground of the frame. He is dressed in a black jacket, black pants, and a black backpack. His hair is short and dark, and hes looking off to the side. The backdrop is a stark white wall, and the ceiling is adorned with metal pipes and beams. To the left of the man, a man with dark hair and glasses is looking off into the distance. |
点击查看 |
最佳尺寸与推理
尺寸 |
纵横比 |
推荐情况 |
1280 x 832 |
3:2 |
最佳 |
1024 x 1024 |
1:1 |
默认 |
推理范围
🔧 技术细节
图像处理参数
参数 |
值 |
参数 |
值 |
LR 调度器 |
constant |
噪声偏移 |
0.03 |
优化器 |
AdamW |
多分辨率噪声折扣 |
0.1 |
网络维度 |
64 |
多分辨率噪声迭代次数 |
10 |
网络 Alpha |
32 |
重复与步数 |
17 & 2600 |
训练轮数 |
22 |
每 N 轮保存一次 |
1 |
标注信息
标注使用 florence2 - en
(自然语言 & 英语)。
训练图像数量
总共使用 33 张图像进行训练。
📄 许可证
本模型使用 creativeml - openrail - m
许可证。