Label benchmark camera provenance
Browse files- benchmark_pipeline.py +4 -1
benchmark_pipeline.py
CHANGED
|
@@ -14,7 +14,7 @@ from pathlib import Path
|
|
| 14 |
import numpy as np
|
| 15 |
|
| 16 |
from demo_pipeline import build_demo_views
|
| 17 |
-
from simam3d_core import fuse_point_views, fusion_metrics, reprojection_consistency
|
| 18 |
|
| 19 |
|
| 20 |
def _result_signature(result) -> str:
|
|
@@ -37,6 +37,9 @@ def run_benchmark(output_dir: str | Path, sizes=(32, 48, 64), repeats: int = 2)
|
|
| 37 |
]
|
| 38 |
signatures = [_result_signature(result) for result in results]
|
| 39 |
metrics = fusion_metrics(results[0])
|
|
|
|
|
|
|
|
|
|
| 40 |
reprojection = [
|
| 41 |
reprojection_consistency(points=results[0].points, depth=view[0], intrinsics=view[2], extrinsics=view[3])
|
| 42 |
for view in views
|
|
|
|
| 14 |
import numpy as np
|
| 15 |
|
| 16 |
from demo_pipeline import build_demo_views
|
| 17 |
+
from simam3d_core import classify_fusion_support, fuse_point_views, fusion_metrics, reprojection_consistency
|
| 18 |
|
| 19 |
|
| 20 |
def _result_signature(result) -> str:
|
|
|
|
| 37 |
]
|
| 38 |
signatures = [_result_signature(result) for result in results]
|
| 39 |
metrics = fusion_metrics(results[0])
|
| 40 |
+
metrics["support_status"] = classify_fusion_support(
|
| 41 |
+
metrics, len(views), len(views), "synthetic_orbit_prior"
|
| 42 |
+
)
|
| 43 |
reprojection = [
|
| 44 |
reprojection_consistency(points=results[0].points, depth=view[0], intrinsics=view[2], extrinsics=view[3])
|
| 45 |
for view in views
|