🚀 Flux-Sketch-Paint-LoRA
このモデルは、画像生成に特化したLoRAモデルです。特定のスタイルやテーマの画像を生成するために使用できます。
🚀 クイックスタート
モデルのセットアップ
import torch
from pipelines import DiffusionPipeline
base_model = "black-forest-labs/FLUX.1-dev"
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
lora_repo = "strangerzonehf/Sketch-paint"
trigger_word = "Sketch paint"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
画像生成のトリガーワード
Sketch paint
を使用して画像生成をトリガーします。
モデルのダウンロード
このモデルのウェイトはSafetensors形式で利用可能です。
ダウンロード は、Files & versionsタブから行えます。
✨ 主な機能
- 特定のスタイルやテーマの画像を生成することができます。
- 画像生成のパラメータを調整することで、様々な画像を生成できます。
📦 インストール
このモデルを使用するには、上記のセットアップ手順を実行してください。
💻 使用例
基本的な使用法
import torch
from pipelines import DiffusionPipeline
base_model = "black-forest-labs/FLUX.1-dev"
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
lora_repo = "strangerzonehf/Sketch-paint"
trigger_word = "Sketch paint"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
prompt = "Sketch paint, An eye-level perspective, a medium-sized portrait of a woman, is depicted in a blue and white monochromatic fashion. The womans head is adorned with a large, fluffy, fuzzy hat, adorned with white flowers. Her hair is pulled back, framing her face, adding a touch of depth to the composition. She is wearing a black dress with a white scarf draped over her shoulders. Her dress is draped in a low-angle pattern, adding texture to the overall composition. The background is a dark blue, creating a stark contrast to the womans face."
image = pipe(prompt).images[0]
image.save("output.png")
📚 ドキュメント
モデルの説明

画像処理パラメータ
属性 |
詳情 |
LR Scheduler |
constant |
Noise Offset |
0.03 |
Optimizer |
AdamW |
Multires Noise Discount |
0.1 |
Network Dim |
64 |
Multires Noise Iterations |
10 |
Network Alpha |
32 |
Repeat & Steps |
25 & 3070 |
Epoch |
17 |
Save Every N Epochs |
1 |
ラベリング
florence2 - en(自然言語 & 英語)
トレーニングに使用された総画像数
19
最適な次元と推論
次元 |
アスペクト比 |
推奨事項 |
1280 x 832 |
3:2 |
最適 |
1024 x 1024 |
1:1 |
デフォルト |
推論範囲
📄 ライセンス
このモデルは、creativeml - openrail - mライセンスの下で提供されています。