Text-to-Image
Diffusers
Safetensors
recoilme commited on
Commit
db680b9
·
1 Parent(s): 727d550
README.md CHANGED
@@ -5,7 +5,7 @@ datasets:
5
  - CaptionEmporium/midjourney-niji-1m-llavanext
6
  ---
7
 
8
- # Simple Diffusion XS
9
 
10
  *XS Size, Excess Quality*
11
  ![promo](media/girl.jpg)
@@ -19,9 +19,7 @@ At AiArtLab, we strive to create a free, compact and fast model that can be trai
19
  - Resolution: from 768px to 1404px, with step 64px
20
  - Limitations: trained on small dataset ~1-2kk, focused on illustrations
21
 
22
- ### Train in progress
23
-
24
- Key points
25
 
26
  - Dec 24: Started research on Linear Transformers.
27
  - Feb 25: Started research on UNet-based diffusion models.
@@ -147,7 +145,7 @@ As a result, I focused on building a strong local benchmark for rapid, cost-effe
147
  ## The Evolutionary Path
148
  The second turning point was the transition to a continuous evolutionary improvement strategy. Unfortunately, the Butterflies dataset does not allow for evaluating prompt-following or anatomical generation capabilities. As a result, the model evolved incrementally rather than through revolutionary changes. The same model, from December 2025, underwent around 10 changes, including radical architectural shifts—while always preserving the pre-trained weights. It’s remarkable how well and quickly pre-trained models adapt to changes in architecture and external factors, even radical ones (e.g., switching VAE models, text encoders, or their combinations).
149
  In addition to saving on training costs, this approach helped maintain minimal model size—for example, adding extra transformer blocks followed by an assessment of necessity and rolling back if the changes had no significant impact.
150
- ## tldr;
151
  Stop reading, start training
152
  ## The Role of Hyperparameters
153
  One of the initial mistakes was an excessive focus on hyperparameters during training. Ironically, 80% of training speed and quality depend on the model architecture (UNet) and the quality of embeddings (VAE), while other 20% is influenced by the text encoder’s embeddings. The rest is Role of Hyperparameters. The irony here is that Adam (adamw8bit) is surprisingly forgiving of hyperparameter errors, so I won’t even list them. Default is ok.
@@ -158,7 +156,7 @@ A dataset script to convert a folder of image-text pairs into latent representat
158
  A training script provided as a single monolithic file.
159
  Additionally, there’s a script that can be pasted directly into the terminal to automatically train the model with optimized parameters.
160
  ## Training Optimization
161
- All pre-training was done using the AdamW8bit optimizer, which significantly reduced training costs.
162
 
163
  ### Train:
164
 
 
5
  - CaptionEmporium/midjourney-niji-1m-llavanext
6
  ---
7
 
8
+ # Simple Diffusion XS (train in progress)
9
 
10
  *XS Size, Excess Quality*
11
  ![promo](media/girl.jpg)
 
19
  - Resolution: from 768px to 1404px, with step 64px
20
  - Limitations: trained on small dataset ~1-2kk, focused on illustrations
21
 
22
+ ### Key points
 
 
23
 
24
  - Dec 24: Started research on Linear Transformers.
25
  - Feb 25: Started research on UNet-based diffusion models.
 
145
  ## The Evolutionary Path
146
  The second turning point was the transition to a continuous evolutionary improvement strategy. Unfortunately, the Butterflies dataset does not allow for evaluating prompt-following or anatomical generation capabilities. As a result, the model evolved incrementally rather than through revolutionary changes. The same model, from December 2025, underwent around 10 changes, including radical architectural shifts—while always preserving the pre-trained weights. It’s remarkable how well and quickly pre-trained models adapt to changes in architecture and external factors, even radical ones (e.g., switching VAE models, text encoders, or their combinations).
147
  In addition to saving on training costs, this approach helped maintain minimal model size—for example, adding extra transformer blocks followed by an assessment of necessity and rolling back if the changes had no significant impact.
148
+ ## tldr; Main idea
149
  Stop reading, start training
150
  ## The Role of Hyperparameters
