🚀 New-Journey-Art
New Journey Artは、テキストから画像を生成する能力を持つモデルです。このモデルを使うことで、様々なテキスト記述に基づいた画像を生成できます。
🚀 クイックスタート
モデルのセットアップ
以下のコードを使って、モデルをセットアップできます。
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/New-Journey-Art-Flux "
trigger_word = "New Journey Art"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
画像生成のトリガーワード
画像生成をトリガーするには、New Journey Art
を使用する必要があります。
モデルのダウンロード
このモデルの重みは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/New-Journey-Art-Flux "
trigger_word = "New Journey Art"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
💻 使用例
基本的な使用法
以下は、テキスト入力に基づいて画像を生成する基本的な使用例です。
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/New-Journey-Art-Flux "
trigger_word = "New Journey Art"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
text_prompt = 'New Journey Art – A medium-sized painting of a cat sitting on a wooden table. The cat has white and orange fur, with green eyes staring at a small blue butterfly hovering above its head. The background features a light gray wall with a potted plant on the left side. The sunlight from a nearby window casts a soft shadow of the cat onto the table.'
image = pipe(text_prompt).images[0]
image.save("generated_image.png")
📚 ドキュメント
モデルの基本情報
プロパティ |
詳細 |
ベースモデル |
black-forest-labs/FLUX.1-dev |
インスタンスプロンプト |
New Journey Art |
画像処理パラメータ
パラメータ |
値 |
LR Scheduler |
constant |
Noise Offset |
0.03 |
Optimizer |
AdamW |
Multires Noise Discount |
0.1 |
Network Dim |
64 |
Network Alpha |
32 |
Epoch |
30 |
Save Every N Epochs |
1 |
Multires Noise Iterations |
10 |
Repeat & Steps |
25 & 4050 |
最適なサイズと推論
サイズ |
アスペクト比 |
推奨事項 |
1280 x 832 |
3:2 |
最適 |
1024 x 1024 |
1:1 |
デフォルト |
推論範囲
📄 ライセンス
このモデルは flux-1-dev-non-commercial-license
ライセンスの下で提供されています。詳細は こちら を参照してください。
