Skip to main content

euler

euler-eval

Score depth, RGB, ray and 3D point-map predictions against the same ground truth — from one JSON config.

PyPI Python versions License: MIT CI


Comparing predictions to ground truth is rarely one line of code. The files have to be paired, the ground truth may be radial where the prediction is planar, the model may only be correct up to scale, and every modality wants a different metric set.

euler-eval takes a JSON config naming the ground truth and one or more prediction datasets, and writes an eval.json per modality: files paired by ID, decoded from dataset metadata rather than convention, aligned when the prediction is not metric, and scored with the metric set that modality deserves.

flowchart LR
    C["ds-crawler<br/><i>indexes files</i>"] --> H["dataset-head.json<br/><i>euler-dataset-contract</i>"]
    H --> L["euler-loading<br/><i>pairs GT + prediction by ID</i>"]
    L --> E["euler-eval<br/><b>scores the pair</b>"]
    E --> J["eval.json<br/><i>per modality, per dataset</i>"]
    E -.->|optional| T["euler-train<br/><i>experiment logging</i>"]

It is the consuming end of that pipeline and does none of the earlier steps itself: a path in the config is a euler-loading path, and how to decode it — loader, units, radial or planar depth, point-cloud column layout — is read from the dataset's own index. Metric keys are built with euler-metric-naming, so every result is self-describing to downstream tools.

Install

pip install euler-eval                  # core
pip install "euler-eval[fid]"           # + clean-fid RGB FID backend
pip install "euler-eval[logging]"       # + euler-train experiment logging

Python 3.9 or newer. CUDA is used automatically when available, and every metric also runs on CPU.

Quick start

Describe the ground truth and what to score against it:

{
  "gt": {
    "rgb":   { "path": "/data/gt/rgb" },
    "depth": { "path": "/data/gt/depth" }
  },
  "datasets": [
    {
      "name": "model_a",
      "rgb":   { "path": "/data/model_a/rgb" },
      "depth": { "path": "/data/model_a/depth" }
    }
  ]
}
euler-eval config.json --batch-size 32

Ground truth and prediction files are matched by ID rather than by directory order, so an incomplete prediction set scores the frames it does have instead of silently comparing the wrong pairs. Results are written into each prediction dataset, under .eval/ beside its .ds_crawler/ metadata — e.g. /data/model_a/depth/.eval/eval.json, or .eval/<scope>/eval.json for a scoped dataset (details):

{
  "depth": {
    "eval": {
      "metric": {
        "standard": {
          "image_mean": { "absrel": 0.081, "rmse": 3.42, "delta1": 0.93 }
        }
      }
    }
  }
}

Every path accepts euler-loading's inline selectors, so splits and archives need no extra plumbing — "/data/muses.zip:test#scope=rgb" reads the test split straight out of the archive. Full schema: Configuration.

What it evaluates

Modality Config key Scored against Headline metrics
Depth depth, relative_depth, affine_depth dense GT depth absrel…delta3, PSNR/SSIM/LPIPS/FID/KID, surface-normal consistency, depth-edge F1
Sparse depth depth + gt.sparse_depth a LiDAR-style point cloud, projected into the prediction plane pointwise depth metrics at projected points
RGB rgb GT RGB PSNR, SSIM, LPIPS, FID, SCE, edge F1, tail errors, HF energy ratio, depth-binned photometric error; optional NIQE/FADE dehazing metrics
Rays rays GT ray direction map ρ_A (angular-accuracy AUC), angular error, threshold percentages
Points-3D points_3d GT point map, GT depth unprojected on the fly, or a sparse point cloud 3D EPE/RMSE/δ, radial-vs-lateral decomposition, true-3D normals and edge F1, Chamfer / F-score

A run evaluates whichever modalities are configured on both sides; a depth-only prediction is a perfectly ordinary run. The full inventory, with the key each metric is written under, is in Metrics.

What you get

