alt.freeweights.image / sd-x2-latent-upscaler
From: stabilityai <huggingface.co/stabilityai>Newsgroups: alt.freeweights.imageSubject:

sd-x2-latent-upscaler

Date: 2026-11-15Commit: 416b1f2Signed: 2DC28CC7B26A283B ✓

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

373M params4.64GBsd-x2-latent-upscalersafetensorscustom terms
FactsParams373MSize4.64 GBFormatssafetensorsTasknot taggedLicenseOpenRAIL++-M (custom)From sourcecustom termsread terms
# custom terms: read the license before you download
$ fw get stabilityai/sd-x2-latent-upscaler
# manifest sha256 eb1729647135… · 4.64 GB · 19 files
$ fw verify ./sd-x2-latent-upscaler stabilityai/sd-x2-latent-upscaler
From sourceHosted (signed)stabilityai/sd-x2-latent-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
4.64 GB
Weights
2.32 GB (safetensors)
Parameters
373M
Formats
safetensors
Task
not tagged
License
OpenRAIL++-M (custom) (custom)
Files
19, 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 416b1f2. Shown as plain text with links; images open at the publisher.

Stable Diffusion x2 latent upscaler model card#

This model card focuses on the latent diffusion-based upscaler developed by Katherine Crowson in collaboration with Stability AI. This model was trained on a high-resolution subset of the LAION-2B dataset. It is a diffusion model that operates in the same latent space as the Stable Diffusion model, which is decoded into a full-resolution image. To use it with Stable Diffusion, You can take the generated latent from Stable Diffusion and pass it into the upscaler before decoding with your standard VAE. Or you can take any image, encode it into the latent space, use the upscaler, and decode it.

Note: This upscaling model is designed explicitely for Stable Diffusion as it can upscale Stable Diffusion's latent denoised image embeddings. This allows for very fast text-to-image + upscaling pipelines as all intermeditate states can be kept on GPU. More for information, see example below. This model works on all Stable Diffusion checkpoints

Image by Tanishq Abraham from Stability AI originating from this tweet|

Original output image | 2x upscaled output image :-------------------------:|:-------------------------: Image: image | Image: image

Model Details#

Examples#

Using the 🤗's Diffusers library to run latent upscaler on top of any StableDiffusionUpscalePipeline checkpoint to enhance its output image resolution by a factor of 2.

pip install git+https://github.com/huggingface/diffusers.git
pip install transformers accelerate scipy safetensors
from diffusers import StableDiffusionLatentUpscalePipeline, StableDiffusionPipeline
import torch

pipeline = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", torch_dtype=torch.float16)
pipeline.to("cuda")

upscaler = StableDiffusionLatentUpscalePipeline.from_pretrained("stabilityai/sd-x2-latent-upscaler", torch_dtype=torch.float16)
upscaler.to("cuda")

prompt = "a photo of an astronaut high resolution, unreal engine, ultra realistic"
generator = torch.manual_seed(33)

# we stay in latent space! Let's make sure that Stable Diffusion returns the image
# in latent space
low_res_latents = pipeline(prompt, generator=generator, output_type="latent").images

upscaled_image = upscaler(
    prompt=prompt,
    image=low_res_latents,
    num_inference_steps=20,
    guidance_scale=0,
    generator=generator,
).images[0]

# Let's save the upscaled image under "upscaled_astronaut.png"
upscaled_image.save("astronaut_1024.png")

# as a comparison: Let's also save the low-res image
with torch.no_grad():
    image = pipeline.decode_latents(low_res_latents)
image = pipeline.numpy_to_pil(image)[0]

image.save("astronaut_512.png")

Result:

512-res Astronaut Image: ow_res

1024-res Astronaut Image: upscaled

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.

Files

