🚀 吉卜力工作室角色 - FLUX.1 Dev LoRA
本項目是一個基於LoRA(Low-Rank Adaptation)技術的圖像生成模型,通過對吉卜力工作室風格圖像的微調,能夠生成具有吉卜力風格的角色圖像。它為喜愛吉卜力風格的用戶提供了一種有趣的方式來創造獨特的圖像。
🚀 快速開始
推理示例
以下是使用diffusers
庫進行推理的代碼示例:
import torch
from diffusers import DiffusionPipeline
model_id = "black-forest-labs/FLUX.1-dev"
adapter_id = "alvarobartt/ghibli-characters-flux-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")
✨ 主要特性
- 風格獨特:基於吉卜力工作室風格,能夠生成具有該風格特色的角色圖像。
- 靈活定製:通過特定的提示模板,可以根據需求定製生成的圖像內容。
📚 詳細文檔
模型描述
此倉庫包含 FLUX.1-dev 的 LoRA 適配器。該適配器使用 fal.ai/models/fal-ai/flux-lora-general-training 進行微調,訓練數據是從 https://ghibli.jp 手動下載的免費使用的吉卜力工作室圖像,並託管在 alvarobartt/ghibli-characters。
提示模板
你可以使用以下模板(在為圖像添加標題時定義)來觸發圖像生成:
"Ghibli style [角色描述] with [獨特特徵], [動作或姿勢], [環境或背景], [光照或氛圍], [額外細節]"
免責聲明
根據許可規定,此微調模型僅用於個人使用,不得用於商業目的。
FLUX.1-dev 的微調版本遵循與 FLUX.1-dev 相同的許可協議,即 https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md;吉卜力工作室數據集根據其網站上的相關規定發佈了自定義的非商業許可。
📄 許可證
- 許可證名稱:flux-1-dev-non-commercial-license
- 許可證鏈接:https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
🔍 示例展示
提示文本 |
輸出圖像 |
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 |
點擊查看 |
Ghibli style Shrek, a lovable green ogre with a big smile, sitting on a moss-covered rock while enjoying a plate of freshly picked vegetables, in a magical forest filled with whimsical creatures, dappled sunlight filtering through the trees, surrounded by curious fairies peeking out from behind leaves |
點擊查看 |
Ghibli style Albus Dumbledore, a wise old wizard with long silver hair and a flowing robe, standing in a lush garden filled with colorful magical plants, gently stroking a phoenix perched on his shoulder, soft morning light filtering through the trees, surrounded by whimsical creatures curiously observing him |
點擊查看 |
Ghibli style The Grinch, a mischievous green creature with a sly grin, peeking out from behind a snow-covered tree while plotting his antics, in a quaint snowy village decorated for the holidays, warm light glowing from cozy homes, with playful snowflakes dancing in the air |
點擊查看 |
Ghibli style Santa Claus, a jolly old man with a fluffy white beard and a red coat, cheerfully preparing gifts in a cozy workshop filled with magical toys, warm golden light glowing from lanterns, surrounded by adorable elves and whimsical creatures helping him |
點擊查看 |
Ghibli style Garfield, a lazy orange cat with a mischievous grin, lounging on a sunny windowsill while dreaming of lasagna, in a cozy home filled with plants and colorful decor, warm light streaming in, with a friendly mouse peeking out from behind a flower pot |
點擊查看 |