Run this model with HF Jobs
Run sd2-community/stable-diffusion-2-depth 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/sd2-community/stable-diffusion-2-depth. 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/sd2-community/stable-diffusion-2-depth 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 sd2-community/stable-diffusion-2-depth with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use sd2-community/stable-diffusion-2-depth with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("sd2-community/stable-diffusion-2-depth", 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
sd2 commited on
Commit ·
6cb92dd
0
Parent(s):
Initial Commit
Browse filesFiles changed (32)
- .gitattributesAdded+35
- 512-depth-ema.ckptAdded+3
- 512-depth-ema.safetensorsAdded+3
- README.mdAdded+189
- depth2image.pngAdded
- depth_estimator/config.jsonAdded+460
- depth_estimator/model.fp16.safetensorsAdded+3
- depth_estimator/model.safetensorsAdded+3
- depth_estimator/pytorch_model.binAdded+3
- depth_estimator/pytorch_model.fp16.binAdded+3
- feature_extractor/preprocessor_config.jsonAdded+24
- model_index.jsonAdded+32
- scheduler/scheduler_config.jsonAdded+14
- text_encoder/config.jsonAdded+25
- 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+46
- unet/diffusion_pytorch_model.binAdded+3
- unet/diffusion_pytorch_model.fp16.binAdded+3
- unet/diffusion_pytorch_model.fp16.safetensorsAdded+3
- unet/diffusion_pytorch_model.safetensorsAdded+3
- vae/config.jsonAdded+30
- 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
1234567891011121314151617181920212223242526272829303132333435*.7z filter=lfs diff=lfs merge=lfs -text*.arrow filter=lfs diff=lfs merge=lfs -text*.bin filter=lfs diff=lfs merge=lfs -text*.bz2 filter=lfs diff=lfs merge=lfs -text*.ckpt filter=lfs diff=lfs merge=lfs -text*.ftz filter=lfs diff=lfs merge=lfs -text*.gz filter=lfs diff=lfs merge=lfs -text*.h5 filter=lfs diff=lfs merge=lfs -text*.joblib filter=lfs diff=lfs merge=lfs -text*.lfs.* filter=lfs diff=lfs merge=lfs -text*.mlmodel filter=lfs diff=lfs merge=lfs -text*.model filter=lfs diff=lfs merge=lfs -text*.msgpack filter=lfs diff=lfs merge=lfs -text*.npy filter=lfs diff=lfs merge=lfs -text*.npz filter=lfs diff=lfs merge=lfs -text*.onnx filter=lfs diff=lfs merge=lfs -text*.ot filter=lfs diff=lfs merge=lfs -text*.parquet filter=lfs diff=lfs merge=lfs -text*.pb filter=lfs diff=lfs merge=lfs -text*.pickle filter=lfs diff=lfs merge=lfs -text*.pkl filter=lfs diff=lfs merge=lfs -text*.pt filter=lfs diff=lfs merge=lfs -text*.pth filter=lfs diff=lfs merge=lfs -text*.rar filter=lfs diff=lfs merge=lfs -text*.safetensors filter=lfs diff=lfs merge=lfs -textsaved_model/**/* filter=lfs diff=lfs merge=lfs -text*.tar.* filter=lfs diff=lfs merge=lfs -text*.tflite filter=lfs diff=lfs merge=lfs -text*.tgz filter=lfs diff=lfs merge=lfs -text*.wasm filter=lfs diff=lfs merge=lfs -text*.xz filter=lfs diff=lfs merge=lfs -text*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textdepth2image.png filter=lfs diff=lfs merge=lfs -text123version https://git-lfs.github.com/spec/v1oid sha256:ece79d931a1f3c27fb98a0c0bc6aa7d61168879cd52b4ad7b26e3106f9748ef1size 5707592867123version https://git-lfs.github.com/spec/v1oid sha256:59cb052d4409654936139693b57e4632d119bdd38df9a3cdf30d4a63799a4853size 5707256711123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189---license: openrail++tags:- stable-diffusioninference: false---
# Stable Diffusion v2 Model CardThis model card focuses on the model associated with the Stable Diffusion v2 model, available [here](https://github.com/Stability-AI/stablediffusion).
This `stable-diffusion-2-depth` model is resumed from [stable-diffusion-2-base](https://huggingface.co/stabilityai/stable-diffusion-2-base) (`512-base-ema.ckpt`) and finetuned for 200k steps. Added an extra input channel to process the (relative) depth prediction produced by [MiDaS](https://github.com/isl-org/MiDaS) (`dpt_hybrid`) which is used as an additional conditioning.

- Use it with the [`stablediffusion`](https://github.com/Stability-AI/stablediffusion) repository: download the `512-depth-ema.ckpt` [here](https://huggingface.co/stabilityai/stable-diffusion-2-depth/resolve/main/512-depth-ema.ckpt).- Use it with 🧨 [`diffusers`](#examples)
## Model Details- **Developed by:** Robin Rombach, Patrick Esser- **Model type:** Diffusion-based text-to-image generation model- **Language(s):** English- **License:** [CreativeML Open RAIL++-M License](https://huggingface.co/stabilityai/stable-diffusion-2/blob/main/LICENSE-MODEL)- **Model Description:** This is a model that can be used to generate and modify images based on text prompts. It is a [Latent Diffusion Model](https://arxiv.org/abs/2112.10752) that uses a fixed, pretrained text encoder ([OpenCLIP-ViT/H](https://github.com/mlfoundations/open_clip)).- **Resources for more information:** [GitHub Repository](https://github.com/Stability-AI/).- **Cite as:**
@InProceedings{Rombach_2022_CVPR, author = {Rombach, Robin and Blattmann, Andreas and Lorenz, Dominik and Esser, Patrick and Ommer, Bj\"orn}, title = {High-Resolution Image Synthesis With Latent Diffusion Models}, booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)}, month = {June}, year = {2022}, pages = {10684-10695} }
## Examples
Using the [🤗's Diffusers library](https://github.com/huggingface/diffusers) to run Stable Diffusion 2 in a simple and efficient manner.
```bashpip install -U git+https://github.com/huggingface/transformers.gitpip install diffusers transformers accelerate scipy safetensors```Running the pipeline (if you don't swap the scheduler it will run with the default DDIM, in this example we are swapping it to EulerDiscreteScheduler):
```pythonimport torchimport requestsfrom PIL import Imagefrom diffusers import StableDiffusionDepth2ImgPipeline
pipe = StableDiffusionDepth2ImgPipeline.from_pretrained( "stabilityai/stable-diffusion-2-depth", torch_dtype=torch.float16,).to("cuda")
url = "http://images.cocodataset.org/val2017/000000039769.jpg"init_image = Image.open(requests.get(url, stream=True).raw)
prompt = "two tigers"n_propmt = "bad, deformed, ugly, bad anotomy"image = pipe(prompt=prompt, image=init_image, negative_prompt=n_propmt, strength=0.7).images[0]```
**Notes**:- Despite not being a dependency, we highly recommend you to install [xformers](https://github.com/facebookresearch/xformers) for memory efficient attention (better performance)- If you have low GPU RAM available, make sure to add a `pipe.enable_attention_slicing()` after sending it to `cuda` for less VRAM usage (to the cost of speed)
# Uses
## Direct Use The 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 Use_Note: This section is originally taken from the [DALLE-MINI model card](https://huggingface.co/dalle-mini/dalle-mini), was used for Stable Diffusion v1, but applies in the same way to Stable Diffusion v2_.
The 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 subset of the large-scale dataset [LAION-5B](https://laion.ai/blog/laion-5b/), which contains adult, violent and sexual content. To partially mitigate this, we have filtered the dataset using LAION's NFSW detector (see Training section).
### BiasWhile the capabilities of image generation models are impressive, they can also reinforce or exacerbate social biases. Stable Diffusion vw was primarily trained on subsets of [LAION-2B(en)](https://laion.ai/blog/laion-5b/), which consists of images that are 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.Stable Diffusion v2 mirrors and exacerbates biases to such a degree that viewer discretion must be advised irrespective of the input or its intent.
## Training
**Training Data**The model developers used the following dataset for training the model:
- LAION-5B and subsets (details below). The training data is further filtered using LAION's NSFW detector, with a "p_unsafe" score of 0.1 (conservative). For more details, please refer to LAION-5B's [NeurIPS 2022](https://openreview.net/forum?id=M3Y74vmsMcY) paper and reviewer discussions on the topic.
**Training Procedure**Stable Diffusion v2 is a latent diffusion model which combines an autoencoder with a diffusion model that is trained in the latent space of the autoencoder. During training,
- Images are encoded through an encoder, which turns images into latent representations. The autoencoder uses a relative downsampling factor of 8 and maps images of shape H x W x 3 to latents of shape H/f x W/f x 4- Text prompts are encoded through the OpenCLIP-ViT/H text-encoder.- The output of the text encoder is fed into the UNet backbone of the latent diffusion model via cross-attention.- The loss is a reconstruction objective between the noise that was added to the latent and the prediction made by the UNet. We also use the so-called _v-objective_, see https://arxiv.org/abs/2202.00512.
We currently provide the following checkpoints:
- `512-base-ema.ckpt`: 550k steps at resolution `256x256` on a subset of [LAION-5B](https://laion.ai/blog/laion-5b/) filtered for explicit pornographic material, using the [LAION-NSFW classifier](https://github.com/LAION-AI/CLIP-based-NSFW-Detector) with `punsafe=0.1` and an [aesthetic score](https://github.com/christophschuhmann/improved-aesthetic-predictor) >= `4.5`. 850k steps at resolution `512x512` on the same dataset with resolution `>= 512x512`.- `768-v-ema.ckpt`: Resumed from `512-base-ema.ckpt` and trained for 150k steps using a [v-objective](https://arxiv.org/abs/2202.00512) on the same dataset. Resumed for another 140k steps on a `768x768` subset of our dataset.- `512-depth-ema.ckpt`: Resumed from `512-base-ema.ckpt` and finetuned for 200k steps. Added an extra input channel to process the (relative) depth prediction produced by [MiDaS](https://github.com/isl-org/MiDaS) (`dpt_hybrid`) which is used as an additional conditioning.The additional input channels of the U-Net which process this extra information were zero-initialized.- `512-inpainting-ema.ckpt`: Resumed from `512-base-ema.ckpt` and trained for another 200k steps. Follows the mask-generation strategy presented in [LAMA](https://github.com/saic-mdal/lama) which, in combination with the latent VAE representations of the masked image, are used as an additional conditioning.The additional input channels of the U-Net which process this extra information were zero-initialized. The same strategy was used to train the [1.5-inpainting checkpoint](https://github.com/saic-mdal/lama).- `x4-upscaling-ema.ckpt`: Trained for 1.25M steps on a 10M subset of LAION containing images `>2048x2048`. The model was trained on crops of size `512x512` and is a text-guided [latent upscaling diffusion model](https://arxiv.org/abs/2112.10752).In addition to the textual input, it receives a `noise_level` as an input parameter, which can be used to add noise to the low-resolution input according to a [predefined diffusion schedule](configs/stable-diffusion/x4-upscaling.yaml).
- **Hardware:** 32 x 8 x A100 GPUs- **Optimizer:** AdamW- **Gradient Accumulations**: 1- **Batch:** 32 x 8 x 2 x 4 = 2048- **Learning rate:** warmup to 0.0001 for 10,000 steps and then kept constant
## Evaluation Results Evaluations with different classifier-free guidance scales (1.5, 2.0, 3.0, 4.0,5.0, 6.0, 7.0, 8.0) and 50 steps DDIM sampling steps show the relative improvements of the checkpoints:

Evaluated using 50 DDIM steps and 10000 random prompts from the COCO2017 validation set, evaluated at 512x512 resolution. Not optimized for FID scores.
## Environmental Impact
**Stable Diffusion v1** **Estimated Emissions**Based on that information, we estimate the following CO2 emissions using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700). The hardware, runtime, cloud provider, and compute region were utilized to estimate the carbon impact.
- **Hardware Type:** A100 PCIe 40GB- **Hours used:** 200000- **Cloud Provider:** AWS- **Compute Region:** US-east- **Carbon Emitted (Power consumption x Time x Carbon produced based on location of power grid):** 15000 kg CO2 eq.
## Citation @InProceedings{Rombach_2022_CVPR, author = {Rombach, Robin and Blattmann, Andreas and Lorenz, Dominik and Esser, Patrick and Ommer, Bj\"orn}, title = {High-Resolution Image Synthesis With Latent Diffusion Models}, booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)}, month = {June}, year = {2022}, pages = {10684-10695} }
*This model card was written by: Robin Rombach, Patrick Esser and David Ha and is based on the [Stable Diffusion v1](https://github.com/CompVis/stable-diffusion/blob/main/Stable_Diffusion_v1_Model_Card.md) and [DALL-E Mini model card](https://huggingface.co/dalle-mini/dalle-mini).*123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460{ "_commit_hash": "65776c96786d3dd82c1cdb4847ea0c2cb46a943c", "_name_or_path": "Intel/dpt-hybrid-midas", "architectures": [ "DPTForDepthEstimation" ], "attention_probs_dropout_prob": 0.0, "auxiliary_loss_weight": 0.4, "backbone_config": { "_name_or_path": "", "add_cross_attention": false, "architectures": null, "bad_words_ids": null, "begin_suppress_tokens": null, "bos_token_id": null, "chunk_size_feed_forward": 0, "cross_attention_hidden_size": null, "decoder_start_token_id": null, "depths": [ 3, 4, 9 ], "diversity_penalty": 0.0, "do_sample": false, "drop_path_rate": 0.0, "early_stopping": false, "embedding_dynamic_padding": true, "embedding_size": 64, "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, "global_padding": "SAME", "hidden_act": "relu", "hidden_sizes": [ 256, 512, 1024, 2048 ], "id2label": { "0": "LABEL_0", "1": "LABEL_1" }, "is_decoder": false, "is_encoder_decoder": false, "label2id": { "LABEL_0": 0, "LABEL_1": 1 }, "layer_type": "bottleneck", "length_penalty": 1.0, "max_length": 20, "min_length": 0, "model_type": "bit", "no_repeat_ngram_size": 0, "num_beam_groups": 1, "num_beams": 1, "num_channels": 3, "num_groups": 32, "num_return_sequences": 1, "out_features": [ "stage1", "stage2", "stage3" ], "output_attentions": false, "output_hidden_states": false, "output_scores": false, "output_stride": 32, "pad_token_id": null, "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, "stage_names": [ "stem", "stage1", "stage2", "stage3" ], "suppress_tokens": null, "task_specific_params": null, "temperature": 1.0, "tf_legacy_loss": false, "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.26.0.dev0", "typical_p": 1.0, "use_bfloat16": false, "width_factor": 1 }, "backbone_featmap_shape": [ 1, 1024, 24, 24 ], "backbone_out_indices": [ 2, 5, 8, 11 ], "fusion_hidden_size": 256, "head_in_index": -1, "hidden_act": "gelu", "hidden_dropout_prob": 0.0, "hidden_size": 768, "id2label": { "0": "LABEL_0", "1": "LABEL_1", "2": "LABEL_2", "3": "LABEL_3", "4": "LABEL_4", "5": "LABEL_5", "6": "LABEL_6", "7": "LABEL_7", "8": "LABEL_8", "9": "LABEL_9", "10": "LABEL_10", "11": "LABEL_11", "12": "LABEL_12", "13": "LABEL_13", "14": "LABEL_14", "15": "LABEL_15", "16": "LABEL_16", "17": "LABEL_17", "18": "LABEL_18", "19": "LABEL_19", "20": "LABEL_20", "21": "LABEL_21", "22": "LABEL_22", "23": "LABEL_23", "24": "LABEL_24", "25": "LABEL_25", "26": "LABEL_26", "27": "LABEL_27", "28": "LABEL_28", "29": "LABEL_29", "30": "LABEL_30", "31": "LABEL_31", "32": "LABEL_32", "33": "LABEL_33", "34": "LABEL_34", "35": "LABEL_35", "36": "LABEL_36", "37": "LABEL_37", "38": "LABEL_38", "39": "LABEL_39", "40": "LABEL_40", "41": "LABEL_41", "42": "LABEL_42", "43": "LABEL_43", "44": "LABEL_44", "45": "LABEL_45", "46": "LABEL_46", "47": "LABEL_47", "48": "LABEL_48", "49": "LABEL_49", "50": "LABEL_50", "51": "LABEL_51", "52": "LABEL_52", "53": "LABEL_53", "54": "LABEL_54", "55": "LABEL_55", "56": "LABEL_56", "57": "LABEL_57", "58": "LABEL_58", "59": "LABEL_59", "60": "LABEL_60", "61": "LABEL_61", "62": "LABEL_62", "63": "LABEL_63", "64": "LABEL_64", "65": "LABEL_65", "66": "LABEL_66", "67": "LABEL_67", "68": "LABEL_68", "69": "LABEL_69", "70": "LABEL_70", "71": "LABEL_71", "72": "LABEL_72", "73": "LABEL_73", "74": "LABEL_74", "75": "LABEL_75", "76": "LABEL_76", "77": "LABEL_77", "78": "LABEL_78", "79": "LABEL_79", "80": "LABEL_80", "81": "LABEL_81", "82": "LABEL_82", "83": "LABEL_83", "84": "LABEL_84", "85": "LABEL_85", "86": "LABEL_86", "87": "LABEL_87", "88": "LABEL_88", "89": "LABEL_89", "90": "LABEL_90", "91": "LABEL_91", "92": "LABEL_92", "93": "LABEL_93", "94": "LABEL_94", "95": "LABEL_95", "96": "LABEL_96", "97": "LABEL_97", "98": "LABEL_98", "99": "LABEL_99", "100": "LABEL_100", "101": "LABEL_101", "102": "LABEL_102", "103": "LABEL_103", "104": "LABEL_104", "105": "LABEL_105", "106": "LABEL_106", "107": "LABEL_107", "108": "LABEL_108", "109": "LABEL_109", "110": "LABEL_110", "111": "LABEL_111", "112": "LABEL_112", "113": "LABEL_113", "114": "LABEL_114", "115": "LABEL_115", "116": "LABEL_116", "117": "LABEL_117", "118": "LABEL_118", "119": "LABEL_119", "120": "LABEL_120", "121": "LABEL_121", "122": "LABEL_122", "123": "LABEL_123", "124": "LABEL_124", "125": "LABEL_125", "126": "LABEL_126", "127": "LABEL_127", "128": "LABEL_128", "129": "LABEL_129", "130": "LABEL_130", "131": "LABEL_131", "132": "LABEL_132", "133": "LABEL_133", "134": "LABEL_134", "135": "LABEL_135", "136": "LABEL_136", "137": "LABEL_137", "138": "LABEL_138", "139": "LABEL_139", "140": "LABEL_140", "141": "LABEL_141", "142": "LABEL_142", "143": "LABEL_143", "144": "LABEL_144", "145": "LABEL_145", "146": "LABEL_146", "147": "LABEL_147", "148": "LABEL_148", "149": "LABEL_149" }, "image_size": 384, "initializer_range": 0.02, "intermediate_size": 3072, "is_hybrid": true, "label2id": { "LABEL_0": 0, "LABEL_1": 1, "LABEL_10": 10, "LABEL_100": 100, "LABEL_101": 101, "LABEL_102": 102, "LABEL_103": 103, "LABEL_104": 104, "LABEL_105": 105, "LABEL_106": 106, "LABEL_107": 107, "LABEL_108": 108, "LABEL_109": 109, "LABEL_11": 11, "LABEL_110": 110, "LABEL_111": 111, "LABEL_112": 112, "LABEL_113": 113, "LABEL_114": 114, "LABEL_115": 115, "LABEL_116": 116, "LABEL_117": 117, "LABEL_118": 118, "LABEL_119": 119, "LABEL_12": 12, "LABEL_120": 120, "LABEL_121": 121, "LABEL_122": 122, "LABEL_123": 123, "LABEL_124": 124, "LABEL_125": 125, "LABEL_126": 126, "LABEL_127": 127, "LABEL_128": 128, "LABEL_129": 129, "LABEL_13": 13, "LABEL_130": 130, "LABEL_131": 131, "LABEL_132": 132, "LABEL_133": 133, "LABEL_134": 134, "LABEL_135": 135, "LABEL_136": 136, "LABEL_137": 137, "LABEL_138": 138, "LABEL_139": 139, "LABEL_14": 14, "LABEL_140": 140, "LABEL_141": 141, "LABEL_142": 142, "LABEL_143": 143, "LABEL_144": 144, "LABEL_145": 145, "LABEL_146": 146, "LABEL_147": 147, "LABEL_148": 148, "LABEL_149": 149, "LABEL_15": 15, "LABEL_16": 16, "LABEL_17": 17, "LABEL_18": 18, "LABEL_19": 19, "LABEL_2": 2, "LABEL_20": 20, "LABEL_21": 21, "LABEL_22": 22, "LABEL_23": 23, "LABEL_24": 24, "LABEL_25": 25, "LABEL_26": 26, "LABEL_27": 27, "LABEL_28": 28, "LABEL_29": 29, "LABEL_3": 3, "LABEL_30": 30, "LABEL_31": 31, "LABEL_32": 32, "LABEL_33": 33, "LABEL_34": 34, "LABEL_35": 35, "LABEL_36": 36, "LABEL_37": 37, "LABEL_38": 38, "LABEL_39": 39, "LABEL_4": 4, "LABEL_40": 40, "LABEL_41": 41, "LABEL_42": 42, "LABEL_43": 43, "LABEL_44": 44, "LABEL_45": 45, "LABEL_46": 46, "LABEL_47": 47, "LABEL_48": 48, "LABEL_49": 49, "LABEL_5": 5, "LABEL_50": 50, "LABEL_51": 51, "LABEL_52": 52, "LABEL_53": 53, "LABEL_54": 54, "LABEL_55": 55, "LABEL_56": 56, "LABEL_57": 57, "LABEL_58": 58, "LABEL_59": 59, "LABEL_6": 6, "LABEL_60": 60, "LABEL_61": 61, "LABEL_62": 62, "LABEL_63": 63, "LABEL_64": 64, "LABEL_65": 65, "LABEL_66": 66, "LABEL_67": 67, "LABEL_68": 68, "LABEL_69": 69, "LABEL_7": 7, "LABEL_70": 70, "LABEL_71": 71, "LABEL_72": 72, "LABEL_73": 73, "LABEL_74": 74, "LABEL_75": 75, "LABEL_76": 76, "LABEL_77": 77, "LABEL_78": 78, "LABEL_79": 79, "LABEL_8": 8, "LABEL_80": 80, "LABEL_81": 81, "LABEL_82": 82, "LABEL_83": 83, "LABEL_84": 84, "LABEL_85": 85, "LABEL_86": 86, "LABEL_87": 87, "LABEL_88": 88, "LABEL_89": 89, "LABEL_9": 9, "LABEL_90": 90, "LABEL_91": 91, "LABEL_92": 92, "LABEL_93": 93, "LABEL_94": 94, "LABEL_95": 95, "LABEL_96": 96, "LABEL_97": 97, "LABEL_98": 98, "LABEL_99": 99 }, "layer_norm_eps": 1e-12, "model_type": "dpt", "neck_hidden_sizes": [ 256, 512, 768, 768 ], "neck_ignore_stages": [ 0, 1 ], "num_attention_heads": 12, "num_channels": 3, "num_hidden_layers": 12, "patch_size": 16, "qkv_bias": true, "readout_type": "project", "reassemble_factors": [ 1, 1, 1, 0.5 ], "semantic_classifier_dropout": 0.1, "semantic_loss_ignore_index": 255, "torch_dtype": "float32", "transformers_version": null, "use_auxiliary_head": true, "use_batch_norm_in_fusion_residual": false}123version https://git-lfs.github.com/spec/v1oid sha256:0b81005e6fc3b3e7a35468a4a67751df8fe3b5102d20e68dced032f1d9ec6579size 244807338123version https://git-lfs.github.com/spec/v1oid sha256:4dff5a9afc916f456e001ef66cc3094f703454bd22cbd4fbe112446e99c0febasize 489563456123version https://git-lfs.github.com/spec/v1oid sha256:b6c4d44f9d96ca3fa76dd3bbb153989a60b4ad5526559f3c598562a368d687ecsize 489648389123version https://git-lfs.github.com/spec/v1oid sha256:87bb6b046c8df3e469e95dfdfe8a712135d3d2a580c80197c2ae65654370292dsize 244897573123456789101112131415161718192021222324{ "do_normalize": true, "do_rescale": true, "do_resize": true, "ensure_multiple_of": 1, "image_mean": [ 0.5, 0.5, 0.5 ], "image_processor_type": "DPTImageProcessor", "image_std": [ 0.5, 0.5, 0.5 ], "keep_aspect_ratio": false, "resample": 2, "rescale_factor": 0.00392156862745098, "size": { "height": 384, "width": 384 }}1234567891011121314151617181920212223242526272829303132{ "_class_name": "StableDiffusionDepth2ImgPipeline", "_diffusers_version": "0.10.0.dev0", "depth_estimator": [ "transformers", "DPTForDepthEstimation" ], "feature_extractor": [ "transformers", "DPTImageProcessor" ], "scheduler": [ "diffusers", "PNDMScheduler" ], "text_encoder": [ "transformers", "CLIPTextModel" ], "tokenizer": [ "transformers", "CLIPTokenizer" ], "unet": [ "diffusers", "UNet2DConditionModel" ], "vae": [ "diffusers", "AutoencoderKL" ]}1234567891011121314{ "_class_name": "PNDMScheduler", "_diffusers_version": "0.10.0.dev0", "beta_end": 0.012, "beta_schedule": "scaled_linear", "beta_start": 0.00085, "clip_sample": false, "num_train_timesteps": 1000, "prediction_type": "epsilon", "set_alpha_to_one": false, "skip_prk_steps": true, "steps_offset": 1, "trained_betas": null}12345678910111213141516171819202122232425{ "_name_or_path": "/home/suraj_huggingface_co/.cache/huggingface/diffusers/models--fusing--sd-depth-test/snapshots/200d326f1f39e1df3ffc78f7f0323c54fd68bdb6/text_encoder", "architectures": [ "CLIPTextModel" ], "attention_dropout": 0.0, "bos_token_id": 0, "dropout": 0.0, "eos_token_id": 2, "hidden_act": "gelu", "hidden_size": 1024, "initializer_factor": 1.0, "initializer_range": 0.02, "intermediate_size": 4096, "layer_norm_eps": 1e-05, "max_position_embeddings": 77, "model_type": "clip_text_model", "num_attention_heads": 16, "num_hidden_layers": 23, "pad_token_id": 1, "projection_dim": 512, "torch_dtype": "float32", "transformers_version": "4.26.0.dev0", "vocab_size": 49408}123version https://git-lfs.github.com/spec/v1oid sha256:681c555376658c81dc273f2d737a2aeb23ddb6d1d8e5b3a7064636d359a22668size 680821096123version https://git-lfs.github.com/spec/v1oid sha256:cce6febb0b6d876ee5eb24af35e27e764eb4f9b1d0b7c026c8c3333d4cfc916csize 1361597018123version https://git-lfs.github.com/spec/v1oid sha256:c3e254d7b61353497ea0be2c4013df4ea8f739ee88cffa0ba58cd085459ed565size 1361671895123version https://git-lfs.github.com/spec/v1oid sha256:7bb11b1da63986aaaaefb5ef2100d34109c024ac640cacd9ed697150c1c57f01size 680900852123456789101112131415161718192021222324{ "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": "!", "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": "/home/suraj_huggingface_co/.cache/huggingface/diffusers/models--fusing--sd-depth-test/snapshots/200d326f1f39e1df3ffc78f7f0323c54fd68bdb6/tokenizer", "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 }}12345678910111213141516171819202122232425262728293031323334353637383940414243444546{ "_class_name": "UNet2DConditionModel", "_diffusers_version": "0.10.0.dev0", "_name_or_path": "/home/suraj_huggingface_co/.cache/huggingface/diffusers/models--fusing--sd-depth-test/snapshots/200d326f1f39e1df3ffc78f7f0323c54fd68bdb6/unet", "act_fn": "silu", "attention_head_dim": [ 5, 10, 20, 20 ], "block_out_channels": [ 320, 640, 1280, 1280 ], "center_input_sample": false, "cross_attention_dim": 1024, "down_block_types": [ "CrossAttnDownBlock2D", "CrossAttnDownBlock2D", "CrossAttnDownBlock2D", "DownBlock2D" ], "downsample_padding": 1, "dual_cross_attention": false, "flip_sin_to_cos": true, "freq_shift": 0, "in_channels": 5, "layers_per_block": 2, "mid_block_scale_factor": 1, "norm_eps": 1e-05, "norm_num_groups": 32, "num_class_embeds": null, "only_cross_attention": false, "out_channels": 4, "sample_size": 32, "up_block_types": [ "UpBlock2D", "CrossAttnUpBlock2D", "CrossAttnUpBlock2D", "CrossAttnUpBlock2D" ], "use_linear_projection": true}123version https://git-lfs.github.com/spec/v1oid sha256:871e132e8cbc029660523a057acd756b3dec68720dcff0601475ca34d9c65cb6size 3463924965123version https://git-lfs.github.com/spec/v1oid sha256:b288e4bd2500aad0686b30597d414aadf3b24969ba9ad3b3c47cb7cd559cebf7size 1732112853123version https://git-lfs.github.com/spec/v1oid sha256:a6e9bf637022853354a7b40aeffa5e6d973282f8d7336e0235471c574ac851cdsize 1731910496123version https://git-lfs.github.com/spec/v1oid sha256:5aae5a54414619c647188ce3c6582974fa3a5a004d5863a753cc1ea86576939bsize 3463738026123456789101112131415161718192021222324252627282930{ "_class_name": "AutoencoderKL", "_diffusers_version": "0.10.0.dev0", "_name_or_path": "/home/suraj_huggingface_co/.cache/huggingface/diffusers/models--fusing--sd-depth-test/snapshots/200d326f1f39e1df3ffc78f7f0323c54fd68bdb6/vae", "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, "norm_num_groups": 32, "out_channels": 3, "sample_size": 256, "up_block_types": [ "UpDecoderBlock2D", "UpDecoderBlock2D", "UpDecoderBlock2D", "UpDecoderBlock2D" ]}123version https://git-lfs.github.com/spec/v1oid sha256:1b4889b6b1d4ce7ae320a02dedaeff1780ad77d415ea0d744b476155c6377ddcsize 334707217123version https://git-lfs.github.com/spec/v1oid sha256:44915add42092106e70bffac475aae4283b5e8167a8a0c5f55ccc667ee4ebeb5size 167405651123version https://git-lfs.github.com/spec/v1oid sha256:3e4c08995484ee61270175e9e7a072b66a6e4eeb5f0c266667fe1f45b90daf9asize 167335342123version https://git-lfs.github.com/spec/v1oid sha256:a1d993488569e928462932c8c38a0760b874d166399b14414135bd9c42df5815size 334643276.gitattributesAdded+35
512-depth-ema.ckptAdded+3
512-depth-ema.safetensorsAdded+3
README.mdAdded+189
depth2image.pngAdded

Large File Pointer Details
- SHA256: b19da6052f01a3b115ac3315ef5db1b7dcdb58091879c0dfe3895a7765a491ac
- Pointer size: 132 Bytes
- Size of remote file: 2.13 MB
depth_estimator/config.jsonAdded+460
depth_estimator/model.fp16.safetensorsAdded+3
depth_estimator/model.safetensorsAdded+3
depth_estimator/pytorch_model.binAdded+3
depth_estimator/pytorch_model.fp16.binAdded+3
feature_extractor/preprocessor_config.jsonAdded+24
model_index.jsonAdded+32
scheduler/scheduler_config.jsonAdded+14
text_encoder/config.jsonAdded+25
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+46
unet/diffusion_pytorch_model.binAdded+3
unet/diffusion_pytorch_model.fp16.binAdded+3
unet/diffusion_pytorch_model.fp16.safetensorsAdded+3
unet/diffusion_pytorch_model.safetensorsAdded+3
vae/config.jsonAdded+30
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