🚀 照片拍摄迷你LoRA模型
照片拍摄迷你LoRA模型是一个基于Stable Diffusion的低秩自适应(LoRA)模型,可用于生成高质量的照片风格图像。该模型通过特定的参数设置和触发提示词,能够生成具有不同风格和主题的照片。
🚀 快速开始
环境设置
使用以下代码示例来设置环境并加载模型:
pipe = StableDiffusionXLPipeline.from_pretrained(
"-------------xxxxxxxxx----------",
torch_dtype=torch.float16,
use_safetensors=True,
)
pipe = StableDiffusionXLPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0",
torch_dtype=torch.float16,
use_safetensors=True,
)
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
pipe.load_lora_weights("prithivMLmods/Canopus-Photo-Shoot-Mini-LoRA", weight_name="Canopus-Photo-Shoot-Mini-LoRA.safetensors", adapter_name="photo")
pipe.set_adapters("photo")
pipe.to("cuda")
✨ 主要特性
- 多样化图像生成:可以根据不同的触发提示词生成各种风格和主题的照片,如人物特写、街拍等。
- 参数可调节:通过设置不同的图像处理参数,可以控制图像生成的效果。
📚 详细文档
模型描述
Canopus - 照片拍摄迷你LoRA模型的图像处理参数如下:
参数 |
值 |
LR调度器 |
constant |
噪声偏移 |
0.03 |
优化器 |
AdamW |
多分辨率噪声折扣 |
0.1 |
网络维度 |
64 |
多分辨率噪声迭代次数 |
10 |
网络Alpha |
32 |
重复次数 |
27 |
训练轮数 |
20 |
每N轮保存一次 |
1 |
触发提示词
以下是一些触发提示词的示例,你可以根据这些提示词生成相应的图像:
Photography, upper body, yellow hue, woman model, solid yellow backdrop, yellow eyes detailing, using a camera setup that mimics a large aperture, f/1.4 --ar 9:16 --style raw
Young red-haired man, in turtleneck shirt, gold color, dynamic pose, side view, light background, front lighting, medium shot, high quality photo --ar 2:3 --v 5
A photo of an attractive man in his thirties, wearing a black coat and yellow scarf with a brown pattern inside a building talking on a phone standing near a modern glass skyscraper in London, shot from below looking up at him in the style of street photography, cinematic. --ar 85:128 --v 6.0 --style raw
触发关键词
你应该使用 Photo Shoot
来触发图像生成。
下载模型
该模型的权重以Safetensors格式提供,你可以在这里的“文件与版本”选项卡中下载。
📄 许可证
本模型遵循 creativeml-openrail-m
许可证。