🚀 T-Shirt Vector Style - FLUX
このプロジェクトは、Tシャツのデザインに特化した画像生成モデルです。特定のスタイルを持つベクター画像を生成し、背景の除去や印刷に適したものを提供します。
🚀 クイックスタート
このモデルを使って画像を生成するには、以下の手順に従ってください。
モデルのダウンロード
モデルの重みはSafetensors形式で提供されています。こちらからFiles & versionsタブでダウンロードできます。
diffusersライブラリを使った使用方法
以下のPythonコードを使って、モデルを使用できます。
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('SouthbayJay/t-shirt-vector-style-flux', weight_name='vector_shirt_flux_v1.safetensors')
image = pipeline('`5h1rt`').images[0]
LoRAの重み付け、マージ、融合などの詳細については、diffusersでのLoRAの読み込みに関するドキュメントを参照してください。
✨ 主な機能
- 特定スタイルの画像生成: トリガーワード
5h1rt
を使用することで、特定のスタイルのベクター画像を生成できます。
- Tシャツデザインに適した画像: 背景が単色の画像を生成するため、背景を簡単に除去してTシャツや他のアイテムに印刷できます。
📦 インストール
モデルを使用するには、必要なライブラリをインストールする必要があります。以下のコマンドを使って、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('SouthbayJay/t-shirt-vector-style-flux', weight_name='vector_shirt_flux_v1.safetensors')
image = pipeline('`5h1rt`').images[0]
高度な使用法
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('SouthbayJay/t-shirt-vector-style-flux', weight_name='vector_shirt_flux_v1.safetensors')
prompt = 'tshirt design, a beautiful woman standing next to a chevy impala hot rod, Los Angeles skyline in the background, in the style of 5h1rt'
image = pipeline(prompt).images[0]
📚 ドキュメント
モデルの説明
このLoRAモデルのトリガーワードは 5h1rt
です。プロンプトの最後に "in the style of 5h1rt" という表現を使うことがおすすめです。たとえば、"tshirt design, (あなたのプロンプト), in the style of 5h1rt" のように指定します。
このモデルは、背景が単色のベクター画像を生成することを目的としています。これにより、背景を簡単に除去してTシャツや他のアイテムに印刷できます。ただし、まだ実験的な段階であり、データセットを改善する方法を模索中です。
トリガーワード
画像生成をトリガーするには、5h1rt
を使用してください。
📄 ライセンス
このモデルは、bespoke-lora-trained-license の下で提供されています。