> ## Documentation Index
> Fetch the complete documentation index at: https://docs.splat-3d.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Training Parameters

> Fine-tune the 3D reconstruction pipeline with per-field parameter control.

# Training Parameters

Beyond presets, you can control individual parameters of the reconstruction pipeline. Parameters are split into two tiers: **stable** (won't change between API versions) and **advanced** (may evolve).

## Per-tier parameter envelopes

Each preset runs on a different class of GPU, and several cost-bearing knobs are bounded by what that GPU can physically run. These are **not artificial product caps** — the ceiling on each tier is the physics of your tier's GPU. A fast-tier L4 can't train on full-resolution frames; an ultra-tier H100 can. Override a knob beyond its tier's envelope and the request is **rejected** with a `422`, never silently clamped — the error names the cheapest tier that unlocks the value so you can decide whether to bump up. Training steps and max splats are the exception: every preset takes their whole range.

| Parameter | `fast` | `standard` | `quality` | `ultra` |
| - | - | - | - | - |
| `training.iterations` | 1,000–50,000 (def 30,000) | 1,000–50,000 (def 30,000) | 1,000–50,000 (def 30,000) | 1,000–50,000 (def 30,000) |
| `training.cap_max` | 100,000–8,000,000 (def 2,000,000) | 100,000–8,000,000 (def 2,000,000) | 100,000–8,000,000 (def 2,000,000) | 100,000–8,000,000 (def 2,000,000) |
| `sfm.max_image_size` | 256–1,024 (def 800) | 512–1,920 (def 1,600) | 512–2,400 (def 1,600) | 512–4,096 or `0`=full (def `0`) |
| `training.sh_degree` | 0–3 | 0–3 | 0–4 | 0–4 |
| `training.strategy` | `default` only | `default` / `mcmc` | `default` / `mcmc` | `default` / `mcmc` |
| `sfm.matcher` | `sequential` only | `sequential` / `exhaustive` | `sequential` / `exhaustive` | `sequential` / `exhaustive` |
| `output.compute_metrics` | `false` only (metrics follow `output.holdout_ratio`) | ✓ | ✓ | ✓ |
| `enable_lod` | unavailable | unavailable | ✓ | ✓ |
| Cluster cleanup | ✓ | ✓ | ✓ | ✓ |

A rejected request returns the violation(s) under `error.details`:

```json theme={null}
{
  "error": {
    "code": "invalid_input",
    "message": "Parameter(s) out of range for the standard tier: sh_degree=4 requires the quality tier or higher.",
    "details": [
      {
        "field": "sh_degree",
        "value": 4,
        "allowed": { "min": 0, "max": 3 },
        "tier": "standard",
        "hint": "sh_degree=4 requires the quality tier or higher."
      }
    ]
  }
}
```

> [!NOTE]
>
> These envelopes apply to the `custom` preset too — a `custom` request is
> checked against the `standard` envelope unless you set its `preset` to a
> higher tier. Cluster-cleanup toggles (`output.cluster_*`) carry no per-tier
> limit; they're available on every tier. A value outside a knob's overall
> range, such as 50,001 steps, is a `400 invalid_input` naming the field, not
> a `422`.

## Stable parameters

These are the parameters you'll use most often. They're part of the v1 API contract.

### `preset`

| Type | Default | Options |
| - | - | - |
| `string` | `"standard"` | `fast`, `standard`, `quality`, `ultra`, `custom` |

The base preset to use. See [Quality Presets](https://docs.splat-3d.com/guides/presets.md) for details.

### `sfm.backend`

| Type | Default | Options |
| - | - | - |
| `string` | `"colmap_sift_glomap"` | `colmap_sift_glomap` |

The structure-from-motion engine used to estimate camera poses from your images. See [SfM Backends](https://docs.splat-3d.com/guides/sfm-backends.md) for a detailed comparison.

> [!WARNING]
>
> `sfm.backend` currently only takes effect when `sfm.options` is also
> provided (`SfmRequest.from_api_payload` in `sfm_backends/configs.py`). Sent
> on its own, the value is accepted but the pipeline runs the default engine.
> The pipeline also registers `none_arkit`, which copies a finished pose model
> instead of solving one. No API input writes that model, so its SfM step
> fails, and the scene with it (refunded; `NoneArkitBackend.run`). To send
> ARKit poses, see [SfM Backends](https://docs.splat-3d.com/guides/sfm-backends.md#path-a-arkit-poses-via-api-recommended-for-ios).

> [!NOTE]
>
> For backward compatibility the API also accepts the legacy short-names
> `glomap`, `colmap`, and `none` — they resolve to `colmap_sift_glomap`,
> `colmap_sift_glomap`, and `none_arkit` respectively. Prefer the canonical
> names in new code; `colmap` will warn and may be removed in a future
> release.

### `sfm.matcher`

| Type | Default | Options |
| - | - | - |
| `string` | By input type | `exhaustive`, `sequential` |

How image pairs are matched during SfM. `exhaustive` compares every pair (best for photo sets and small/medium scenes), `sequential` assumes ordered frames (fastest for video). The pipeline picks one from your input: photos get `exhaustive`, and so does video of up to 200 frames (one frame is kept per 0.67 s, so about 2 minutes 15 seconds; video with ARKit poses keeps at most 150 frames, so it always does). Longer video gets `sequential`.

> [!WARNING]
>
> SfM does not read this top-level field: it is checked against your tier
> (the `fast` tier allows only `sequential`), then ignored. On `standard`
> and above, choose the matcher with `sfm.options.matcher` (see
> [`sfm.options`](#sfm-options)).

### `sfm.max_image_size`

| Type | Default | Range |
| - | - | - |
| `integer` | Varies by preset | `0` (full-res) or `256`-`4096` |

Maximum image dimension in pixels for training. Images larger than this are downscaled before training. Set to `0` for no downscaling. SfM extracts features at `sfm.options.max_image_size` instead (default `1600`), whatever this field says.

The range above is the global bound; your tier narrows it further (see [Per-tier parameter envelopes](#per-tier-parameter-envelopes)) — in practice only the `fast` tier reaches down to `256`, and only `ultra` accepts the `0` full-resolution sentinel.

### `sfm.options`

| Type | Default |
| - | - |
| `object` | `{}` |

Options for the SfM engine, forwarded to the Python pipeline and validated there. This is where SfM settings take effect: the keys are listed under [`colmap_sift_glomap`](https://docs.splat-3d.com/guides/sfm-backends#colmap_sift_glomap-default) in SfM Backends. Sending `sfm.options` (even `{}`) also makes the pipeline read `sfm.backend`.

Unknown keys are rejected by the backend's Pydantic model with a clear error message (`ColmapSiftGlomapOptions` in `sfm_backends/configs.py`).

### `enable_lod`

| Type | Default |
| - | - |
| `boolean` | `false` |

Whether to produce Level-of-Detail chunks alongside the main output. LOD chunks let the web viewer stream large scenes progressively (faster first paint, smoother camera motion) but increase processing time and storage. Send it in the `POST /v1/scenes/{id}/process` body. Scene creation checks it against your tier but does not keep it (`createScene` in `api/src/lib/scenes.ts`).

### `training.iterations`

| Type | Default | Range |
| - | - | - |
| `integer` | Varies by preset | `1,000`-`50,000` |

Training steps. More steps refine detail and take longer: GPU time grows about linearly with them, and quality gains flatten past the default. Every preset takes the whole range and starts from `30,000`, and the price stays the preset's.

### `training.cap_max`

| Type | Default | Range |
| - | - | - |
| `integer` | `2,000,000` | `100,000`-`8,000,000` |

The most splats a scene keeps. More can hold finer detail and makes bigger files. Every preset takes the whole range and starts from `2,000,000`, and the price stays the preset's. The ceiling is the most splats our [SPZ](https://docs.splat-3d.com/guides/output-formats.md#spz) conversion packs.

### `output.formats`

| Type | Default |
| - | - |
| `string[]` | Varies by preset |

**Accepted, no effect.** Values (`"sog"`, `"ply"`) are validated, but the pipeline doesn't read them: every scene gets SOG and PLY, and SPZ on a best-effort basis (`_upload_to_r2` in `pipeline/storage/upload.py`). See [Output Formats](https://docs.splat-3d.com/guides/output-formats.md).

### `output.compute_metrics`

| Type | Default |
| - | - |
| `boolean` | Varies by preset |

Checked against your tier (`fast` can't set it to `true`), but the pipeline doesn't read it: holdout metrics (`psnr_holdout`, `ssim_holdout`) are computed whenever [`output.holdout_ratio`](#output-holdout_ratio) is above 0.

## Advanced parameters

> [!WARNING]
>
> Advanced parameters are experimental and may change between API versions. Use them when you know what you're doing.

### `training.sh_degree`

| Type | Default | Range |
| - | - | - |
| `integer` | `3` | `0`-`4` |

Spherical harmonics degree for view-dependent color. Higher values capture more view-dependent effects (like reflections) but increase model size. `3` is the standard for most scenes. `sh_degree: 4` is gated to the `quality` and `ultra` tiers — see [Per-tier parameter envelopes](#per-tier-parameter-envelopes).

### Accepted, no effect

These four are validated against the ranges below, then ignored: `_stage_train` (`pipeline/training/impl.py`) doesn't pass them on, and `train_and_export` (`train_gsplat.py`) uses fixed values. Sending them changes neither the result nor the price.

| Parameter | Type | Default | Range | Was meant to |
| - | - | - | - | - |
| `training.densify_grad_thresh` | `float` | `0.0002` | `0.00001`-`0.01` | Set the gradient above which Gaussians split or clone |
| `training.densify_interval` | `integer` | `100` | `50`-`1000` | Set how often, in iterations, densification runs |
| `training.opacity_reset_interval` | `integer` | `3000` | `500`-`10,000` | Set how often, in iterations, opacities reset |
| `training.resolution_scale` | `float` | `1.0` | `0.25`-`2.0` | Scale the training resolution after `sfm.max_image_size` |

### `training.ssim_weight`

| Type | Default | Range |
| - | - | - |
| `float` | `0.2` | `0.0`-`1.0` |

Weight of the SSIM loss term relative to L1 loss. The total loss is `(1 - ssim_weight) * L1 + ssim_weight * SSIM`. Higher values prioritize structural similarity.

### `training.strategy`

| Type | Default | Values |
| - | - | - |
| `string` | `"default"` | `"default"`, `"mcmc"` |

Densification strategy that controls how Gaussians are added, removed, and refined during training.

* **`"default"`** (production path) — gradient-driven split/clone/prune via gsplat's `DefaultStrategy` with AbsGrad. Gaussian count grows naturally based on per-splat gradient magnitudes.
* **`"mcmc"`** — Markov Chain Monte Carlo / SGLD-style densification ([Kheradmand et al. NeurIPS 2024](https://arxiv.org/abs/2404.09591)). Steers the gaussian count toward a hard cap via opacity/scale L1 regularization and Langevin noise injection. Tends to produce more gaussians (3× typical) and stronger photometric detail, at the cost of larger output files.

> [!NOTE]
>
> MCMC is required if you enable `training.post_processing = "ppisp"` (see
> below).

### `training.post_processing`

| Type | Default | Values |
| - | - | - |
| `string` | omit (off) | `"ppisp"` |

Optional photometric correction module that fits per-camera/per-frame ISP parameters (exposure, white balance, vignette, color) during training, using NVIDIA's [Physically-Plausible ISP](https://github.com/nv-tlabs/ppisp).

> [!WARNING]
>
> We don't recommend PPISP for now. Its correction belongs to each training
> camera and isn't part of the exported model, so the viewer and every
> download show the scene without it: in our tests the model scored 4 to 5 dB
> PSNR below the `psnr_holdout` the scene reports, which is measured with the
> correction applied. Leave it off unless you apply the correction yourself.

```json theme={null}
{
  "training": {
    "strategy": "mcmc",
    "post_processing": "ppisp"
  }
}
```

> [!NOTE]
>
> PPISP requires `training.strategy: "mcmc"` — combining with the default
> strategy will be rejected with a `ValueError` from the trainer. Enabling
> PPISP also implies the larger file sizes and slower viewer-side render
> of MCMC.

### `output.holdout_ratio`

| Type | Default | Range |
| - | - | - |
| `float` | `0.1` (`0` on `fast`) | `0.0`-`0.5` |

Fraction of images held out for metric evaluation. Above `0`, the held-out images give `psnr_holdout` and `ssim_holdout`, whatever `compute_metrics` says. Set to `0` to use all images for training (no metrics).

## Common recipes

### Quick preview for testing

```json theme={null}
{
  "preset": "fast"
}
```

### High quality with metrics

```json theme={null}
{
  "preset": "quality",
  "output": {
    "holdout_ratio": 0.15
  }
}
```

### Maximum detail, slower training

`sh_degree: 4` needs the `quality` or `ultra` preset, and full-resolution frames need `ultra`. Steps and max splats take their whole range on any preset. Start from the `ultra` preset rather than `custom` so the request stays inside the [per-tier envelope](#per-tier-parameter-envelopes):

```json theme={null}
{
  "preset": "ultra",
  "training": {
    "iterations": 50000,
    "cap_max": 8000000,
    "sh_degree": 4
  }
}
```

### Match every pair of video frames

Video over 200 frames is matched sequentially by default. To compare every pair of frames instead (slower; `standard` and above), set the matcher in `sfm.options`:

```json theme={null}
{
  "preset": "standard",
  "sfm": {
    "options": {
      "matcher": "exhaustive"
    }
  }
}
```

> [!WARNING]
>
> Matching stops after 10 minutes, and the scene fails (refunded). At the
> slowest matching speed we measured, exhaustive matching on video reaches
> that limit at about 385 frames, about 4 minutes 20 seconds of video.

> [!TIP]
>
> Start with a preset and only override specific parameters once you understand how they affect your particular scenes. The defaults work well for the vast majority of captures.

> [!NOTE]
>
> Hitting the limits of what the parameters here can do — e.g. you need
> more iterations, higher resolution, or a tunable not exposed yet?
> Email [hello@splat-3d.com](mailto:hello@splat-3d.com) and tell us about your
> use case.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.