alt.freeweights.image / stable-diffusion-x4-upscaler
From: stabilityai <huggingface.co/stabilityai>Newsgroups: alt.freeweights.imageSubject:

stable-diffusion-x4-upscaler

Date: 2026-11-15Commit: 572c992Signed: 2DC28CC7B26A283B ✓

Model with 473M parameters. Safetensors weights, 17.5 GB in all. Published by stabilityai under OpenRAIL++-M (custom).

473M params17.5GBstable-diffusion-x4-upscalersafetensorscustom terms
FactsParams473MSize17.5 GBFormatssafetensorsTasknot taggedLicenseOpenRAIL++-M (custom)From sourcecustom termsread terms
# custom terms: read the license before you download
$ fw get stabilityai/stable-diffusion-x4-upscaler
# manifest sha256 e48a3d726d77… · 17.5 GB · 27 files
$ fw verify ./stable-diffusion-x4-upscaler stabilityai/stable-diffusion-x4-upscaler
From sourceHosted (signed)stabilityai/stable-diffusion-x4-upscalerLast check: 2026-11-15 00:25 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Runs with

Ranked by fit to this model (safetensors), then by GitHub stars.

Overview

Size
17.5 GB
Weights
8.75 GB (safetensors)
Parameters
473M
Formats
safetensors
Task
not tagged
License
OpenRAIL++-M (custom) (custom)
Files
27, each with a sha256
Publisher
stabilityai
Added
2026-11-15
Section
alt.freeweights.image
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 00:25 UTCpassed

Model card

From the publisher at commit 572c992. Shown as plain text with links; images open at the publisher.

Stable Diffusion x4 upscaler model card#

This model card focuses on the model associated with the Stable Diffusion Upscaler, available here. This model is 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. 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.

Image: Image

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
  • 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 that uses a fixed, pretrained text encoder (OpenCLIP-ViT/H).
  • Resources for more information: GitHub Repository.
  • 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 to run Stable Diffusion 2 in a simple and efficient manner.

pip install diffusers transformers accelerate scipy safetensors
import requests
from PIL import Image
from io import BytesIO
from diffusers import StableDiffusionUpscalePipeline
import torch

# load model and scheduler
model_id = "stabilityai/stable-diffusion-x4-upscaler"
pipeline = StableDiffusionUpscalePipeline.from_pretrained(model_id, torch_dtype=torch.float16)
pipeline = pipeline.to("cuda")

# let's download an  image
url = "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/sd2-upscale/low_res_cat.png"
response = requests.get(url)
low_res_img = Image.open(BytesIO(response.content)).convert("RGB")
low_res_img = low_res_img.resize((128, 128))

prompt = "a white cat"

upscaled_image = pipeline(prompt=prompt, image=low_res_img).images[0]
upscaled_image.save("upsampled_cat.png")

Notes:

  • Despite not being a dependency, we highly recommend you to install 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, 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 Use#

The 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 Use#

Using 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, which contains adult, violent and sexual content. To partially mitigate this, we have filtered the dataset using LAION's NFSW detector (see Training section).
Bias#

