sunhaha123's picture
Update README.md
43cf609 verified
|
raw
history blame
4.56 kB
metadata
license: other
license_name: stabilityai-ai-community
license_link: LICENSE.md
language:
  - en
base_model:
  - stabilityai/stable-diffusion-3.5-medium
pipeline_tag: text-to-image

TensorArt Stable Diffusion 3.5 Medium Turbo (SD3.5M Turbo) ComfyUI_temp_psqad_00205_ "All that has passed is but a prologue,
what you hold in your heart will one day echo back."

                                                                            — TensorArt

Project Overview

TensorArt Stable Diffusion 3.5 Medium Turbo (SD3.5M Turbo) is a high-performance text-to-image model distilled from StabilityAI's stable-diffusion-3.5-medium. This model emphasizes stability and efficiency, making it suitable for a wide range of art styles and creative expression scenarios.

Model Features

  • 🚀 Turbo Performance: Faster generation speeds, ideal for multitasking and high-demand scenarios.
  • 🎨 Versatile Styles: Supports a wide range of styles, from photorealistic to abstract art.
  • 🖼️ High-Resolution Outputs: Produces images with exceptional clarity and intricate details.
  • ⚙️ Easy to Extend: Integrated with LoRA technology, making it easier for users to customize and experiment.

How to Use

  1. Download the Model
    Download the latest versions of the model’s ckpt or LoRA files from the following links:

  2. Environment Setup
    Ensure that your environment meets the following requirements:

    • Python 3.8+
    • PyTorch 2.0+
    • Required libraries such as diffusers
  3. Model Loading
    Load and use the model following the detailed instructions provided in the repository. And you can also use them in comfyui by the workflows provided by us: comfyui_ckpt, comfyui_lora.


Contact


Example Output

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")

Using lora:

import torch
from diffusers import StableDiffusion3Pipeline
import numpy as np
from safetensors.torch import load_file

pipe = StableDiffusion3Pipeline.from_pretrained("tensorart/stable-diffusion-3.5-medium-turbo", torch_dtype=torch.float16,)
                                                
pipe = pipe.to("cuda")

lora_weights_dir = 'tensorart/stable-diffusion-3.5-medium-turbo/lora_sd3.5m_turbo_8steps.safetensors'
pcm_lora_weight = load_file(lora_weights_dir)



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")