🚀 照片拍攝迷你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
許可證。