151
  One of the initial mistakes was an excessive focus on hyperparameters during training. Ironically, 80% of training speed and quality depend on the model architecture (UNet) and the quality of embeddings (VAE), while other 20% is influenced by the text encoder’s embeddings. The rest is Role of Hyperparameters. The irony here is that Adam (adamw8bit) is surprisingly forgiving of hyperparameter errors, so I won’t even list them. Default is ok.
 
156
  A training script provided as a single monolithic file.
157
  Additionally, there’s a script that can be pasted directly into the terminal to automatically train the model with optimized parameters.
158
  ## Training Optimization
159
+ All training was done using the AdamW8bit optimizer, which significantly reduced training costs.
160
 
161
  ### Train:
162
 
media/girl.jpg CHANGED

Git LFS Details

  • SHA256: 2def6f65476e848fc6076e7715421d9cf308fde93f998a478b1d169788548916
  • Pointer size: 131 Bytes
  • Size of remote file: 143 kB

Git LFS Details

  • SHA256: f70df0306bcb4b38c54759feacbe7f11b0470796ce22b9c800b7f388ad4602aa
  • Pointer size: 131 Bytes
  • Size of remote file: 149 kB
media/result_grid.jpg CHANGED

Git LFS Details

  • SHA256: 3c0120f7c2d2f6b2f64024e59ccbabb38ecdde10c19be5d258b4f089b1e98e14
  • Pointer size: 132 Bytes
  • Size of remote file: 7.12 MB

Git LFS Details

  • SHA256: 983f80c900e77d8f15f47a1c62dc72fb1cb2cd4166377769ba0b01458be98d89
  • Pointer size: 132 Bytes
  • Size of remote file: 7.04 MB
samples/unet_384x704_0.jpg CHANGED

Git LFS Details

  • SHA256: 62e5e25dd1f3bbe5369d14da45241bd4b8a00852b33b452e3c2f9574c9073d55
  • Pointer size: 131 Bytes
  • Size of remote file: 253 kB

Git LFS Details

  • SHA256: bf49f17990e9e4c64fcbd405582af8bb64ee20646a7f9925fd3c1562ca2d8175
  • Pointer size: 131 Bytes
  • Size of remote file: 403 kB
samples/unet_416x704_0.jpg CHANGED

Git LFS Details

  • SHA256: f3a8b1425b4857fb890e4879cbf3427aa4d8e60ecd3a1a78033ef17aec8c4347
  • Pointer size: 131 Bytes
  • Size of remote file: 322 kB

Git LFS Details

  • SHA256: 06bdb4538fd9b2cbc8ad04f176f3b54c97b7ee45f197b20f0586699d2e873943
  • Pointer size: 131 Bytes
  • Size of remote file: 540 kB
samples/unet_448x704_0.jpg CHANGED

Git LFS Details

  • SHA256: f853ab52729edebbd5e858743bb2ae5429b91721d105643ebcf6a18467a58515
  • Pointer size: 131 Bytes
  • Size of remote file: 465 kB

Git LFS Details

  • SHA256: 66c691246ec5bee1d7dd66f3edff9ed0a76f0696623a5e8966ec4d42e75c2a5e
  • Pointer size: 131 Bytes
  • Size of remote file: 342 kB
samples/unet_480x704_0.jpg CHANGED

Git LFS Details

  • SHA256: c18f53822c498a3c1a7d2cc71a1428490950fad5355847baf8985f3f6d6dd8a4
  • Pointer size: 131 Bytes
  • Size of remote file: 369 kB

Git LFS Details

  • SHA256: acc901369e20b168aa1a21fc09e68c594957cc7e00b9c14d6f8e14c4f97260d4
  • Pointer size: 131 Bytes
  • Size of remote file: 322 kB
samples/unet_512x704_0.jpg CHANGED

Git LFS Details

  • SHA256: 8480233d5ceeb9701f0c041189ee93cbcba1a91b21befe6c3a9bfd349597d2b0
  • Pointer size: 131 Bytes
  • Size of remote file: 468 kB

Git LFS Details

  • SHA256: 7184972079dffa7803c57bb8ac52ed7f3d4b524fa195d84639c872d69c2ad424
  • Pointer size: 131 Bytes
  • Size of remote file: 329 kB
samples/unet_544x704_0.jpg CHANGED

