Instructions to use AiArtLab/sdxs-2b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use AiArtLab/sdxs-2b 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-2b", dtype=torch.bfloat16, device_map="cuda") prompt = "sdxs-2b" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
2005
Browse files- media/result_grid.jpg +2 -2
- pipeline_sdxs.py +1 -1
- transformer/config.json +2 -2
- transformer/diffusion_pytorch_model.safetensors +1 -1
media/result_grid.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
pipeline_sdxs.py
CHANGED
|
@@ -54,7 +54,7 @@ class SdxsPipeline(DiffusionPipeline):
|
|
| 54 |
if system_prompt is None:
|
| 55 |
system_prompt = (
|
| 56 |
"You are a skilled text-to-image prompt engineer whose sole function is to transform "
|
| 57 |
-
"the user's input into an detailed, and visually descriptive
|
| 58 |
"Output **only** the final revised prompt on English, with absolutely no commentary. "
|
| 59 |
"Use English for prompt and don't use cliches. User input prompt: "
|
| 60 |
)
|
|
|
|
| 54 |
if system_prompt is None:
|
| 55 |
system_prompt = (
|
| 56 |
"You are a skilled text-to-image prompt engineer whose sole function is to transform "
|
| 57 |
+
"the user's input into an detailed, and visually descriptive two-sentence output. "
|
| 58 |
"Output **only** the final revised prompt on English, with absolutely no commentary. "
|
| 59 |
"Use English for prompt and don't use cliches. User input prompt: "
|
| 60 |
)
|
transformer/config.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:223396bd610d9205cea69ad29ae8f7449137c4313f5eac2b7dc2d5eaf9c45b7f
|
| 3 |
+
size 1783
|
transformer/diffusion_pytorch_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1983975648
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a5564703a1f427f6c80972957ff07a56f26a6494fa262d10f5f9e36095f100ad
|
| 3 |
size 1983975648
|