Instructions to use AiArtLab/sdxs-1b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use AiArtLab/sdxs-1b with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("AiArtLab/sdxs-1b", dtype=torch.bfloat16, device_map="cuda") prompt = "sdxs-1b" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
1.6b
Browse files
train.py
CHANGED
|
@@ -171,7 +171,7 @@ def load_text_encoder():
|
|
| 171 |
).to(device).eval()
|
| 172 |
|
| 173 |
@torch.no_grad()
|
| 174 |
-
def encode_texts(text, max_length=max_length):
|
| 175 |
device = self.device
|
| 176 |
dtype = self.unet.dtype
|
| 177 |
if text is None: text = ""
|
|
|
|
| 171 |
).to(device).eval()
|
| 172 |
|
| 173 |
@torch.no_grad()
|
| 174 |
+
def encode_texts(text, max_length=max_length):
|
| 175 |
device = self.device
|
| 176 |
dtype = self.unet.dtype
|
| 177 |
if text is None: text = ""
|