Git LFS Details

  • SHA256: 8b2d9f7a4e4b37d394c68a9ebe016f3d18c250fde2618ebc35ff015b81cf0892
  • Pointer size: 131 Bytes
  • Size of remote file: 336 kB

Git LFS Details

  • SHA256: a6ed9b3ec260aee03c653980131b733bbd377f13622a6dd5ccf4feaf7efcaccc
  • Pointer size: 131 Bytes
  • Size of remote file: 463 kB
samples/unet_576x704_0.jpg CHANGED

Git LFS Details

  • SHA256: de45c9182cdd06d8af8470262203d3fa4a7d9533ee8e2e73e99102072b967352
  • Pointer size: 131 Bytes
  • Size of remote file: 561 kB

Git LFS Details

  • SHA256: 7656eed2aa9a6d21eb50fe60ca7a0b7797219cd19f17acf95ba80ac576410089
  • Pointer size: 131 Bytes
  • Size of remote file: 352 kB
samples/unet_608x704_0.jpg CHANGED

Git LFS Details

  • SHA256: 8f834749ea32033fb639f5c98437a5a55d0eb5bdf2f4747dde47e46c8fa75ab5
  • Pointer size: 131 Bytes
  • Size of remote file: 767 kB

Git LFS Details

  • SHA256: f170cf327d3a559aa5524f6bea9390a1877d1edb009d21386ab17e430c085fd2
  • Pointer size: 131 Bytes
  • Size of remote file: 292 kB
samples/unet_640x704_0.jpg CHANGED

Git LFS Details

  • SHA256: 95417d4b52af113a45acde9cd81554e3bab496bc50ef11fd5555ca183c1559bf
  • Pointer size: 131 Bytes
  • Size of remote file: 554 kB

Git LFS Details

  • SHA256: 166a7607fdd4670e37a733f5929ff4b98c404367f44d88c6d45dea9b2f635065
  • Pointer size: 131 Bytes
  • Size of remote file: 395 kB
samples/unet_672x704_0.jpg CHANGED

Git LFS Details

  • SHA256: 23218ba170a001403cce9cfd950fac911a8ecb283acc50d9a0d863e68c331186
  • Pointer size: 131 Bytes
  • Size of remote file: 340 kB

Git LFS Details

  • SHA256: b2ee39e3b343f1f7c671f7012f7215cec43d1ddfbdcfb49f9b3674a07d26c6a3
  • Pointer size: 131 Bytes
  • Size of remote file: 521 kB
samples/unet_704x384_0.jpg CHANGED

Git LFS Details

  • SHA256: 587d91d13f7e0761379fa8ba84e7fb34cb398885626f1cfda759c8324776680b
  • Pointer size: 131 Bytes
  • Size of remote file: 239 kB

Git LFS Details

  • SHA256: 7b9e56ad12a03772bc38f005957004e278d574946c1faf635954c522ae4e177b
  • Pointer size: 131 Bytes
  • Size of remote file: 323 kB
samples/unet_704x416_0.jpg CHANGED

Git LFS Details

  • SHA256: e43513c302b52131886438ba790044a2aeeb9afdfe5254a80389c5a3a165bcaf
  • Pointer size: 131 Bytes
  • Size of remote file: 229 kB

Git LFS Details

  • SHA256: 51a57526a5e32bb2f29a49ec70d84df05dc9d310520e7fb096a0b64bdd01d534
  • Pointer size: 131 Bytes
  • Size of remote file: 432 kB
samples/unet_704x448_0.jpg CHANGED

Git LFS Details

  • SHA256: 86e8bbe945a0b148f7d7508e1a093e8ad95cc7ed440cc724da526f5472a1af79
  • Pointer size: 131 Bytes
  • Size of remote file: 369 kB

Git LFS Details

  • SHA256: 3395e5c24ccb48f34d4ab33365ee8a45209edca504d393c5f1644101b59c8bd3
  • Pointer size: 131 Bytes
  • Size of remote file: 472 kB
samples/unet_704x480_0.jpg CHANGED

Git LFS Details

  • SHA256: 615eeff210b8971ffc6b18f4a84193b543056f77ba9b10f70cd1fb6f9e2ca574
  • Pointer size: 131 Bytes
  • Size of remote file: 293 kB