19 files · 4.64 GBWeights 2.32 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 19 files with their sha256
FileSizesha256
.gitattributes1.53 KBe446eeff4c7b6fa37fdcd287fc72f1172e12c7d354de74ae9ab494e2d6f67005
README.md7.70 KB94f0e71b342aec574d511b498d155e21f1be34768d75b152ebb498fe24397d8f
astronaut_1024.png1.58 MB13eed83062bceaf88c8bde6988b0359104ebfc326350c7b67a97176ff20f59a6
astronaut_512.png429 KB6cfa17d6f29705958de7ab67b39673f03abd68c97de1064ed076b8752375a18c
model_index.json408 B3679e8fce3dc96dec4edadb97e78f4932de2da9fa606f9eb7a1a4962f7321380
scheduler/scheduler_config.json301 Bc2426e7c76a513c227a76fd51fd2e01c29e0ba1ea3fb03e7e6fd3b2aa2772bc3
text_encoder/config.json645 Bdcd34181313a4171b8f7e27cc444bbb0466c8e93a272c9e2ceb5992a6c13faa3
text_encoder/model.safetensors492 MB7b3a12df205cb3c74dd4eae4354d93f606ae6b3bc29d5d06fd97921cb9ad8a81
text_encoder/pytorch_model.bin492 MB98124f3d5663b2f14ff08d4c29db93800622b4fcfa3d952bb6f9112f5d6dadd7
tokenizer/merges.txt525 KB9fd691f7c8039210e0fced15865466c65820d09b63988b0174bfe25de299051a
tokenizer/special_tokens_map.json472 Bc4864a9376a8401918425bed71fc14fc0e81f9b59ec45c1cf96cccb2df508eac
tokenizer/tokenizer_config.json831 Bb563a0588e79659f9f631057a52f4237c2dbb595e76ad9410490bdd21947acbc
tokenizer/vocab.json1.06 MBe089ad92ba36837a0d31433e555c8f45fe601ab5c221d4f607ded32d9f7a4349
unet/config.json1.23 KB70a176bc64d3e7d25db5f4559b19d098b755911b919441df56ae467f2252f86c
unet/diffusion_pytorch_model.bin1.49 GB3b3cb6a12cfb382e72401ffd26a4a4acc700d1b41bea038509b5eb9e6fbfae7d
unet/diffusion_pytorch_model.safetensors1.49 GB373ac96d863d7c2acd2cbeca16b21c980235f2e5d4d9bfbaafa8c0d7f627e28f
vae/config.json653 B5d9dad3343240b2a6c21289a26bebf17f102543a5ed340fcece6a10325b95c52
vae/diffusion_pytorch_model.bin335 MB36bb8e1b54aba3a0914eb35fba13dcb107e9f18d379d1df2158732cd4bf56a94
vae/diffusion_pytorch_model.safetensors335 MBa1d993488569e928462932c8c38a0760b874d166399b14414135bd9c42df5815
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
416b1f2c11 pinned now2026-11-15 00:25 UTC19 files · 4.64 GB

Use it

# custom terms: read the license before you download
$ fw get stabilityai/sd-x2-latent-upscaler
# manifest sha256 eb1729647135… · 4.64 GB · 19 files
$ fw verify ./sd-x2-latent-upscaler stabilityai/sd-x2-latent-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/sd-x2-latent-upscaler.json --dir ./sd-x2-latent-upscaler $ python3 fw.py verify ./sd-x2-latent-upscaler ./stabilityai__sd-x2-latent-upscaler.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download stabilityai/sd-x2-latent-upscaler --revision 416b1f2c11d0abe15a73e2f30c697c408dfdb2a9 --local-dir ./sd-x2-latent-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
94f0e71b342aec574d511b498d155e21f1be34768d75b152ebb498fe24397d8f
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: sd-x2-latent-upscalerDate: 2026-11-15Commit: 416b1f2Signed: 2DC28CC7B26A283B ✓
Upstream
stabilityai/sd-x2-latent-upscaler
Pinned commit
416b1f2c11d0abe15a73e2f30c697c408dfdb2a9
Manifest
sd-x2-latent-upscaler.json · .minisig
Manifest sha256
eb17296471359f502b9b7ac42328378e784ed23fcc6b76154b920fcc72e7ecbe
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/sd-x2-latent-upscaler.json $ curl -O https://freeweights.allternit.com/manifests/stabilityai/sd-x2-latent-upscaler.json.minisig $ minisign -Vm sd-x2-latent-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/sd-x2-latent-upscaler
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. sd-x2-latent-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