While 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), 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 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 filtered for explicit pornographic material, using the LAION-NSFW classifier with punsafe=0.1 and an aesthetic score >= 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 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 (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 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.

  • 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.

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.

  • 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:

Image: pareto

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 presented in Lacoste et al. (2019). 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 and DALL-E Mini model card.

Files

27 files · 17.5 GBWeights 8.75 GB (safetensors). Sizes and sha256 from the signed manifest.
Show all 27 files with their sha256
FileSizesha256
.gitattributes1.48 KBdb7c0371f46f0840b8f25794c1e3321c9b5820a8cb6ba9694a46fc64b8fae5a6
README.md12.6 KBaf9d3577f11b3d4c5bc0f6c91955a2708fc927d5bdcbd6ce03c90c54b1cae864
low_res_scheduler/scheduler_config.json300 Bbc1a4d5efd4918695624c244d31fd23baaed22b33167569afb6ee48d4de4d04b
model_index.json485 B5d2fd5b153217e11aac41b8bd5fc7535704aa72df49a9ec8b7f7f4407af4eb7d
scheduler/scheduler_config.json348 Bb3e025542de9493f03ec678ba000b27452b004f8ffd03b4ee9b66701fbdcc6eb
text_encoder/config.json634 B3b82ad96dceff725d7aa3aaefb4c8ad6224d5fa157b183d957e743a7cfafd827
text_encoder/model.fp16.safetensors681 MB681c555376658c81dc273f2d737a2aeb23ddb6d1d8e5b3a7064636d359a22668
text_encoder/model.safetensors1.36 GBcce6febb0b6d876ee5eb24af35e27e764eb4f9b1d0b7c026c8c3333d4cfc916c
text_encoder/pytorch_model.bin1.36 GB2188379b05015f531d61503e714234d00a64939792f3098b324e516547f0194f
text_encoder/pytorch_model.fp16.bin681 MB7bb11b1da63986aaaaefb5ef2100d34109c024ac640cacd9ed697150c1c57f01
tokenizer/merges.txt525 KB9fd691f7c8039210e0fced15865466c65820d09b63988b0174bfe25de299051a
tokenizer/special_tokens_map.json460 Bf118ab3a983206e4f32583448de6bd6aae4ee21869135cef1f5848a753cdaab6
tokenizer/tokenizer_config.json825 Bdad85d01d223de23056e37c3408e688e5c90975824cf382aed3b3747a62ac5c1
tokenizer/vocab.json1.06 MBe089ad92ba36837a0d31433e555c8f45fe601ab5c221d4f607ded32d9f7a4349
unet/.ipynb_checkpoints/config-checkpoint.json977 B2f59554795e0bc06b1700eae4beb7c503e55aeecac5d9324b7431784d94bd0e5
unet/config.json982 B6dbae66415e665c225149bad4c9ae82ea0341b5d6dd1c2400920966b4b440261
unet/diffusion_pytorch_model.bin1.89 GB7bee7a4acd3ccb2ee9c470d7e9105dffd48d449da4d3d4a5056f7d9e51f4fc5e
unet/diffusion_pytorch_model.fp16.bin947 MB36f27094ab4f113a2021540b85ce05f9ccf3f54f21a04f8be9a2497804a577f7
unet/diffusion_pytorch_model.fp16.safetensors947 MB473c61882010d657c0c3aa27f62ee85d4b8cd3b40a4877b19a05d05bb4df20bb
unet/diffusion_pytorch_model.safetensors1.89 GBb6dc05aaae1ba43c230612932492a81e431126582481fd6c7d94c6b15f9ce584
vae/config.json587 Bb6a3870680951fb7b04ba6e5ad7974d7f3e7d01fe5fa66a2f70444cd32277a55
vae/diffusion_pytorch_model.bin221 MB9701b233be392017374527288e155239afa0450365fea2a6a779faa33afc8c37
vae/diffusion_pytorch_model.fp16.bin111 MBfac10c7b4287c0bffe5707905b28641f2093ce07f4a7a2cf7c037b485bf46ea3
vae/diffusion_pytorch_model.fp16.safetensors111 MB68e6ec66e1d85ad6f5d017b1489626b36677522cdb568191ef9d5a2ee1df308d
vae/diffusion_pytorch_model.safetensors221 MB33478c297ec29218100f8ee86007b3ab4c2701896d5ca5c9e3a84fc29f678183
x4-upscaler-ema.ckpt3.53 GB57c63b7ed94406ba07e93f38e82622ff61952bb3fc0dec684a4058fa880cddd0
x4-upscaler-ema.safetensors3.53 GB35c01d6160bdfe6644b0aee52ac2667da2f40a33a5d1ef12bbd011d059057bc6
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
572c992865 pinned now2026-11-15 00:25 UTC27 files · 17.5 GB

Use it

# custom terms: read the license before you download
$ fw get stabilityai/stable-diffusion-x4-upscaler
# manifest sha256 e48a3d726d77… · 17.5 GB · 27 files
$ fw verify ./stable-diffusion-x4-upscaler stabilityai/stable-diffusion-x4-upscaler
Terms that come with these files. OpenRAIL++-M: the use restrictions in Attachment A pass on to you and to anyone you share the model with. Keep a copy of the license with the files.
Custom license (custom). Read the license text first. Open this panel to show the commands once you accept its terms.
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/stabilityai/stable-diffusion-x4-upscaler.json --dir ./stable-diffusion-x4-upscaler $ python3 fw.py verify ./stable-diffusion-x4-upscaler ./stabilityai__stable-diffusion-x4-upscaler.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download stabilityai/stable-diffusion-x4-upscaler --revision 572c99286543a273bfd17fac263db5a77be12c4c --local-dir ./stable-diffusion-x4-upscaler
Packaged for ComfyUI. Most image, video and music models run in ComfyUI . Check the publisher's page for the workflow. Freeweights does not host it.

License

Name
CreativeML Open RAIL++-M
Id
LicenseRef-OpenRAIL++-M
Class
Custom terms
Redistribution
click-through
Listing
Hosted (signed)
Terms
OpenRAIL++-M: the use restrictions in Attachment A pass on to you and to anyone you share the model with. Keep a copy of the license with the files.
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
af9d3577f11b3d4c5bc0f6c91955a2708fc927d5bdcbd6ce03c90c54b1cae864
Terms gate
Yes. The commands stay folded until you open them after reading the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: stabilityai <huggingface.co/stabilityai>Newsgroups: alt.freeweights.imageSubject: stable-diffusion-x4-upscalerDate: 2026-11-15Commit: 572c992Signed: 2DC28CC7B26A283B ✓
Upstream
stabilityai/stable-diffusion-x4-upscaler
Pinned commit
572c99286543a273bfd17fac263db5a77be12c4c
Manifest
stable-diffusion-x4-upscaler.json · .minisig
Manifest sha256
e48a3d726d77739edb38e3ef82b3f42525a78d128b023d045ac78fa801c559b0
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 00:25 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/stabilityai/stable-diffusion-x4-upscaler.json $ curl -O https://freeweights.allternit.com/manifests/stabilityai/stable-diffusion-x4-upscaler.json.minisig $ minisign -Vm stable-diffusion-x4-upscaler.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Read license, then download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download stabilityai/stable-diffusion-x4-upscaler
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. stable-diffusion-x4-upscaler.json. Provenance. Takedown history: none.
From: Comfy-Org <huggingface.co/Comfy-Org>Subject: Boogu-Image
From: Comfy-Org <huggingface.co/Comfy-Org>Subject: Chroma1-HD
From: lodestones <huggingface.co/lodestones>Subject: Chroma1-HD
From: Comfy-Org <huggingface.co/Comfy-Org>Subject: Chroma1-Radiance
From: Comfy-Org <huggingface.co/Comfy-Org>Subject: ERNIE-Image
From: baidu <huggingface.co/baidu>Subject: ERNIE-Image