Git LFS Details

  • SHA256: 573191be745ab6f1da03c9359b19f9b1497945adff92fc35d6ab40b431db44cf
  • Pointer size: 131 Bytes
  • Size of remote file: 572 kB
samples/unet_704x512_0.jpg CHANGED

Git LFS Details

  • SHA256: ff5aff046047598406af9a8a55857457b2c5e0a59e3426453c636157edc75f63
  • Pointer size: 131 Bytes
  • Size of remote file: 261 kB

Git LFS Details

  • SHA256: a72908b029c0f6ef31e2b83fffe3ed496caf0b0bf0daa72488d2a7a6293a472c
  • Pointer size: 131 Bytes
  • Size of remote file: 842 kB
samples/unet_704x544_0.jpg CHANGED

Git LFS Details

  • SHA256: 943a8babb233d5bca7c76664cf9d9b9a75c1e3d240157c565a80ad337de95624
  • Pointer size: 131 Bytes
  • Size of remote file: 351 kB

Git LFS Details

  • SHA256: 8d49d6f6b22927672c96fb99b0dbc1f9b937daf8fb679b393081091e70dbb0ed
  • Pointer size: 131 Bytes
  • Size of remote file: 420 kB
samples/unet_704x576_0.jpg CHANGED

Git LFS Details

  • SHA256: c2782beac2d5d0aa02b089980159d5b588070c30d5de2093f47c5353b70ade3e
  • Pointer size: 131 Bytes
  • Size of remote file: 505 kB

Git LFS Details

  • SHA256: 66b018e5aecde84052546acaa8c7472d027a6d3bb5a7c38dea4ec9c5f8f01f69
  • Pointer size: 131 Bytes
  • Size of remote file: 550 kB
samples/unet_704x608_0.jpg CHANGED

Git LFS Details

  • SHA256: b4ca3d1e1767a81e369e8d05b83f040eb8141bc2d2d59432f314e906cc0d6a72
  • Pointer size: 131 Bytes
  • Size of remote file: 450 kB

Git LFS Details

  • SHA256: ae37b048e453b63513801a983c91081c799815df749c421e7fbdcc0b0ba5ef0b
  • Pointer size: 131 Bytes
  • Size of remote file: 534 kB
samples/unet_704x640_0.jpg CHANGED

Git LFS Details

  • SHA256: be8a1e4e0040438ccf15e6686739d9a9f441c9665b286096a64d49b8bf93ce4e
  • Pointer size: 131 Bytes
  • Size of remote file: 243 kB

Git LFS Details

  • SHA256: 31057412363f11d55b851bd70d78bffa6f74d8d0784a587c8ce0ab201d7c4084
  • Pointer size: 131 Bytes
  • Size of remote file: 523 kB
samples/unet_704x672_0.jpg CHANGED

Git LFS Details

  • SHA256: ed33a29dfa17e16a1a6123fc7244762c993de55608d6f4e37b0951659193cdf3
  • Pointer size: 131 Bytes
  • Size of remote file: 419 kB

Git LFS Details

  • SHA256: 4c19632e6a5ae83a3e75251a4b35c295491e2bd8f2dd8755b45d1ccfbf0bfb53
  • Pointer size: 131 Bytes
  • Size of remote file: 935 kB
samples/unet_704x704_0.jpg CHANGED

Git LFS Details

  • SHA256: 472f745d5230e5e23eb0f818a6d6f0fb52538fa31e66cc77fc370087d74b0279
  • Pointer size: 131 Bytes
  • Size of remote file: 489 kB

Git LFS Details

  • SHA256: 5ac7458e2cd578d716beb663731385c2ea045441113c8305c8c803ca1ab4aa96
  • Pointer size: 131 Bytes
  • Size of remote file: 654 kB
test.ipynb CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:266e739c156b3e1d25b4c49491ab1aa69cb7ae3c68ce7099d36da0008804a3f1
3
- size 12848775
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d8a1f50bb6e009d6f8efb6184fd51b66f0f55b213294c796a7bd0d5df703f65a
3
+ size 18316400
unet/diffusion_pytorch_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:17892431f616faa8ac069a94089992b74080248e7e4c2476d88c9fe31e09174f
3
  size 3210307232
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:61a1cf70b3652cf3f179005e6703b6881a3489d36c6a6b5254741d047d885c6b
3
  size 3210307232