ID-based pairing GT and prediction frames are matched by file ID and hierarchy, not by filename luck. Calibration and pose files are matched by tree position and shared.
Metadata-driven decoding Radial vs planar depth, value ranges, point-cloud column layout and loader choice all come from the dataset index — no per-dataset flags.
Honest spaces Relative models are scored native and metric (after scale/shift or a similarity gauge), so a scale failure never reads as a geometry failure.
Benchmark depth bins --benchmark-depth-range MIN MAX adds near/mid/far bins in square-root depth space, additive to the regular metrics.
Sky masking --mask-sky drops sky pixels using GT segmentation — from the metrics and from the alignment fit. --mask-sky-prediction does the same with each prediction's own sky_mask.
Sky IoU --sky-iou scores predicted sky — a sky_mask, or depth reaching a fixed cap — against GT segmentation, without changing any depth metric.
Per-file + aggregate Dataset-level numbers plus per-image metrics in dataset-hierarchy order, in the same file.
Sanity checks Results are validated against configurable thresholds; implausible ranges, degenerate inputs and scale mismatches are reported instead of quietly scored.
Structured metric names Each result carries a metricSet envelope declaring its namespace, axes, units and metric directions.
Composable domains --domain dehazing supplements the stable core set with prediction-only NIQE and FADE; the registry is ready for additional domains.
euler-train logging Optional: register each evaluation in an experiment run with full package provenance.

In-training validation

The same depth-metric semantics are available for in-memory predictions, so a training loop's validation numbers match what the CLI reports later — against dense or sparse ground truth, without writing predictions to disk:

from euler_eval import DepthValidationAggregator, evaluate_sparse_depth_sample

aggregator = DepthValidationAggregator()
for sample in val_dataset:
    result = evaluate_sparse_depth_sample(
        model(sample["rgb"]),        # (H, W) metres
        sample["sparse_depth"],      # (N, C>=3) lidar points
        intrinsics,
        lidar_to_camera,
        alignment="none",            # "affine" for relative depth
    )
    aggregator.update(result)

aggregator.summary()["standard"]["image_mean"]["absrel"]

Multi-process runs reduce sufficient statistics rather than averages — see In-training validation.

Documentation

Guide Covers
Configuration The config file, gt and datasets, paths and selectors, sparse-depth and points-3d ground truth, euler-train logging
CLI reference Every flag, worked examples, device selection, offline cache warmup
Spaces & alignment native vs metric, depth affine fitting, points-3d gauge alignment, benchmark depth bins
Metrics The full metric inventory per modality
Results & output Anatomy of eval.json, per-file metrics, the sanity-check report
In-training validation The programmatic API for scoring in-memory predictions

Start with the concepts page for how the pieces fit together.

Development

git clone https://github.com/d-rothen/euler-eval.git
cd euler-eval
uv sync --extra dev     # or: pip install -e ".[dev]"
uv run pytest

See CONTRIBUTING.md for the test layout and release process.

License

MIT © Daniel Rothenpieler

Metadata

Release files for euler-eval 2.33.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for euler-eval 2.33.0
File Size Uploaded Provenance Actions
euler_eval-2.33.0.tar.gz 302.9 kB Without provenance Details for euler_eval-2.33.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for euler-eval 2.33.0
File Interpreter ABI Platform Actions
euler_eval-2.33.0-py3-none-any.whl Python 3 none any Details for euler_eval-2.33.0-py3-none-any.whl

Total release size: 495.2 kB

Release files / euler_eval-2.33.0.tar.gz

Download URL euler_eval-2.33.0.tar.gz
Size 302.9 kB
Tags Source
SHA-256 checksum
How to use checksums
af9744e91d7626439657ed93de029f89837cd102b53bcf7e98c76b164cdfe497
BLAKE2b-256 checksum
How to use checksums
f02532a9f7b855f82d51c0066568bf7fce24311caee4051f94977759dc72126e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / euler_eval-2.33.0-py3-none-any.whl

Download URL euler_eval-2.33.0-py3-none-any.whl
Size 192.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0c367ad2dd9302223356297b59e9e82ade917cdbac25dc51ef2739562e866e8a
BLAKE2b-256 checksum
How to use checksums
3a222be0dac23867477ccf66f31072348f09125cedb1dc4f1407059ee19f544b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for euler-eval 2.33.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.33.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page