File size: 4,622 Bytes
51ef6f4
e1d506d
 
 
51ef6f4
 
 
 
a4a4b7b
51ef6f4
2ff3364
b4a7fa5
695fc35
d2d2727
d114797
2ff3364
b4a7fa5
 
2ff3364
b4a7fa5
 
 
 
695fc35
 
 
b4a7fa5
695fc35
1265e2f
695fc35
 
 
 
 
 
 
 
 
fc5ac5d
3fc281d
695fc35
 
 
30c9dec
be009d4
b3b94c4
695fc35
 
 
 
 
b2891b6
695fc35
 
43cf609
695fc35
 
 
2ff3364
 
 
 
158a6c6
 
695fc35
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13bc8a5
695fc35
 
 
 
 
 
 
 
 
12443d5
 
 
 
695fc35
79324fe
4716210
695fc35
 
12443d5
 
75f5dfc
 
695fc35
8eae614
695fc35
 
 
 
 
 
 
13bc8a5
b765d1c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
---
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
---
# 
<div align="center">

**TensorArt Stable Diffusion 3.5 Medium Turbo (SD3.5M Turbo)**
<img src="https://huggingface.co/tensorart/stable-diffusion-3.5-medium-turbo/resolve/main/ckpt_ad.webp" alt="ComfyUI_temp_psqad_00205_" width="400"/>
*"All that has passed is but a prologue,  
what you hold in your heart will one day echo back."* 
  

                                                                            — **TensorArt**


</div> 

## 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:
   - [SD3.5M Checkpoint (Updated on 2024/12/16)](https://huggingface.co/tensorart/stable-diffusion-3.5-medium-turbo/blob/main/sd3.5m_turbo.safetensors)
   - [SD3.5M New LoRA (Updated on 2024/12/24)](https://huggingface.co/tensorart/stable-diffusion-3.5-medium-turbo/blob/main/lora-s-8step-final.safetensors)

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](https://huggingface.co/tensorart/stable-diffusion-3.5-medium-turbo/blob/main/contrast_ckpt_.json), [comfyui_lora](https://huggingface.co/tensorart/stable-diffusion-3.5-medium-turbo/blob/main/contrast_lora_.json).

---

## Contact
* Website: https://tensor.art  https://tusiart.com
* Developed by: TensorArt

---

## Example Output


   ```python
   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:

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