Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Interpreting super-resolved output and its uncertainty

You produced a single super-resolved patch on the previous page. This page asks how confident the model actually was about the detail it generated, and, just as importantly, what that confidence measure does and does not prove.


1. Motivation

A super-resolved image looks equally sharp and finished everywhere, whether the model was genuinely confident about a given region or essentially guessing. Uncertainty estimation is what surfaces that hidden difference, and reading it correctly is one of the most important responsible-use skills in this entire lesson.


2. Core idea

Because the reverse diffusion process involves stochastic sampling, running the model multiple times on the same input with different random seeds produces slightly different outputs. The uncertainty map is the standard deviation across those repeated runs, computed per pixel: pixels where repeated runs agree closely indicate higher model confidence, and pixels where they disagree substantially indicate the model is less certain about the fine-scale structure it generated there.


3. Computing and reading uncertainty

A. Compute uncertainty

compute_uncertainty=True enables the repeated-sampling process; n_variations=5 sets how many stochastic forward passes to run. More variations produce a smoother, more reliable uncertainty estimate, at a processing-time cost that scales roughly proportionally with n_variations.

B. Visualize the uncertainty map

The visualization uses a color scale where green indicates low uncertainty (high confidence) and red or yellow indicates high uncertainty (low confidence), letting you see at a glance where the model’s repeated guesses agreed and where they diverged.

C. Reading uncertainty areas

High uncertainty tends to concentrate along sharp boundaries (building edges, road margins), in areas with complex fine-scale texture (dense vegetation canopies), and wherever the low-resolution input itself is ambiguous about what lies beneath. Homogeneous regions, open water, bare soil, uniform fields, typically show low uncertainty, simply because there is less fine-scale structure for the model to have to invent in the first place.

D. What uncertainty does not tell you


4. Python reactivation

n_variations=5 is simply an integer controlling how many times the function repeats its internal sampling loop; the underlying pattern, running the same computation multiple times and summarizing the results (here, with a standard deviation) is the same idea behind repeated experiments or bootstrapped estimates you may have seen in a statistics course.


5. Common pitfalls


6. Mini task

You compute an uncertainty map for a patch containing a dense residential neighborhood and a large, uniform lake. Predict, before looking, which region will likely show higher uncertainty, and explain why using the ideas from this page.

Sample solution

The residential neighborhood is likely to show higher uncertainty. It contains sharp boundaries (building edges, property lines) and fine-scale texture that the model must infer from a coarse input, exactly the conditions associated with high uncertainty described above. The uniform lake is homogeneous, with little fine-scale structure to reconstruct, so repeated stochastic passes are likely to agree closely there, producing low uncertainty.


7. Key takeaways