Instructions to use Comfy-Org/stable-diffusion-1.5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusion Single File
How to use Comfy-Org/stable-diffusion-1.5 with Diffusion Single File:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Download feature_extractor/preprocessor_config.json from Comfy-Org/stable-diffusion-1.5: direct link, hf CLI and curl.
- Browser
- Download file 468 Bytes
-
https://huggingface.co/Comfy-Org/stable-diffusion-1.5/resolve/refs%2Fpr%2F1/feature_extractor/preprocessor_config.json
- Command line
-
hf download hf://Comfy-Org/stable-diffusion-1.5@refs/pr/1/feature_extractor/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/Comfy-Org/stable-diffusion-1.5/resolve/refs%2Fpr%2F1/feature_extractor/preprocessor_config.json
468 Bytes
| { | |
| "crop_size": { | |
| "height": 224, | |
| "width": 224 | |
| }, | |
| "do_center_crop": true, | |
| "do_convert_rgb": true, | |
| "do_normalize": true, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "image_mean": [ | |
| 0.48145466, | |
| 0.4578275, | |
| 0.40821073 | |
| ], | |
| "image_processor_type": "CLIPFeatureExtractor", | |
| "image_std": [ | |
| 0.26862954, | |
| 0.26130258, | |
| 0.27577711 | |
| ], | |
| "resample": 3, | |
| "rescale_factor": 0.00392156862745098, | |
| "size": { | |
| "shortest_edge": 224 | |
| } | |
| } | |