ckpt / bk-sdm-tiny-2m

huggingface.co
Total runs: 66
24-hour runs: 15
7-day runs: 6
30-day runs: 22
Model's Last Updated: Octobre 22 2023
text-to-image

Introduction of bk-sdm-tiny-2m

Model Details of bk-sdm-tiny-2m

BK-SDM-2M Model Card

BK-SDM-{ Base-2M , Small-2M , Tiny-2M } are pretrained with 10× more data (2.3M LAION image-text pairs) compared to our previous release.

  • Block-removed Knowledge-distilled Stable Diffusion Model (BK-SDM) is an architecturally compressed SDM for efficient text-to-image synthesis.
  • The previous BK-SDM-{ Base , Small , Tiny } were obtained via distillation pretraining on 0.22M LAION pairs.
  • Resources for more information: Paper , GitHub , Demo .
Examples with 🤗 Diffusers library .

An inference code with the default PNDM scheduler and 50 denoising steps is as follows.

import torch
from diffusers import StableDiffusionPipeline

pipe = StableDiffusionPipeline.from_pretrained("nota-ai/bk-sdm-tiny-2m", torch_dtype=torch.float16)
pipe = pipe.to("cuda")

prompt = "a black vase holding a bouquet of roses"
image = pipe(prompt).images[0]  
    
image.save("example.png")
Compression Method

Adhering to the U-Net architecture and distillation pretraining of BK-SDM, the difference in BK-SDM-2M is a 10× increase in the number of training pairs.

  • Training Data : 2,256,472 image-text pairs (i.e., 2.3M pairs) from LAION-Aesthetics V2 6.25+ .
  • Hardware: A single NVIDIA A100 80GB GPU
  • Gradient Accumulations : 4
  • Batch: 256 (=4×64)
  • Optimizer: AdamW
  • Learning Rate: a constant learning rate of 5e-5 for 50K-iteration pretraining
Experimental Results

The following table shows the zero-shot results on 30K samples from the MS-COCO validation split. After generating 512×512 images with the PNDM scheduler and 25 denoising steps, we downsampled them to 256×256 for evaluating generation scores.

  • Our models were drawn at the 50K-th training iteration.
Model FID↓ IS↑ CLIP Score↑
(ViT-g/14)
# Params,
U-Net
# Params,
Whole SDM
Stable Diffusion v1.4 13.05 36.76 0.2958 0.86B 1.04B
BK-SDM-Base (Ours) 15.76 33.79 0.2878 0.58B 0.76B
BK-SDM-Base-2M (Ours) 14.81 34.17 0.2883 0.58B 0.76B
BK-SDM-Small (Ours) 16.98 31.68 0.2677 0.49B 0.66B
BK-SDM-Small-2M (Ours) 17.05 33.10 0.2734 0.49B 0.66B
BK-SDM-Tiny (Ours) 17.12 30.09 0.2653 0.33B 0.50B
BK-SDM-Tiny-2M (Ours) 17.53 31.32 0.2690 0.33B 0.50B
Effect of Different Data Sizes for Training BK-SDM-Small

Increasing the number of training pairs improves the IS and CLIP scores over training progress. The MS-COCO 256×256 30K benchmark was used for evaluation.

Training progress with different data sizes

Furthermore, with the growth in data volume, visual results become more favorable (e.g., better image-text alignment and clear distinction among objects).

Visual results with different data sizes
Additional Visual Examples
additional visual examples

Uses

Follow the usage guidelines of Stable Diffusion v1 .

Acknowledgments

Citation

