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
2601
Browse files- media/result_grid.jpg +2 -2
- samples/unet_320x640_0.jpg +2 -2
- samples/unet_352x640_0.jpg +2 -2
- samples/unet_384x640_0.jpg +2 -2
- samples/unet_416x640_0.jpg +2 -2
- samples/unet_448x640_0.jpg +2 -2
- samples/unet_480x640_0.jpg +2 -2
- samples/unet_512x640_0.jpg +2 -2
- samples/unet_544x640_0.jpg +2 -2
- samples/unet_576x640_0.jpg +2 -2
- samples/unet_608x640_0.jpg +2 -2
- samples/unet_640x320_0.jpg +2 -2
- samples/unet_640x352_0.jpg +2 -2
- samples/unet_640x384_0.jpg +2 -2
- samples/unet_640x416_0.jpg +2 -2
- samples/unet_640x448_0.jpg +2 -2
- samples/unet_640x480_0.jpg +2 -2
- samples/unet_640x512_0.jpg +2 -2
- samples/unet_640x544_0.jpg +2 -2
- samples/unet_640x576_0.jpg +2 -2
- samples/unet_640x608_0.jpg +2 -2
- samples/unet_640x640_0.jpg +2 -2
- test.ipynb +2 -2
- train.py +6 -6
media/result_grid.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_320x640_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_352x640_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_384x640_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_416x640_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_448x640_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_480x640_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_512x640_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_544x640_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_576x640_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_608x640_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_640x320_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_640x352_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_640x384_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_640x416_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_640x448_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_640x480_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_640x512_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_640x544_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_640x576_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_640x608_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_640x640_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
test.ipynb
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:560ef25a440535d32333b084043c7d8e5fb729370118ea3d2e576181fdf1ad26
|
| 3 |
+
size 127336
|
train.py
CHANGED
|
@@ -29,16 +29,16 @@ from transformers import AutoTokenizer, AutoModel
|
|
| 29 |
# --------------------------- Параметры ---------------------------
|
| 30 |
ds_path = "/workspace/sdxs-08b/datasets/d123_640_sd15"
|
| 31 |
project = "unet"
|
| 32 |
-
batch_size =
|
| 33 |
-
base_learning_rate = 4e-
|
| 34 |
-
min_learning_rate = 2e-
|
| 35 |
num_epochs = 20
|
| 36 |
sample_interval_share = 5
|
| 37 |
cfg_dropout = 0.10
|
| 38 |
max_length = 248
|
| 39 |
use_wandb = False
|
| 40 |
-
use_comet_ml =
|
| 41 |
-
save_model =
|
| 42 |
use_decay = True
|
| 43 |
fbp = False
|
| 44 |
optimizer_type = "adam8bit"
|
|
@@ -51,7 +51,7 @@ comet_ml_api_key = "Agctp26mbqnoYrrlvQuKSTk6r"
|
|
| 51 |
comet_ml_workspace = "recoilme"
|
| 52 |
torch.backends.cuda.matmul.allow_tf32 = True
|
| 53 |
torch.backends.cudnn.allow_tf32 = True
|
| 54 |
-
torch.backends.cuda.enable_mem_efficient_sdp(
|
| 55 |
dtype = torch.float32
|
| 56 |
save_barrier = 1.05
|
| 57 |
warmup_percent = 0.03
|
|
|
|
| 29 |
# --------------------------- Параметры ---------------------------
|
| 30 |
ds_path = "/workspace/sdxs-08b/datasets/d123_640_sd15"
|
| 31 |
project = "unet"
|
| 32 |
+
batch_size = 50
|
| 33 |
+
base_learning_rate = 4e-6
|
| 34 |
+
min_learning_rate = 2e-6
|
| 35 |
num_epochs = 20
|
| 36 |
sample_interval_share = 5
|
| 37 |
cfg_dropout = 0.10
|
| 38 |
max_length = 248
|
| 39 |
use_wandb = False
|
| 40 |
+
use_comet_ml = False
|
| 41 |
+
save_model = False
|
| 42 |
use_decay = True
|
| 43 |
fbp = False
|
| 44 |
optimizer_type = "adam8bit"
|
|
|
|
| 51 |
comet_ml_workspace = "recoilme"
|
| 52 |
torch.backends.cuda.matmul.allow_tf32 = True
|
| 53 |
torch.backends.cudnn.allow_tf32 = True
|
| 54 |
+
torch.backends.cuda.enable_mem_efficient_sdp(True)
|
| 55 |
dtype = torch.float32
|
| 56 |
save_barrier = 1.05
|
| 57 |
warmup_percent = 0.03
|