🚀 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 模型蒸餾而來。該模型注重穩定性和效率,適用於各種藝術風格和創意表達場景。
**TensorArt Stable Diffusion 3.5 Medium Turbo (SD3.5M Turbo)**

*"All that has passed is but a prologue,
what you hold in your heart will one day echo back."*
— TensorArt
🚀 快速開始
下載模型
從以下鏈接下載模型的 ckpt
或 LoRA
文件的最新版本:
環境搭建
確保你的環境滿足以下要求:
- Python 3.8+
- PyTorch 2.0+
- 所需庫,如
diffusers
模型加載
按照倉庫中提供的詳細說明加載和使用模型。你也可以通過我們提供的工作流在 comfyui 中使用它們:4steps-nonstop comfyui_ckpt,comfyui_lora。
✨ 主要特性
- 🚀 Turbo 性能:更快的生成速度,適用於多任務和高需求場景。
- 🎨 風格多樣:支持從寫實到抽象藝術等廣泛的風格。
- 🖼️ 高分辨率輸出:生成的圖像具有出色的清晰度和複雜的細節。
- ⚙️ 易於擴展:集成了
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