@article{kim2023architectural,
  title={On Architectural Compression of Text-to-Image Diffusion Models},
  author={Kim, Bo-Kyeong and Song, Hyoung-Kyu and Castells, Thibault and Choi, Shinkook},
  journal={arXiv preprint arXiv:2305.15798},
  year={2023},
  url={https://arxiv.org/abs/2305.15798}
}
@article{Kim_2023_ICMLW,
  title={BK-SDM: Architecturally Compressed Stable Diffusion for Efficient Text-to-Image Generation},
  author={Kim, Bo-Kyeong and Song, Hyoung-Kyu and Castells, Thibault and Choi, Shinkook},
  journal={ICML Workshop on Efficient Systems for Foundation Models (ES-FoMo)},
  year={2023},
  url={https://openreview.net/forum?id=bOVydU0XKC}
}

This model card was written by Bo-Kyeong Kim and is based on the Stable Diffusion v1 model card .

Runs of ckpt bk-sdm-tiny-2m on huggingface.co

66
Total runs
15
24-hour runs
19
3-day runs
6
7-day runs
22
30-day runs

More Information About bk-sdm-tiny-2m huggingface.co Model

bk-sdm-tiny-2m huggingface.co

bk-sdm-tiny-2m huggingface.co is an AI model on huggingface.co that provides bk-sdm-tiny-2m's model effect (), which can be used instantly with this ckpt bk-sdm-tiny-2m model. huggingface.co supports a free trial of the bk-sdm-tiny-2m model, and also provides paid use of the bk-sdm-tiny-2m. Support call bk-sdm-tiny-2m model through api, including Node.js, Python, http.

bk-sdm-tiny-2m huggingface.co Url

https://huggingface.co/ckpt/bk-sdm-tiny-2m

ckpt bk-sdm-tiny-2m online free

bk-sdm-tiny-2m huggingface.co is an online trial and call api platform, which integrates bk-sdm-tiny-2m's modeling effects, including api services, and provides a free online trial of bk-sdm-tiny-2m, you can try bk-sdm-tiny-2m online for free by clicking the link below.

ckpt bk-sdm-tiny-2m online free url in huggingface.co:

https://huggingface.co/ckpt/bk-sdm-tiny-2m

bk-sdm-tiny-2m install

bk-sdm-tiny-2m is an open source model from GitHub that offers a free installation service, and any user can find bk-sdm-tiny-2m on GitHub to install. At the same time, huggingface.co provides the effect of bk-sdm-tiny-2m install, users can directly use bk-sdm-tiny-2m installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

bk-sdm-tiny-2m install url in huggingface.co:

https://huggingface.co/ckpt/bk-sdm-tiny-2m

Url of bk-sdm-tiny-2m

bk-sdm-tiny-2m huggingface.co Url

Provider of bk-sdm-tiny-2m huggingface.co

ckpt
ORGANIZATIONS

Other API from ckpt

huggingface.co

Total runs: 26.7K
Run Growth: 3.2K
Growth Rate: 12.06%
Updated:Janvier 31 2023
huggingface.co

Total runs: 4.7K
Run Growth: -1.3K
Growth Rate: -27.36%
Updated:Juillet 06 2023
huggingface.co

Total runs: 584
Run Growth: -616
Growth Rate: -105.48%
Updated:Avril 06 2023
huggingface.co

Total runs: 308
Run Growth: 217
Growth Rate: 70.45%
Updated:Janvier 28 2023
huggingface.co

Total runs: 279
Run Growth: 205
Growth Rate: 73.48%
Updated:Juin 06 2024
huggingface.co

Total runs: 250
Run Growth: -109
Growth Rate: -43.60%
Updated:Novembre 17 2024
huggingface.co

Total runs: 97
Run Growth: 71
Growth Rate: 73.20%
Updated:Janvier 28 2023
huggingface.co

Total runs: 52
Run Growth: 40
Growth Rate: 76.92%
Updated:Novembre 10 2023
huggingface.co

Total runs: 49
Run Growth: 46
Growth Rate: 93.88%
Updated:Mars 31 2023
huggingface.co

Total runs: 36
Run Growth: 24
Growth Rate: 66.67%
Updated:Octobre 22 2023
huggingface.co

Total runs: 25
Run Growth: 23
Growth Rate: 92.00%
Updated:Janvier 28 2023
huggingface.co

Total runs: 24
Run Growth: -1
Growth Rate: -4.17%
Updated:Novembre 20 2023
huggingface.co

Total runs: 16
Run Growth: -15
Growth Rate: -93.75%
Updated:Juin 06 2024
huggingface.co

Total runs: 15
Run Growth: -10
Growth Rate: -66.67%
Updated:Janvier 28 2023
huggingface.co

Total runs: 1
Run Growth: 1
Growth Rate: 100.00%
Updated:Novembre 10 2023
huggingface.co

Total runs: 1
Run Growth: -1
Growth Rate: -100.00%
Updated:Septembre 23 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:Avril 24 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:Mars 30 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:Avril 15 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:Janvier 26 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:Janvier 26 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:Février 17 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:Avril 28 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:Avril 04 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:Mai 04 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:Mai 19 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:Avril 14 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:Juillet 27 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:Novembre 01 2022
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:Janvier 26 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:Janvier 26 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:Mai 13 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:Avril 14 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:Avril 24 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:Janvier 26 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:Avril 14 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:Août 08 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:Avril 24 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:Mai 07 2023