🚀 吉卜力工作室角色 - SD 3.5 大型 LoRA
本項目是基於 StableDiffusion 3.5 Large 微調的 LoRA 適配器,藉助吉卜力工作室的圖像數據,能生成具有吉卜力風格的圖像,為圖像創作帶來新的可能。
✨ 主要特性
- 風格獨特:基於吉卜力工作室的圖像數據微調,生成具有吉卜力風格的圖像。
- 易於使用:提供清晰的提示模板,方便用戶生成所需圖像。
- 兼容性強:與
diffusers
庫兼容,支持高效推理。
📚 詳細文檔
模型描述
本倉庫包含適用於 StableDiffusion 3.5 Large 的 LoRA 適配器。該適配器使用 Diffusers + Dreambooth 進行微調,訓練數據為從 吉卜力工作室官網 手動下載的免費使用圖像,並託管在 alvarobartt/ghibli-characters。
提示模板
在觸發圖像生成時,你應使用以下模板(在為圖像添加標題註釋時定義):
"吉卜力風格 [角色描述] 具備 [獨特特徵],呈現 [動作或姿勢],處於 [環境或背景] 中,有著 [光線或氛圍],還有 [額外細節]"
模型信息
屬性 |
詳情 |
基礎模型 |
stabilityai/stable-diffusion-3.5-large |
庫名稱 |
diffusers |
標籤 |
text-to-image, diffusers-training, diffusers, lora, sd3.5, sd3.5-diffusers, template:sd-lora, endpoints-template |
實例提示 |
吉卜力風格 [角色描述] 具備 [獨特特徵],呈現 [動作或姿勢],處於 [環境或背景] 中,有著 [光線或氛圍],還有 [額外細節] |
許可證 |
other |
許可證名稱 |
stabilityai-ai-community |
許可證鏈接 |
https://huggingface.co/stabilityai/stable-diffusion-3.5-large/blob/main/LICENSE.md |
數據集 |
alvarobartt/ghibli-characters |
任務類型 |
text-to-image |
💻 使用示例
基礎用法
import torch
from diffusers import DiffusionPipeline
model_id = "stabilityai/stable-diffusion-3.5-large"
adapter_id = "alvarobartt/ghibli-characters-sd3.5-lora"
pipeline = DiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.bfloat16)
pipeline.load_lora_weights(adapter_id)
pipeline.to("cuda")
prompt = (
"Ghibli style futuristic stormtrooper with glossy white armor and a sleek helmet,"
" standing heroically on a lush alien planet, vibrant flowers blooming around, soft"
" sunlight illuminating the scene, a gentle breeze rustling the leaves"
)
image = pipeline(
prompt=prompt,
num_inference_steps=30,
width=1024,
height=768,
guidance_scale=3.5,
).images[0]
image.save("ghibli.png", format="PNG")
注意事項
⚠️ 重要提示
此推理過程需要 diffusers
0.31.0 或更高版本,詳情請參閱 發佈說明。
📄 許可證
本微調模型僅供 個人使用,不得用於商業目的,具體許可信息請參考:https://huggingface.co/stabilityai/stable-diffusion-3.5-large/blob/main/LICENSE.md。吉卜力工作室數據集依據其官網相關內容解讀,採用自定義非商業許可證發佈。