🚀 Pegasi-Minimalist-Image-Style
このモデルは画像生成に特化したモデルで、ミニマリストな画像スタイルを生成することができます。現在はまだ学習段階にあり、最終バージョンではないため、アーティファクトが含まれる場合や性能が低い場合があります。
🚀 クイックスタート
このモデルはまだ学習段階にあり、最終バージョンではありません。アーティファクトが含まれる場合や、一部のケースで性能が低い可能性があります。
✨ 主な機能
- ミニマリストな画像スタイルを生成することができます。
- 様々なトリガープロンプトを使用して、異なる画像を生成できます。
📦 インストール
以下のコードを使用してモデルをセットアップできます。
pipe = StableDiffusionXLPipeline.from_pretrained(
"-------------xxxxxxxxx----------",
torch_dtype=torch.float16,
use_safetensors=True,
)
(or)
-----------------------------------------------------------
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/Pegasi-Minimalist-Image-Style", weight_name="Pegasi-Minimalist-Image-Style.safetensors", adapter_name="minimalist")
pipe.set_adapters("minimalist")
pipe.to("cuda")
💻 使用例
基本的な使用法
以下は、モデルを使用して画像を生成する基本的なコード例です。
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/Pegasi-Minimalist-Image-Style", weight_name="Pegasi-Minimalist-Image-Style.safetensors", adapter_name="minimalist")
pipe.set_adapters("minimalist")
pipe.to("cuda")
prompt = 'A picture that depicts a Hiker, in the style of delicate paper cutouts, white and azure, album covers, white medium, grainy, oshare kei, white background, minimal '
image = pipe(prompt).images[0]
image.save("output.png")
📚 ドキュメント
モデルの説明
Pegasi Minimalist は、画像生成に特化したモデルです。以下は、画像処理のパラメーターです。
パラメーター |
値 |
パラメーター |
値 |
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 |
28 |
Epoch |
10 |
Save Every N Epochs |
1 |
トリガープロンプト
以下は、画像生成に使用できるトリガープロンプトの例です。
- A picture that depicts a Hiker, in the style of delicate paper cutouts, white and azure, album covers, white medium, grainy, oshare kei, white background, minimal
- Bird, in the style of minimalist illustrator, reinterpreted human form, iconic album covers, white and violet, stop-motion animation, elongated forms, flat illustrations
- A Hamburger on a pink background, in the style of cinquecento, captured essence of the moment, layered expressiveness, intricate cut-outs backgrounds, film photography, studio photography
パラメーター |
詳細 |
Prompt |
A Hamburger on a pink background, in the style of cinquecento, captured essence of the moment, layered expressiveness, intricate cut-outs backgrounds, film photography, studio photography |
Sampler |
euler |
トリガーワード
画像生成をトリガーするには、minimalist, minimal, minimalist illustrator
を使用する必要があります。
モデルのダウンロード
このモデルのウェイトはSafetensors形式で利用可能です。
ダウンロード は、Files & versionsタブから行えます。
📄 ライセンス
このモデルは、creativeml-openrail-m
ライセンスの下で提供されています。