Text-to-Image
Diffusers
Safetensors
StableDiffusionPipeline
stable-diffusion
stable-diffusion-diffusers
Run this model with HF Jobs
Run vivym/bk-sdm-tiny-vpred on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/vivym/bk-sdm-tiny-vpred. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/vivym/bk-sdm-tiny-vpred on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use vivym/bk-sdm-tiny-vpred with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use vivym/bk-sdm-tiny-vpred with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("vivym/bk-sdm-tiny-vpred", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Ming Yang commited on
Commit ·
8547cf9
1
Parent(s): f2acc23
2000 steps
Browse filesSigned-off-by: Ming Yang <vivym@live.com>
Files changed (25)
- README.md+217
- feature_extractor/preprocessor_config.jsonAdded+20
- model_index.jsonAdded+32
- safety_checker/config.jsonAdded+171
- safety_checker/model.fp16.safetensorsAdded+3
- safety_checker/model.safetensorsAdded+3
- safety_checker/pytorch_model.binAdded+3
- safety_checker/pytorch_model.fp16.binAdded+3
- scheduler/scheduler_config.jsonAdded+14
- text_encoder/config.jsonAdded+24
- text_encoder/model.fp16.safetensorsAdded+3
- text_encoder/model.safetensorsAdded+3
- text_encoder/pytorch_model.binAdded+3
- text_encoder/pytorch_model.fp16.binAdded+3
- tokenizer/merges.txtAdded
- tokenizer/special_tokens_map.jsonAdded+24
- tokenizer/tokenizer_config.jsonAdded+34
- tokenizer/vocab.jsonAdded
- unet/config.jsonAdded+70
- unet/diffusion_pytorch_model.safetensorsAdded+3
- vae/config.jsonAdded+29
- vae/diffusion_pytorch_model.binAdded+3
- vae/diffusion_pytorch_model.fp16.binAdded+3
- vae/diffusion_pytorch_model.fp16.safetensorsAdded+3
- vae/diffusion_pytorch_model.safetensorsAdded+3
123---license: creativeml-openrail-m---123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220---license: creativeml-openrail-mtags:- stable-diffusion- stable-diffusion-diffusers- text-to-imagedatasets:- vivym/midjourney-promptslibrary_name: diffuserspipeline_tag: text-to-imageextra_gated_prompt: >-This model is open access and available to all, with a CreativeML OpenRAIL-Mlicense further specifying rights and usage.The CreativeML OpenRAIL License specifies:1. You can't use the model to deliberately produce nor share illegal orharmful outputs or content2. The authors claim no rights on the outputs you generate, you are free touse them and are accountable for their use which must not go against theprovisions set in the license3. You may re-distribute the weights and use the model commercially and/or asa service. If you do, please be aware you have to include the same userestrictions as the ones in the license and share a copy of the CreativeMLOpenRAIL-M to all your users (please read the license entirely and carefully)Please read the full license carefully here:https://huggingface.co/spaces/CompVis/stable-diffusion-licenseextra_gated_heading: Please read the LICENSE to access this model---# v-prediction variant of BK-SDM-TinyTrained on text-image pairs from Midjourney v5.2, 2000 steps with a batch size of 2048.# BK-SDM Model CardBlock-removed Knowledge-distilled Stable Diffusion Model (BK-SDM) is an architecturally compressed SDM for efficient general-purpose text-to-image synthesis. This model is bulit with (i) removing several residual and attention blocks from the U-Net of [Stable Diffusion v1.4]( https://huggingface.co/CompVis/stable-diffusion-v1-4) and (ii) distillation pretraining on only 0.22M LAION pairs (fewer than 0.1% of the full training set). Despite being trained with very limited resources, our compact model can imitate the original SDM by benefiting from transferred knowledge.- **Resources for more information**: [Paper](https://arxiv.org/abs/2305.15798), [GitHub](https://github.com/Nota-NetsPresso/BK-SDM), [Demo]( https://huggingface.co/spaces/nota-ai/compressed-stable-diffusion).## Examples with 🤗[Diffusers library](https://github.com/huggingface/diffusers).An inference code with the default PNDM scheduler and 50 denoising steps is as follows.```pythonimport torchfrom diffusers import StableDiffusionPipelinepipe = StableDiffusionPipeline.from_pretrained("nota-ai/bk-sdm-tiny", torch_dtype=torch.float16)pipe = pipe.to("cuda")prompt = "a tropical bird sitting on a branch of a tree"image = pipe(prompt).images[0]image.save("example.png")```The following code is also runnable, because we compressed the U-Net of [Stable Diffusion v1.4]( https://huggingface.co/CompVis/stable-diffusion-v1-4) while keeping the other parts (i.e., Text Encoder and Image Decoder) unchanged:```pythonimport torchfrom diffusers import StableDiffusionPipeline, UNet2DConditionModelpipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", torch_dtype=torch.float16)pipe.unet = UNet2DConditionModel.from_pretrained("nota-ai/bk-sdm-tiny", subfolder="unet", torch_dtype=torch.float16)pipe = pipe.to("cuda")prompt = "a tropical bird sitting on a branch of a tree"image = pipe(prompt).images[0]image.save("example.png")```## Compression Method### U-Net ArchitectureCertain residual and attention blocks were eliminated from the U-Net of SDM-v1.4:- 1.04B-param [SDM-v1.4](https://huggingface.co/CompVis/stable-diffusion-v1-4) (0.86B-param U-Net): the original source model.- 0.76B-param [**BK-SDM-Base**](https://huggingface.co/nota-ai/bk-sdm-base) (0.58B-param U-Net): obtained with ① fewer blocks in outer stages.- 0.66B-param [**BK-SDM-Small**](https://huggingface.co/nota-ai/bk-sdm-small) (0.49B-param U-Net): obtained with ① and ② mid-stage removal.- 0.50B-param [**BK-SDM-Tiny**](https://huggingface.co/nota-ai/bk-sdm-tiny) (0.33B-param U-Net): obtained with ①, ②, and ③ further inner-stage removal.<center><img alt="U-Net architectures" img src="https://netspresso-research-code-release.s3.us-east-2.amazonaws.com/assets-bk-sdm/fig_arch.png" width="100%"></center>### Distillation PretrainingThe compact U-Net was trained to mimic the behavior of the original U-Net. We leveraged feature-level and output-level distillation, along with the denoising task loss.<center><img alt="KD-based pretraining" img src="https://netspresso-research-code-release.s3.us-east-2.amazonaws.com/assets-bk-sdm/fig_kd_bksdm.png" width="100%"></center><br/>- **Training Data**: 212,776 image-text pairs (i.e., 0.22M pairs) from [LAION-Aesthetics V2 6.5+](https://laion.ai/blog/laion-aesthetics/).- **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 ResultsThe 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↑<br>(ViT-g/14) | # Params,<br>U-Net | # Params,<br>Whole SDM ||---|:---:|:---:|:---:|:---:|:---:|| [Stable Diffusion v1.4](https://huggingface.co/CompVis/stable-diffusion-v1-4) | 13.05 | 36.76 | 0.2958 | 0.86B | 1.04B || [BK-SDM-Base](https://huggingface.co/nota-ai/bk-sdm-base) (Ours) | 15.76 | 33.79 | 0.2878 | 0.58B | 0.76B || [BK-SDM-Small](https://huggingface.co/nota-ai/bk-sdm-small) (Ours) | 16.98 | 31.68 | 0.2677 | 0.49B | 0.66B || [BK-SDM-Tiny](https://huggingface.co/nota-ai/bk-sdm-tiny) (Ours) | 17.12 | 30.09 | 0.2653 | 0.33B | 0.50B |<br/>The following figure depicts synthesized images with some MS-COCO captions.<center><img alt="Visual results" img src="https://netspresso-research-code-release.s3.us-east-2.amazonaws.com/assets-bk-sdm/fig_results.png" width="100%"></center><br/># Uses_Note: This section is taken from the [Stable Diffusion v1 model card]( https://huggingface.co/CompVis/stable-diffusion-v1-4) (which was based on the [DALLE-MINI model card](https://huggingface.co/dalle-mini/dalle-mini)) and applies in the same way to BK-SDMs_.## Direct UseThe model is intended for research purposes only. Possible research areas and tasks include- Safe deployment of models which have the potential to generate harmful content.- Probing and understanding the limitations and biases of generative models.- Generation of artworks and use in design and other artistic processes.- Applications in educational or creative tools.- Research on generative models.Excluded uses are described below.### Misuse, Malicious Use, and Out-of-Scope UseThe model should not be used to intentionally create or disseminate images that create hostile or alienating environments for people. This includes generating images that people would foreseeably find disturbing, distressing, or offensive; or content that propagates historical or current stereotypes.#### Out-of-Scope UseThe model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.#### Misuse and Malicious UseUsing the model to generate content that is cruel to individuals is a misuse of this model. This includes, but is not limited to:- Generating demeaning, dehumanizing, or otherwise harmful representations of people or their environments, cultures, religions, etc.- Intentionally promoting or propagating discriminatory content or harmful stereotypes.- Impersonating individuals without their consent.- Sexual content without consent of the people who might see it.- Mis- and disinformation- Representations of egregious violence and gore- Sharing of copyrighted or licensed material in violation of its terms of use.- Sharing content that is an alteration of copyrighted or licensed material in violation of its terms of use.## Limitations and Bias### Limitations- The model does not achieve perfect photorealism- The model cannot render legible text- The model does not perform well on more difficult tasks which involve compositionality, such as rendering an image corresponding to “A red cube on top of a blue sphere”- Faces and people in general may not be generated properly.- The model was trained mainly with English captions and will not work as well in other languages.- The autoencoding part of the model is lossy- The model was trained on a large-scale dataset [LAION-5B](https://laion.ai/blog/laion-5b/) which contains adult material and is not fit for product use without additional safety mechanisms and considerations.- No additional measures were used to deduplicate the dataset. As a result, we observe some degree of memorization for images that are duplicated in the training data. The training data can be searched at [https://rom1504.github.io/clip-retrieval/](https://rom1504.github.io/clip-retrieval/) to possibly assist in the detection of memorized images.### BiasWhile the capabilities of image generation models are impressive, they can also reinforce or exacerbate social biases. Stable Diffusion v1 was trained on subsets of [LAION-2B(en)](https://laion.ai/blog/laion-5b/), which consists of images that are primarily limited to English descriptions. Texts and images from communities and cultures that use other languages are likely to be insufficiently accounted for. This affects the overall output of the model, as white and western cultures are often set as the default. Further, the ability of the model to generate content with non-English prompts is significantly worse than with English-language prompts.### Safety ModuleThe intended use of this model is with the [Safety Checker](https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/stable_diffusion/safety_checker.py) in Diffusers. This checker works by checking model outputs against known hard-coded NSFW concepts. The concepts are intentionally hidden to reduce the likelihood of reverse-engineering this filter. Specifically, the checker compares the class probability of harmful concepts in the embedding space of the `CLIPTextModel` *after generation* of the images. The concepts are passed into the model with the generated image and compared to a hand-engineered weight for each NSFW concept.# Acknowledgments- We express our gratitude to [Microsoft for Startups Founders Hub](https://www.microsoft.com/en-us/startups) for generously providing the Azure credits used during pretraining.- We deeply appreciate the pioneering research on Latent/Stable Diffusion conducted by [CompVis](https://github.com/CompVis/latent-diffusion), [Runway](https://runwayml.com/), and [Stability AI](https://stability.ai/).- Special thanks to the contributors to [LAION](https://laion.ai/), [Diffusers](https://github.com/huggingface/diffusers), and [Gradio](https://www.gradio.app/) for their valuable support.# Citation```bibtex@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}}``````bibtex@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]( https://huggingface.co/CompVis/stable-diffusion-v1-4).*
1234567891011121314151617181920{ "crop_size": 224, "do_center_crop": true, "do_convert_rgb": true, "do_normalize": true, "do_resize": true, "feature_extractor_type": "CLIPFeatureExtractor", "image_mean": [ 0.48145466, 0.4578275, 0.40821073 ], "image_std": [ 0.26862954, 0.26130258, 0.27577711 ], "resample": 3, "size": 224}1234567891011121314151617181920212223242526272829303132{ "_class_name": "StableDiffusionPipeline", "_diffusers_version": "0.20.2", "feature_extractor": [ "transformers", "CLIPImageProcessor" ], "safety_checker": [ "stable_diffusion", "StableDiffusionSafetyChecker" ], "scheduler": [ "diffusers", "PNDMScheduler" ], "text_encoder": [ "transformers", "CLIPTextModel" ], "tokenizer": [ "transformers", "CLIPTokenizer" ], "unet": [ "diffusers", "UNet2DConditionModel" ], "vae": [ "diffusers", "AutoencoderKL" ]}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171{ "_name_or_path": "./safety_module", "architectures": [ "StableDiffusionSafetyChecker" ], "initializer_factor": 1.0, "logit_scale_init_value": 2.6592, "model_type": "clip", "projection_dim": 768, "text_config": { "_name_or_path": "", "add_cross_attention": false, "architectures": null, "attention_dropout": 0.0, "bad_words_ids": null, "bos_token_id": 0, "chunk_size_feed_forward": 0, "cross_attention_hidden_size": null, "decoder_start_token_id": null, "diversity_penalty": 0.0, "do_sample": false, "dropout": 0.0, "early_stopping": false, "encoder_no_repeat_ngram_size": 0, "eos_token_id": 2, "exponential_decay_length_penalty": null, "finetuning_task": null, "forced_bos_token_id": null, "forced_eos_token_id": null, "hidden_act": "quick_gelu", "hidden_size": 768, "id2label": { "0": "LABEL_0", "1": "LABEL_1" }, "initializer_factor": 1.0, "initializer_range": 0.02, "intermediate_size": 3072, "is_decoder": false, "is_encoder_decoder": false, "label2id": { "LABEL_0": 0, "LABEL_1": 1 }, "layer_norm_eps": 1e-05, "length_penalty": 1.0, "max_length": 20, "max_position_embeddings": 77, "min_length": 0, "model_type": "clip_text_model", "no_repeat_ngram_size": 0, "num_attention_heads": 12, "num_beam_groups": 1, "num_beams": 1, "num_hidden_layers": 12, "num_return_sequences": 1, "output_attentions": false, "output_hidden_states": false, "output_scores": false, "pad_token_id": 1, "prefix": null, "problem_type": null, "pruned_heads": {}, "remove_invalid_values": false, "repetition_penalty": 1.0, "return_dict": true, "return_dict_in_generate": false, "sep_token_id": null, "task_specific_params": null, "temperature": 1.0, "tie_encoder_decoder": false, "tie_word_embeddings": true, "tokenizer_class": null, "top_k": 50, "top_p": 1.0, "torch_dtype": null, "torchscript": false, "transformers_version": "4.21.0.dev0", "typical_p": 1.0, "use_bfloat16": false, "vocab_size": 49408 }, "text_config_dict": { "hidden_size": 768, "intermediate_size": 3072, "num_attention_heads": 12, "num_hidden_layers": 12 }, "torch_dtype": "float32", "transformers_version": null, "vision_config": { "_name_or_path": "", "add_cross_attention": false, "architectures": null, "attention_dropout": 0.0, "bad_words_ids": null, "bos_token_id": null, "chunk_size_feed_forward": 0, "cross_attention_hidden_size": null, "decoder_start_token_id": null, "diversity_penalty": 0.0, "do_sample": false, "dropout": 0.0, "early_stopping": false, "encoder_no_repeat_ngram_size": 0, "eos_token_id": null, "exponential_decay_length_penalty": null, "finetuning_task": null, "forced_bos_token_id": null, "forced_eos_token_id": null, "hidden_act": "quick_gelu", "hidden_size": 1024, "id2label": { "0": "LABEL_0", "1": "LABEL_1" }, "image_size": 224, "initializer_factor": 1.0, "initializer_range": 0.02, "intermediate_size": 4096, "is_decoder": false, "is_encoder_decoder": false, "label2id": { "LABEL_0": 0, "LABEL_1": 1 }, "layer_norm_eps": 1e-05, "length_penalty": 1.0, "max_length": 20, "min_length": 0, "model_type": "clip_vision_model", "no_repeat_ngram_size": 0, "num_attention_heads": 16, "num_beam_groups": 1, "num_beams": 1, "num_hidden_layers": 24, "num_return_sequences": 1, "output_attentions": false, "output_hidden_states": false, "output_scores": false, "pad_token_id": null, "patch_size": 14, "prefix": null, "problem_type": null, "pruned_heads": {}, "remove_invalid_values": false, "repetition_penalty": 1.0, "return_dict": true, "return_dict_in_generate": false, "sep_token_id": null, "task_specific_params": null, "temperature": 1.0, "tie_encoder_decoder": false, "tie_word_embeddings": true, "tokenizer_class": null, "top_k": 50, "top_p": 1.0, "torch_dtype": null, "torchscript": false, "transformers_version": "4.21.0.dev0", "typical_p": 1.0, "use_bfloat16": false }, "vision_config_dict": { "hidden_size": 1024, "intermediate_size": 4096, "num_attention_heads": 16, "num_hidden_layers": 24, "patch_size": 14 }}123version https://git-lfs.github.com/spec/v1oid sha256:08902f19b1cfebd7c989f152fc0507bef6898c706a91d666509383122324b511size 608018440123version https://git-lfs.github.com/spec/v1oid sha256:9d6a233ff6fd5ccb9f76fd99618d73369c52dd3d8222376384d0e601911089e8size 1215981830123version https://git-lfs.github.com/spec/v1oid sha256:193490b58ef62739077262e833bf091c66c29488058681ac25cf7df3d8190974size 1216061799123version https://git-lfs.github.com/spec/v1oid sha256:22ba87205445ad5def13e54919b038dcfb7321ec1c3f4b12487d4fba6036125fsize 6081035641234567891011121314{ "_class_name": "PNDMScheduler", "_diffusers_version": "0.20.2", "beta_end": 0.012, "beta_schedule": "scaled_linear", "beta_start": 0.00085, "num_train_timesteps": 1000, "set_alpha_to_one": false, "skip_prk_steps": true, "steps_offset": 1, "trained_betas": null, "clip_sample": false, "prediction_type": "v_prediction"}123456789101112131415161718192021222324{ "_name_or_path": "openai/clip-vit-large-patch14", "architectures": [ "CLIPTextModel" ], "attention_dropout": 0.0, "bos_token_id": 0, "dropout": 0.0, "eos_token_id": 2, "hidden_act": "quick_gelu", "hidden_size": 768, "initializer_factor": 1.0, "initializer_range": 0.02, "intermediate_size": 3072, "layer_norm_eps": 1e-05, "max_position_embeddings": 77, "model_type": "clip_text_model", "num_attention_heads": 12, "num_hidden_layers": 12, "pad_token_id": 1, "torch_dtype": "float32", "transformers_version": "4.21.0.dev0", "vocab_size": 49408}123version https://git-lfs.github.com/spec/v1oid sha256:77795e2023adcf39bc29a884661950380bd093cf0750a966d473d1718dc9ef4esize 246144864123version https://git-lfs.github.com/spec/v1oid sha256:7b3a12df205cb3c74dd4eae4354d93f606ae6b3bc29d5d06fd97921cb9ad8a81size 492265879123version https://git-lfs.github.com/spec/v1oid sha256:770a47a9ffdcfda0b05506a7888ed714d06131d60267e6cf52765d61cf59fd67size 492305335123version https://git-lfs.github.com/spec/v1oid sha256:05eee911f195625deeab86f0b22b115d7d8bc3adbfc1404f03557f7e4e6a8fd7size 246187076123456789101112131415161718192021222324{ "bos_token": { "content": "<|startoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "eos_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "pad_token": "<|endoftext|>", "unk_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }}12345678910111213141516171819202122232425262728293031323334{ "add_prefix_space": false, "bos_token": { "__type": "AddedToken", "content": "<|startoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "do_lower_case": true, "eos_token": { "__type": "AddedToken", "content": "<|endoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "errors": "replace", "model_max_length": 77, "name_or_path": "openai/clip-vit-large-patch14", "pad_token": "<|endoftext|>", "special_tokens_map_file": "./special_tokens_map.json", "tokenizer_class": "CLIPTokenizer", "unk_token": { "__type": "AddedToken", "content": "<|endoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970{ "_class_name": "UNet2DConditionModel", "_diffusers_version": "0.20.2", "_name_or_path": "vivym/bk-sdm-tiny-vpred", "act_fn": "silu", "addition_embed_type": null, "addition_embed_type_num_heads": 64, "addition_time_embed_dim": null, "attention_head_dim": 8, "attention_type": "default", "block_out_channels": [ 320, 640, 1280 ], "center_input_sample": false, "class_embed_type": null, "class_embeddings_concat": false, "conv_in_kernel": 3, "conv_out_kernel": 3, "cross_attention_dim": 768, "cross_attention_norm": null, "decay": 0.9999, "down_block_types": [ "CrossAttnDownBlock2D", "CrossAttnDownBlock2D", "CrossAttnDownBlock2D" ], "downsample_padding": 1, "dual_cross_attention": false, "encoder_hid_dim": null, "encoder_hid_dim_type": null, "flip_sin_to_cos": true, "freq_shift": 0, "in_channels": 4, "inv_gamma": 1.0, "layers_per_block": 1, "mid_block_only_cross_attention": null, "mid_block_scale_factor": 1, "mid_block_type": null, "min_decay": 0.0, "norm_eps": 1e-05, "norm_num_groups": 32, "num_attention_heads": null, "num_class_embeds": null, "only_cross_attention": false, "optimization_step": 2000, "out_channels": 4, "power": 0.6666666666666666, "projection_class_embeddings_input_dim": null, "resnet_out_scale_factor": 1.0, "resnet_skip_time_act": false, "resnet_time_scale_shift": "default", "sample_size": 64, "time_cond_proj_dim": null, "time_embedding_act_fn": null, "time_embedding_dim": null, "time_embedding_type": "positional", "timestep_post_act": null, "transformer_layers_per_block": 1, "up_block_types": [ "CrossAttnUpBlock2D", "CrossAttnUpBlock2D", "CrossAttnUpBlock2D" ], "upcast_attention": false, "update_after_step": 0, "use_ema_warmup": false, "use_linear_projection": false}123version https://git-lfs.github.com/spec/v1oid sha256:55ff76d0c19263022293ef5248d89f5d8b3a70a7bc25b92fef3e76a0fd9bd93bsize 12935836161234567891011121314151617181920212223242526272829{ "_class_name": "AutoencoderKL", "_diffusers_version": "0.20.2", "act_fn": "silu", "block_out_channels": [ 128, 256, 512, 512 ], "down_block_types": [ "DownEncoderBlock2D", "DownEncoderBlock2D", "DownEncoderBlock2D", "DownEncoderBlock2D" ], "in_channels": 3, "latent_channels": 4, "layers_per_block": 2, "out_channels": 3, "sample_size": 512, "scaling_factor": 0.18215, "up_block_types": [ "UpDecoderBlock2D", "UpDecoderBlock2D", "UpDecoderBlock2D", "UpDecoderBlock2D" ]}123version https://git-lfs.github.com/spec/v1oid sha256:1b134cded8eb78b184aefb8805b6b572f36fa77b255c483665dda931fa0130c5size 334707217123version https://git-lfs.github.com/spec/v1oid sha256:b7643b3e40b9f128eda5fe174fea73c3ef3903562651fb344a79439709c2e503size 167405651123version https://git-lfs.github.com/spec/v1oid sha256:4fbcf0ebe55a0984f5a5e00d8c4521d52359af7229bb4d81890039d2aa16dd7csize 167335342123version https://git-lfs.github.com/spec/v1oid sha256:a2b5134f4dbc140d9c11f11cba3233099e00af40f262f136c691fb7d38d2194csize 334643276README.md+217
feature_extractor/preprocessor_config.jsonAdded+20
model_index.jsonAdded+32
safety_checker/config.jsonAdded+171
safety_checker/model.fp16.safetensorsAdded+3
safety_checker/model.safetensorsAdded+3
safety_checker/pytorch_model.binAdded+3
safety_checker/pytorch_model.fp16.binAdded+3
scheduler/scheduler_config.jsonAdded+14
text_encoder/config.jsonAdded+24
text_encoder/model.fp16.safetensorsAdded+3
text_encoder/model.safetensorsAdded+3
text_encoder/pytorch_model.binAdded+3
text_encoder/pytorch_model.fp16.binAdded+3
tokenizer/merges.txtAdded
tokenizer/special_tokens_map.jsonAdded+24
tokenizer/tokenizer_config.jsonAdded+34
tokenizer/vocab.jsonAdded
unet/config.jsonAdded+70
unet/diffusion_pytorch_model.safetensorsAdded+3
vae/config.jsonAdded+29
vae/diffusion_pytorch_model.binAdded+3
vae/diffusion_pytorch_model.fp16.binAdded+3
vae/diffusion_pytorch_model.fp16.safetensorsAdded+3
vae/diffusion_pytorch_model.safetensorsAdded+3