<a id="sphx-glr-auto-examples-sampling-sg-execution-times"></a>

# Computation times

**00:52.593** total execution time for 9 files **from auto_examples/sampling**:

<style scoped>
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet" />
<link href="https://cdn.datatables.net/1.13.6/css/dataTables.bootstrap5.min.css" rel="stylesheet" />
</style>
<script src="https://code.jquery.com/jquery-3.7.0.js"></script>
<script src="https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.13.6/js/dataTables.bootstrap5.min.js"></script>
<script type="text/javascript" class="init">
$(document).ready( function () {
    $('table.sg-datatable').DataTable({order: [[1, 'desc']]});
} );
</script>

| Example                                                                                                                                                                                                    | Time      |   Mem (MB) |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------|------------|
| [Using state-of-the-art diffusion models from HuggingFace Diffusers with DeepInverse](https://deepinv.org/auto_examples/sampling/demo_diffusers.html.md#sphx-glr-auto-examples-sampling-demo-diffusers-py) (`demo_diffusers.py`) | 00:10.587 |          0 |
| [Flow-Matching for posterior sampling and unconditional generation](https://deepinv.org/auto_examples/sampling/demo_flow_matching.html.md#sphx-glr-auto-examples-sampling-demo-flow-matching-py) (`demo_flow_matching.py`)           | 00:09.998 |          0 |
| [Building your diffusion posterior sampling method using SDEs](https://deepinv.org/auto_examples/sampling/demo_diffusion_sde.html.md#sphx-glr-auto-examples-sampling-demo-diffusion-sde-py) (`demo_diffusion_sde.py`)                | 00:08.499 |          0 |
| [Noisy data-fidelity terms for diffusion posterior sampling](https://deepinv.org/auto_examples/sampling/demo_noisy_data_fidelity.html.md#sphx-glr-auto-examples-sampling-demo-noisy-data-fidelity-py) (`demo_noisy_data_fidelity.py`)      | 00:07.174 |          0 |
| [Implementing DiffPIR](https://deepinv.org/auto_examples/sampling/demo_diffpir.html.md#sphx-glr-auto-examples-sampling-demo-diffpir-py) (`demo_diffpir.py`)                                                                    | 00:06.893 |          0 |
| [Uncertainty quantification with PnP-ULA.](https://deepinv.org/auto_examples/sampling/demo_sampling.html.md#sphx-glr-auto-examples-sampling-demo-sampling-py) (`demo_sampling.py`)                                              | 00:03.571 |          0 |
| [Image reconstruction with a diffusion model](https://deepinv.org/auto_examples/sampling/demo_ddrm.html.md#sphx-glr-auto-examples-sampling-demo-ddrm-py) (`demo_ddrm.py`)                                                   | 00:03.442 |          0 |
| [DPS – Posterior Sampling with Diffusion Models](https://deepinv.org/auto_examples/sampling/demo_dps.html.md#sphx-glr-auto-examples-sampling-demo-dps-py) (`demo_dps.py`)                                                  | 00:02.101 |          0 |
| [Building your custom MCMC sampling algorithm.](https://deepinv.org/auto_examples/sampling/demo_custom_kernel.html.md#sphx-glr-auto-examples-sampling-demo-custom-kernel-py) (`demo_custom_kernel.py`)                               | 00:00.328 |          0 |
