<!-- # hard line break macro for HTML -->

<a id="running-inference-heatmaps"></a>

# Inference for Heatmaps

Dense per-pixel predictions such as depth maps are stored as a [`Heatmap`](../../api/fiftyone.core.labels.md#fiftyone.core.labels.Heatmap)
field, which you populate by passing a model to
[`apply_model()`](../../api/fiftyone.core.collections.md#fiftyone.core.collections.SampleCollection.apply_model)
or by constructing [`Heatmap`](../../api/fiftyone.core.labels.md#fiftyone.core.labels.Heatmap) instances yourself.

The [Depth Estimation Guide](../../getting_started/depth_estimation/index.md#depth-estimation-guide) covers both paths
end to end: loading a depth model from the zoo, and running inference with a
custom Hugging Face model that isn’t zoo-compatible out of the box.

<div style="margin:0; display:inline-block;">
    <a href="../../getting_started/depth_estimation/index.html" class="sd-btn sd-btn-primary book-a-demo" rel="noopener noreferrer" data-cta-dynamic="true">
        <div class="arrow">
            <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="size-3">
            <path stroke="currentColor" stroke-width="1.5"
                    d="M1.458 11.995h20.125M11.52 22.063 21.584 12 11.521 1.937"
                    vector-effect="non-scaling-stroke"></path>
            </svg>  
        </div>
        <div class="text">Work through the Depth Estimation Guide</div>
    </a>
</div>
