🚀 👑 キャサリン・ハイグル (90年代)(Flux) 🎬
このLoRAモデルは、テキストから画像生成を行うStable Diffusionベースのモデルで、キャサリン・ハイグルをテーマにしたリアルな画像を生成することができます。
🚀 クイックスタート
このモデルを使用するには、以下の手順に従ってください。
モデルのダウンロード
モデルの重みはSafetensors形式で提供されています。こちらからダウンロードできます。
diffusersライブラリを使用した実行
以下のコードを使用して、モデルを実行することができます。
from diffusers import AutoPipelineForText2Image
import torch
device = "cuda" if torch.cuda.is_available() else "cpu"
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to(device)
pipeline.load_lora_weights('Keltezaa/katherine-heigl-90s-flux', weight_name='KatherineHeigl_flux_lora_v1.safetensors')
image = pipeline('Breathtaking over the shoulder shot photography of ohwx looking at viewer, high collar white blouse, imperfections, necklace with ornament falling down her back, looking over shoulders, eyelashes, fine hair detail, entire hairstyle visible, perfect eyes with iris pattern, sensual lips, nose, (perfectly sharp:1.3), realistic textures, (deep focus on subject, blurred background:1.4), 8k uhd, dslr, ultra high quality image, film grain, Fujifilm XT3').images[0]
詳細な情報や、LoRAの重み付け、マージ、融合については、diffusersでのLoRAの読み込みに関するドキュメントを参照してください。
✨ 主な機能
- テキストから画像生成: テキストプロンプトに基づいて、キャサリン・ハイグルに関連するリアルな画像を生成します。
- Flux.1 Devベース: Flux.1 Devモデルをベースにトレーニングされています。
- 最適な設定: ガイダンス、ステップ数、解像度などの最適な設定を提供し、良質な画像を生成します。
📦 インストール
このモデルを使用するには、diffusers
ライブラリが必要です。以下のコマンドでインストールできます。
pip install diffusers
💻 使用例
基本的な使用法
from diffusers import AutoPipelineForText2Image
import torch
device = "cuda" if torch.cuda.is_available() else "cpu"
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to(device)
pipeline.load_lora_weights('Keltezaa/katherine-heigl-90s-flux', weight_name='KatherineHeigl_flux_lora_v1.safetensors')
image = pipeline('Breathtaking over the shoulder shot photography of ohwx looking at viewer, high collar white blouse, imperfections, necklace with ornament falling down her back, looking over shoulders, eyelashes, fine hair detail, entire hairstyle visible, perfect eyes with iris pattern, sensual lips, nose, (perfectly sharp:1.3), realistic textures, (deep focus on subject, blurred background:1.4), 8k uhd, dslr, ultra high quality image, film grain, Fujifilm XT3').images[0]
高度な使用法
最適な結果を得るための設定例です。
guidance = 2.2 - 3
steps = 30 - 40
daemon_detailer = {
'factor': -0.02,
'start': 0.06,
'end': 0.75
}
resolution_scale = 1.25 or 1.5
image = pipeline('ohwxの素敵な肩越しの写真撮影、ハイカラーの白いブラウス、欠点、後ろに飾りが落ちたネックレス、肩越しに見る、まつげ、細かい髪の毛の詳細、全体の髪型が見える、虹彩模様の完璧な目、センシャルな唇、鼻、(完全に鮮明:1.3)、リアルなテクスチャ、(被写体に深い焦点、背景をぼかす:1.4)、8k uhd、dslr、超高画質画像、フィルムグレイン、Fujifilm XT3',
guidance_scale=guidance,
num_inference_steps=steps,
**daemon_detailer,
height=int(height * resolution_scale),
width=int(width * resolution_scale)).images[0]
📚 ドキュメント
モデルの説明
このモデルは、Flux.1 DevモデルをベースにトレーニングされたLoRAモデルです。トレーニングデータの90%は頭部画像のみを使用しているため、他のLoRAやモデルとのブレンドが容易です。ただし、体の部分が現実と一致しない場合があります。
最適な結果を得るための設定
- ガイダンス: 2.2 - 3
- ステップ数 (dev): 30 - 40
- daemon detailer (lying sigma sampler): factor: -0.02, start 0.06, end 0.75
- 解像度: 潜在変数を1.25または1.5倍にアップスケールすると、素敵な結果が得られます。
トリガーワード
画像生成をトリガーするには、ohwx
を使用してください。
🔧 技術詳細
- ベースモデル: black-forest-labs/FLUX.1-dev
- トレーニングデータ: 主に頭部画像を使用してトレーニングされています。
- トレーニングツール: ai-toolkitを使用してトレーニングされています。
📄 ライセンス
このモデルは、bespoke-lora-trained-licenseの下で提供されています。