🚀 TensorArt Stable Diffusion 3.5 Medium Turbo (SD3.5M Turbo)
TensorArt Stable Diffusion 3.5 Medium Turbo (SD3.5M Turbo)は、StabilityAIのstable - diffusion - 3.5 - mediumから蒸留された高性能なテキストから画像への変換モデルです。このモデルは安定性と効率性を重視しており、幅広いアートスタイルや創造的な表現シナリオに適しています。

*"All that has passed is but a prologue,
what you hold in your heart will one day echo back."*
— TensorArt
✨ 主な機能
- 🚀 高速性能:高速な生成速度を実現し、マルチタスクや高負荷のシナリオに最適です。
- 🎨 多彩なスタイル:写実的なアートから抽象アートまで、幅広いスタイルをサポートします。
- 🖼️ 高解像度出力:卓越した鮮明さと複雑な詳細を持つ画像を生成します。
- ⚙️ 拡張容易:
LoRA
技術を統合しており、ユーザーがカスタマイズや実験を行いやすくなっています。
📦 インストール
モデルのダウンロード
モデルのckpt
またはLoRA
ファイルの最新バージョンを以下のリンクからダウンロードしてください。
環境のセットアップ
環境が以下の要件を満たしていることを確認してください。
- Python 3.8+
- PyTorch 2.0+
diffusers
などの必要なライブラリ
モデルの読み込み
リポジトリに記載されている詳細な手順に従ってモデルを読み込んで使用してください。また、以下のワークフローを使用してComfyUIでも使用できます。
4steps - nonstop
comfyui_ckpt
comfyui_lora
💻 使用例
基本的な使用法
ckptを使用する場合:
import torch
from diffusers import StableDiffusion3Pipeline
pipe = StableDiffusion3Pipeline.from_pretrained("tensorart/stable-diffusion-3.5-medium-turbo", torch_dtype=torch.float16,)
pipe = pipe.to("cuda")
image = pipe(
"A beautiful bald girl with silver and white futuristic metal face jewelry, her full body made of intricately carved liquid glass in the style of Tadashi, the complexity master of cyberpunk, in the style of James Jean and Peter Mohrbacher. This concept design is trending on Artstation, with sharp focus, studio-quality photography, and highly detailed, intricate details.",
num_inference_steps=8,
guidance_scale=1.5,
height=1024,
width=768
).images[0]
image.save("./test4-2.webp")
高度な使用法
loraを使用する場合:
import torch
from diffusers import StableDiffusion3Pipeline
import numpy as np
from safetensors.torch import load_file
from huggingface_hub import hf_hub_download
repo = "tensorart/stable-diffusion-3.5-medium-turbo"
ckpt = "lora_sd3.5m_turbo_8steps.safetensors"
pipe = StableDiffusion3Pipeline.from_pretrained("stabilityai/stable-diffusion-3.5-medium", torch_dtype=torch.float16,)
pipe = pipe.to("cuda")
pipe.load_lora_weights(hf_hub_download(repo, ckpt))
pipe.fuse_lora()
pipe = pipe.to("cuda")
image = pipe(
"A beautiful bald girl with silver and white futuristic metal face jewelry, her full body made of intricately carved liquid glass in the style of Tadashi, the complexity master of cyberpunk, in the style of James Jean and Peter Mohrbacher. This concept design is trending on Artstation, with sharp focus, studio-quality photography, and highly detailed, intricate details.",
num_inference_steps=8,
guidance_scale=1.5,
height=1024,
width=768
).images[0]
image.save("./test1.webp")
📄 ライセンス
- ライセンス: other
- ライセンス名: stabilityai - ai - community
- ライセンスリンク: LICENSE.md
コンタクト
- ウェブサイト: https://tensor.art https://tusiart.com
- 開発元: TensorArt