rpx-benchmark 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rpx_benchmark-0.3.0/LICENSE +21 -0
- rpx_benchmark-0.3.0/PKG-INFO +268 -0
- rpx_benchmark-0.3.0/README.md +177 -0
- rpx_benchmark-0.3.0/pyproject.toml +247 -0
- rpx_benchmark-0.3.0/rpx_benchmark/__init__.py +286 -0
- rpx_benchmark-0.3.0/rpx_benchmark/adapters/__init__.py +59 -0
- rpx_benchmark-0.3.0/rpx_benchmark/adapters/base.py +1077 -0
- rpx_benchmark-0.3.0/rpx_benchmark/adapters/batched_depth.py +344 -0
- rpx_benchmark-0.3.0/rpx_benchmark/adapters/batched_multimodal.py +368 -0
- rpx_benchmark-0.3.0/rpx_benchmark/adapters/depth/__init__.py +32 -0
- rpx_benchmark-0.3.0/rpx_benchmark/adapters/depth/skeletons.py +103 -0
- rpx_benchmark-0.3.0/rpx_benchmark/adapters/depth_scaffold.py +380 -0
- rpx_benchmark-0.3.0/rpx_benchmark/adapters/video_depth/__init__.py +31 -0
- rpx_benchmark-0.3.0/rpx_benchmark/adapters/video_depth/skeletons.py +84 -0
- rpx_benchmark-0.3.0/rpx_benchmark/api.py +599 -0
- rpx_benchmark-0.3.0/rpx_benchmark/ar_pose_audit.py +850 -0
- rpx_benchmark-0.3.0/rpx_benchmark/box_upload.py +576 -0
- rpx_benchmark-0.3.0/rpx_benchmark/cell_log.py +554 -0
- rpx_benchmark-0.3.0/rpx_benchmark/cleanup.py +173 -0
- rpx_benchmark-0.3.0/rpx_benchmark/cli_ux.py +616 -0
- rpx_benchmark-0.3.0/rpx_benchmark/data/__init__.py +57 -0
- rpx_benchmark-0.3.0/rpx_benchmark/data/clip_dataset.py +251 -0
- rpx_benchmark-0.3.0/rpx_benchmark/data/esd.py +899 -0
- rpx_benchmark-0.3.0/rpx_benchmark/data/esd_scoring.py +784 -0
- rpx_benchmark-0.3.0/rpx_benchmark/data/features.py +201 -0
- rpx_benchmark-0.3.0/rpx_benchmark/data/hf_bridge.py +294 -0
- rpx_benchmark-0.3.0/rpx_benchmark/data/load.py +125 -0
- rpx_benchmark-0.3.0/rpx_benchmark/data/torch_dataloader.py +85 -0
- rpx_benchmark-0.3.0/rpx_benchmark/dataset_hub/__init__.py +138 -0
- rpx_benchmark-0.3.0/rpx_benchmark/dataset_hub/cli.py +797 -0
- rpx_benchmark-0.3.0/rpx_benchmark/dataset_hub/croissant.py +113 -0
- rpx_benchmark-0.3.0/rpx_benchmark/dataset_hub/croissant_template.json +140 -0
- rpx_benchmark-0.3.0/rpx_benchmark/dataset_hub/dataset_card.py +345 -0
- rpx_benchmark-0.3.0/rpx_benchmark/dataset_hub/downloader.py +376 -0
- rpx_benchmark-0.3.0/rpx_benchmark/dataset_hub/ego_layout.py +275 -0
- rpx_benchmark-0.3.0/rpx_benchmark/dataset_hub/lossless_convert.py +609 -0
- rpx_benchmark-0.3.0/rpx_benchmark/dataset_hub/manifest.py +503 -0
- rpx_benchmark-0.3.0/rpx_benchmark/dataset_hub/mock.py +282 -0
- rpx_benchmark-0.3.0/rpx_benchmark/dataset_hub/packer.py +488 -0
- rpx_benchmark-0.3.0/rpx_benchmark/dataset_hub/recipes.py +261 -0
- rpx_benchmark-0.3.0/rpx_benchmark/dataset_hub/scanner.py +231 -0
- rpx_benchmark-0.3.0/rpx_benchmark/dataset_hub/split_manifests.py +717 -0
- rpx_benchmark-0.3.0/rpx_benchmark/dataset_hub/staging.py +198 -0
- rpx_benchmark-0.3.0/rpx_benchmark/dataset_hub/uploader.py +245 -0
- rpx_benchmark-0.3.0/rpx_benchmark/decode_contracts.py +189 -0
- rpx_benchmark-0.3.0/rpx_benchmark/deployment.py +687 -0
- rpx_benchmark-0.3.0/rpx_benchmark/determinism.py +153 -0
- rpx_benchmark-0.3.0/rpx_benchmark/evaluators.py +372 -0
- rpx_benchmark-0.3.0/rpx_benchmark/exceptions.py +215 -0
- rpx_benchmark-0.3.0/rpx_benchmark/hub.py +716 -0
- rpx_benchmark-0.3.0/rpx_benchmark/jedi.py +261 -0
- rpx_benchmark-0.3.0/rpx_benchmark/loader.py +584 -0
- rpx_benchmark-0.3.0/rpx_benchmark/logging_utils.py +218 -0
- rpx_benchmark-0.3.0/rpx_benchmark/metrics/__init__.py +76 -0
- rpx_benchmark-0.3.0/rpx_benchmark/metrics/depth.py +163 -0
- rpx_benchmark-0.3.0/rpx_benchmark/metrics/depth_alignment.py +282 -0
- rpx_benchmark-0.3.0/rpx_benchmark/metrics/depth_paper.py +234 -0
- rpx_benchmark-0.3.0/rpx_benchmark/metrics/depth_robotics.py +306 -0
- rpx_benchmark-0.3.0/rpx_benchmark/metrics/depth_temporal.py +768 -0
- rpx_benchmark-0.3.0/rpx_benchmark/metrics/detection.py +60 -0
- rpx_benchmark-0.3.0/rpx_benchmark/metrics/grounding.py +49 -0
- rpx_benchmark-0.3.0/rpx_benchmark/metrics/keypoints.py +59 -0
- rpx_benchmark-0.3.0/rpx_benchmark/metrics/pose.py +48 -0
- rpx_benchmark-0.3.0/rpx_benchmark/metrics/registry.py +347 -0
- rpx_benchmark-0.3.0/rpx_benchmark/metrics/segmentation.py +44 -0
- rpx_benchmark-0.3.0/rpx_benchmark/metrics/sparse_depth.py +52 -0
- rpx_benchmark-0.3.0/rpx_benchmark/metrics/specs.py +349 -0
- rpx_benchmark-0.3.0/rpx_benchmark/metrics/tracking.py +53 -0
- rpx_benchmark-0.3.0/rpx_benchmark/metrics/tracking_paper.py +178 -0
- rpx_benchmark-0.3.0/rpx_benchmark/metrics/video_depth.py +352 -0
- rpx_benchmark-0.3.0/rpx_benchmark/model_profiler.py +340 -0
- rpx_benchmark-0.3.0/rpx_benchmark/paper_depth_analysis.py +525 -0
- rpx_benchmark-0.3.0/rpx_benchmark/paper_tracking_analysis.py +413 -0
- rpx_benchmark-0.3.0/rpx_benchmark/phi.py +1129 -0
- rpx_benchmark-0.3.0/rpx_benchmark/phi_jedi_summary.py +460 -0
- rpx_benchmark-0.3.0/rpx_benchmark/pose_conventions.py +36 -0
- rpx_benchmark-0.3.0/rpx_benchmark/pose_metrics.py +538 -0
- rpx_benchmark-0.3.0/rpx_benchmark/pose_pairs.py +711 -0
- rpx_benchmark-0.3.0/rpx_benchmark/profiler.py +864 -0
- rpx_benchmark-0.3.0/rpx_benchmark/py.typed +0 -0
- rpx_benchmark-0.3.0/rpx_benchmark/reports.py +212 -0
- rpx_benchmark-0.3.0/rpx_benchmark/runner.py +667 -0
- rpx_benchmark-0.3.0/rpx_benchmark/schemas.py +340 -0
- rpx_benchmark-0.3.0/rpx_benchmark/tasks/__init__.py +119 -0
- rpx_benchmark-0.3.0/rpx_benchmark/tasks/_pipeline.py +340 -0
- rpx_benchmark-0.3.0/rpx_benchmark/tasks/_video_pipeline.py +581 -0
- rpx_benchmark-0.3.0/rpx_benchmark/tasks/detection.py +56 -0
- rpx_benchmark-0.3.0/rpx_benchmark/tasks/keypoint_matching.py +38 -0
- rpx_benchmark-0.3.0/rpx_benchmark/tasks/monocular_depth.py +45 -0
- rpx_benchmark-0.3.0/rpx_benchmark/tasks/registry.py +109 -0
- rpx_benchmark-0.3.0/rpx_benchmark/tasks/relative_pose.py +38 -0
- rpx_benchmark-0.3.0/rpx_benchmark/tasks/robot_vqa.py +496 -0
- rpx_benchmark-0.3.0/rpx_benchmark/tasks/robot_vqa_v2.py +436 -0
- rpx_benchmark-0.3.0/rpx_benchmark/tasks/segmentation.py +64 -0
- rpx_benchmark-0.3.0/rpx_benchmark/tasks/sparse_depth.py +37 -0
- rpx_benchmark-0.3.0/rpx_benchmark/tasks/tracking.py +38 -0
- rpx_benchmark-0.3.0/rpx_benchmark/tasks/video_depth.py +156 -0
- rpx_benchmark-0.3.0/rpx_benchmark/tasks/visual_grounding.py +37 -0
- rpx_benchmark-0.3.0/rpx_benchmark/tasks/vqa_generation.py +417 -0
- rpx_benchmark-0.3.0/rpx_benchmark/temporal_budget_sweep.py +367 -0
- rpx_benchmark-0.3.0/rpx_benchmark/video_loader.py +560 -0
- rpx_benchmark-0.3.0/rpx_benchmark/vqa/__init__.py +30 -0
- rpx_benchmark-0.3.0/rpx_benchmark/vqa/canonical.py +85 -0
- rpx_benchmark-0.3.0/rpx_benchmark/vqa/contract.py +352 -0
- rpx_benchmark-0.3.0/rpx_benchmark/vqa/evaluate.py +89 -0
- rpx_benchmark-0.3.0/rpx_benchmark/vqa/hub_rgb.py +347 -0
- rpx_benchmark-0.3.0/rpx_benchmark/vqa/metrics.py +276 -0
- rpx_benchmark-0.3.0/rpx_benchmark/vqa/outputs.py +378 -0
- rpx_benchmark-0.3.0/rpx_benchmark/vqa/prompts.py +309 -0
- rpx_benchmark-0.3.0/rpx_benchmark/vqa/roster.py +117 -0
- rpx_benchmark-0.3.0/rpx_benchmark/vqa/sampling.py +87 -0
- rpx_benchmark-0.3.0/rpx_benchmark.egg-info/PKG-INFO +268 -0
- rpx_benchmark-0.3.0/rpx_benchmark.egg-info/SOURCES.txt +213 -0
- rpx_benchmark-0.3.0/rpx_benchmark.egg-info/dependency_links.txt +1 -0
- rpx_benchmark-0.3.0/rpx_benchmark.egg-info/requires.txt +45 -0
- rpx_benchmark-0.3.0/rpx_benchmark.egg-info/top_level.txt +1 -0
- rpx_benchmark-0.3.0/setup.cfg +4 -0
- rpx_benchmark-0.3.0/tests/test_adapters.py +99 -0
- rpx_benchmark-0.3.0/tests/test_aggregate_tracking_performance.py +58 -0
- rpx_benchmark-0.3.0/tests/test_all_tasks_parity.py +65 -0
- rpx_benchmark-0.3.0/tests/test_ar_pose_audit.py +103 -0
- rpx_benchmark-0.3.0/tests/test_box_upload.py +547 -0
- rpx_benchmark-0.3.0/tests/test_budget_sweep.py +117 -0
- rpx_benchmark-0.3.0/tests/test_canonical_bridge.py +121 -0
- rpx_benchmark-0.3.0/tests/test_cell_log.py +238 -0
- rpx_benchmark-0.3.0/tests/test_cell_log_system_card.py +162 -0
- rpx_benchmark-0.3.0/tests/test_cleanup.py +164 -0
- rpx_benchmark-0.3.0/tests/test_clip_dataset.py +165 -0
- rpx_benchmark-0.3.0/tests/test_dataset_hub_cli_smoke.py +361 -0
- rpx_benchmark-0.3.0/tests/test_dataset_hub_croissant.py +110 -0
- rpx_benchmark-0.3.0/tests/test_dataset_hub_dataset_card.py +119 -0
- rpx_benchmark-0.3.0/tests/test_dataset_hub_downloader.py +246 -0
- rpx_benchmark-0.3.0/tests/test_dataset_hub_ego.py +276 -0
- rpx_benchmark-0.3.0/tests/test_dataset_hub_fault_proof.py +432 -0
- rpx_benchmark-0.3.0/tests/test_dataset_hub_format_dispatch.py +379 -0
- rpx_benchmark-0.3.0/tests/test_dataset_hub_integration.py +186 -0
- rpx_benchmark-0.3.0/tests/test_dataset_hub_lossless_convert.py +545 -0
- rpx_benchmark-0.3.0/tests/test_dataset_hub_manifest.py +163 -0
- rpx_benchmark-0.3.0/tests/test_dataset_hub_mock.py +133 -0
- rpx_benchmark-0.3.0/tests/test_dataset_hub_objects_meta.py +232 -0
- rpx_benchmark-0.3.0/tests/test_dataset_hub_packer.py +221 -0
- rpx_benchmark-0.3.0/tests/test_dataset_hub_recipes.py +88 -0
- rpx_benchmark-0.3.0/tests/test_dataset_hub_scanner.py +126 -0
- rpx_benchmark-0.3.0/tests/test_dataset_hub_staging.py +159 -0
- rpx_benchmark-0.3.0/tests/test_dataset_hub_uploader.py +150 -0
- rpx_benchmark-0.3.0/tests/test_dataset_hub_v2_integration.py +357 -0
- rpx_benchmark-0.3.0/tests/test_dataset_hub_workers.py +297 -0
- rpx_benchmark-0.3.0/tests/test_deployment.py +172 -0
- rpx_benchmark-0.3.0/tests/test_depth_adapter_scaffolds.py +170 -0
- rpx_benchmark-0.3.0/tests/test_depth_alignment_pooled.py +215 -0
- rpx_benchmark-0.3.0/tests/test_depth_log_range.py +99 -0
- rpx_benchmark-0.3.0/tests/test_depth_metrics.py +48 -0
- rpx_benchmark-0.3.0/tests/test_depth_paper_analysis.py +165 -0
- rpx_benchmark-0.3.0/tests/test_depth_paper_operator.py +61 -0
- rpx_benchmark-0.3.0/tests/test_depth_paper_protocol.py +281 -0
- rpx_benchmark-0.3.0/tests/test_depth_paper_staged.py +197 -0
- rpx_benchmark-0.3.0/tests/test_depth_robotics.py +108 -0
- rpx_benchmark-0.3.0/tests/test_depth_smoke_tools.py +603 -0
- rpx_benchmark-0.3.0/tests/test_depth_temporal.py +156 -0
- rpx_benchmark-0.3.0/tests/test_determinism.py +67 -0
- rpx_benchmark-0.3.0/tests/test_esd.py +715 -0
- rpx_benchmark-0.3.0/tests/test_esd_scoring.py +647 -0
- rpx_benchmark-0.3.0/tests/test_exceptions_and_logging.py +124 -0
- rpx_benchmark-0.3.0/tests/test_extract_vqa_benchmark_metrics.py +72 -0
- rpx_benchmark-0.3.0/tests/test_fe2e_adapter.py +152 -0
- rpx_benchmark-0.3.0/tests/test_frame_as_video_wrapper.py +194 -0
- rpx_benchmark-0.3.0/tests/test_hf_data.py +212 -0
- rpx_benchmark-0.3.0/tests/test_hub.py +342 -0
- rpx_benchmark-0.3.0/tests/test_jedi.py +239 -0
- rpx_benchmark-0.3.0/tests/test_loader_errors.py +109 -0
- rpx_benchmark-0.3.0/tests/test_loader_gt_paths.py +259 -0
- rpx_benchmark-0.3.0/tests/test_loader_pose_npy_dispatch.py +124 -0
- rpx_benchmark-0.3.0/tests/test_m3_hooks_and_profiler.py +195 -0
- rpx_benchmark-0.3.0/tests/test_make_numpy_video_depth_model.py +135 -0
- rpx_benchmark-0.3.0/tests/test_mask_canonicalization.py +29 -0
- rpx_benchmark-0.3.0/tests/test_metrics_other.py +263 -0
- rpx_benchmark-0.3.0/tests/test_metrics_registry.py +106 -0
- rpx_benchmark-0.3.0/tests/test_new_task_pipelines.py +383 -0
- rpx_benchmark-0.3.0/tests/test_paper_aliases.py +41 -0
- rpx_benchmark-0.3.0/tests/test_phase_cell_recording.py +125 -0
- rpx_benchmark-0.3.0/tests/test_phi.py +451 -0
- rpx_benchmark-0.3.0/tests/test_pipeline.py +215 -0
- rpx_benchmark-0.3.0/tests/test_pose_comprehensive_metrics.py +176 -0
- rpx_benchmark-0.3.0/tests/test_pose_csv_dedup.py +123 -0
- rpx_benchmark-0.3.0/tests/test_pose_metrics_protocol.py +122 -0
- rpx_benchmark-0.3.0/tests/test_pose_models_registry.py +309 -0
- rpx_benchmark-0.3.0/tests/test_pose_pairs_protocol.py +132 -0
- rpx_benchmark-0.3.0/tests/test_roofline_profiler.py +216 -0
- rpx_benchmark-0.3.0/tests/test_schemas.py +147 -0
- rpx_benchmark-0.3.0/tests/test_se3_reproject.py +85 -0
- rpx_benchmark-0.3.0/tests/test_segmentation_pipeline.py +214 -0
- rpx_benchmark-0.3.0/tests/test_split_manifests.py +232 -0
- rpx_benchmark-0.3.0/tests/test_stat_utils.py +126 -0
- rpx_benchmark-0.3.0/tests/test_task_registry.py +53 -0
- rpx_benchmark-0.3.0/tests/test_temporal_metrics_extended.py +257 -0
- rpx_benchmark-0.3.0/tests/test_tracking.py +208 -0
- rpx_benchmark-0.3.0/tests/test_tracking_docker_matrix.py +295 -0
- rpx_benchmark-0.3.0/tests/test_tracking_model_registry.py +319 -0
- rpx_benchmark-0.3.0/tests/test_tracking_paper.py +34 -0
- rpx_benchmark-0.3.0/tests/test_tracking_paper_analysis.py +90 -0
- rpx_benchmark-0.3.0/tests/test_tracking_sam2_gate.py +459 -0
- rpx_benchmark-0.3.0/tests/test_tracking_text_adapters.py +205 -0
- rpx_benchmark-0.3.0/tests/test_tracking_text_vocab_runtime.py +55 -0
- rpx_benchmark-0.3.0/tests/test_user_workflows.py +105 -0
- rpx_benchmark-0.3.0/tests/test_video_depth_native_alignment.py +55 -0
- rpx_benchmark-0.3.0/tests/test_video_depth_runner.py +463 -0
- rpx_benchmark-0.3.0/tests/test_video_depth_silog_fscore.py +186 -0
- rpx_benchmark-0.3.0/tests/test_video_depth_skeletons.py +203 -0
- rpx_benchmark-0.3.0/tests/test_video_loader_skeleton.py +360 -0
- rpx_benchmark-0.3.0/tests/test_vqa_custom_model.py +124 -0
- rpx_benchmark-0.3.0/tests/test_vqa_generation.py +208 -0
- rpx_benchmark-0.3.0/tests/test_vqa_incontext.py +401 -0
- rpx_benchmark-0.3.0/tests/test_vqa_persistent_engine_scripts.py +66 -0
- rpx_benchmark-0.3.0/tests/test_vqa_smoke.py +1081 -0
- rpx_benchmark-0.3.0/tests/test_zipdepth_adapter.py +133 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Intelligent Robotics and Vision Lab at the University of Texas at Dallas
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: rpx-benchmark
|
|
3
|
+
Version: 0.3.0
|
|
4
|
+
Summary: RPX — benchmark harness for evaluating robot-perception models on real-world RGB-D data
|
|
5
|
+
Author: RPX Team
|
|
6
|
+
Maintainer: RPX Team
|
|
7
|
+
License: MIT License
|
|
8
|
+
|
|
9
|
+
Copyright (c) 2025 Intelligent Robotics and Vision Lab at the University of Texas at Dallas
|
|
10
|
+
|
|
11
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
13
|
+
in the Software without restriction, including without limitation the rights
|
|
14
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
15
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
16
|
+
furnished to do so, subject to the following conditions:
|
|
17
|
+
|
|
18
|
+
The above copyright notice and this permission notice shall be included in all
|
|
19
|
+
copies or substantial portions of the Software.
|
|
20
|
+
|
|
21
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
26
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
27
|
+
SOFTWARE.
|
|
28
|
+
|
|
29
|
+
Project-URL: Homepage, https://github.com/IRVLUTD/RPX
|
|
30
|
+
Project-URL: Documentation, https://irvlutd.github.io/RPX/toolkit-docs/
|
|
31
|
+
Project-URL: Repository, https://github.com/IRVLUTD/RPX
|
|
32
|
+
Project-URL: Issues, https://github.com/IRVLUTD/RPX/issues
|
|
33
|
+
Keywords: robot-learning,perception,rgb-d,benchmark,robotics,embodied-ai,huggingface,deployment-readiness
|
|
34
|
+
Classifier: Development Status :: 4 - Beta
|
|
35
|
+
Classifier: Intended Audience :: Developers
|
|
36
|
+
Classifier: Intended Audience :: Science/Research
|
|
37
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
38
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
39
|
+
Classifier: Operating System :: MacOS
|
|
40
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
41
|
+
Classifier: Programming Language :: Python :: 3
|
|
42
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
43
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
44
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
45
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
46
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
47
|
+
Classifier: Topic :: Scientific/Engineering :: Image Recognition
|
|
48
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
49
|
+
Classifier: Typing :: Typed
|
|
50
|
+
Requires-Python: >=3.10
|
|
51
|
+
Description-Content-Type: text/markdown
|
|
52
|
+
License-File: LICENSE
|
|
53
|
+
Requires-Dist: numpy>=1.24
|
|
54
|
+
Requires-Dist: Pillow>=9.0
|
|
55
|
+
Requires-Dist: rich>=13
|
|
56
|
+
Requires-Dist: scipy>=1.10
|
|
57
|
+
Provides-Extra: hub
|
|
58
|
+
Requires-Dist: huggingface_hub[hf_xet]>=0.26; extra == "hub"
|
|
59
|
+
Requires-Dist: pyarrow>=14; extra == "hub"
|
|
60
|
+
Provides-Extra: hf-datasets
|
|
61
|
+
Requires-Dist: datasets>=2.18; extra == "hf-datasets"
|
|
62
|
+
Requires-Dist: huggingface_hub>=0.22; extra == "hf-datasets"
|
|
63
|
+
Provides-Extra: schemas
|
|
64
|
+
Requires-Dist: pydantic>=2.5; extra == "schemas"
|
|
65
|
+
Provides-Extra: esd-fast
|
|
66
|
+
Requires-Dist: opencv-python>=4.8; extra == "esd-fast"
|
|
67
|
+
Provides-Extra: ar-pose-audit
|
|
68
|
+
Requires-Dist: opencv-contrib-python-headless>=4.8; extra == "ar-pose-audit"
|
|
69
|
+
Requires-Dist: matplotlib>=3.7; extra == "ar-pose-audit"
|
|
70
|
+
Provides-Extra: analysis
|
|
71
|
+
Requires-Dist: pandas>=2.0; extra == "analysis"
|
|
72
|
+
Requires-Dist: scikit-learn>=1.3; extra == "analysis"
|
|
73
|
+
Requires-Dist: scipy>=1.10; extra == "analysis"
|
|
74
|
+
Requires-Dist: matplotlib>=3.7; extra == "analysis"
|
|
75
|
+
Provides-Extra: viz
|
|
76
|
+
Requires-Dist: rerun-sdk>=0.26; extra == "viz"
|
|
77
|
+
Requires-Dist: matplotlib>=3.7; extra == "viz"
|
|
78
|
+
Requires-Dist: pillow>=10; extra == "viz"
|
|
79
|
+
Requires-Dist: tqdm>=4.66; extra == "viz"
|
|
80
|
+
Provides-Extra: dev
|
|
81
|
+
Requires-Dist: numpy<2.5; extra == "dev"
|
|
82
|
+
Requires-Dist: pytest>=7; extra == "dev"
|
|
83
|
+
Requires-Dist: pytest-cov>=5; extra == "dev"
|
|
84
|
+
Requires-Dist: ruff>=0.4; extra == "dev"
|
|
85
|
+
Requires-Dist: black>=24.8; extra == "dev"
|
|
86
|
+
Requires-Dist: mypy<2.0,>=1.11; extra == "dev"
|
|
87
|
+
Requires-Dist: pre-commit>=3.8; extra == "dev"
|
|
88
|
+
Requires-Dist: pydantic>=2.5; extra == "dev"
|
|
89
|
+
Requires-Dist: types-requests; extra == "dev"
|
|
90
|
+
Dynamic: license-file
|
|
91
|
+
|
|
92
|
+
# RPX Benchmark Toolkit
|
|
93
|
+
|
|
94
|
+
Load RPX data, run reference or custom perception models, and compare accuracy,
|
|
95
|
+
scene-change robustness and compute cost with Python 3.10–3.12:
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
python -m pip install 'rpx-benchmark[hub,schemas]'
|
|
99
|
+
git clone https://github.com/IRVLUTD/RPX.git
|
|
100
|
+
cd RPX
|
|
101
|
+
python benchmark/examples/run_depth.py
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
The example is a CPU-only installation check using synthetic data. Reference
|
|
105
|
+
checkpoints need their own runtime, weights and GPU resources. The package
|
|
106
|
+
installation alone does not install every model's dependencies.
|
|
107
|
+
|
|
108
|
+
For toolkit development, replace the PyPI install with an editable source
|
|
109
|
+
install from the repository root:
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
python -m pip install -e './benchmark[hub,schemas]'
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## Reference models
|
|
116
|
+
|
|
117
|
+
Use isolated environments because model dependencies conflict. The linked
|
|
118
|
+
READMEs contain build, checkpoint, cache and execution instructions. Run a
|
|
119
|
+
model's small inference gate before a full benchmark, and retain its dataset
|
|
120
|
+
revision and runtime metadata with the results.
|
|
121
|
+
|
|
122
|
+
| Evaluation | Models and commands | Environment |
|
|
123
|
+
|---|---|---|
|
|
124
|
+
| Image depth | Ten canonical models, including DA3, DA-V2 Large, Depth Pro, UniDepth V2, Metric3D V2, MoGe-2, HyDen, Lotus 2, FE2E and ZipDepth; `scripts/run_depth.py` | [Depth](../docker/depth-smoke/README.md), with dedicated [FE2E](../docker/depth-fe2e/README.md) and [ZipDepth](../docker/depth-zipdepth/README.md) overlays |
|
|
125
|
+
| Video depth | DA3, DepthCrafter, Video Depth Anything, ChronoDepth, RollingDepth, DVD, GEMDepth, ViGeo, MonST3R and VGGT; `scripts/run_video_depth.py` | [Depth](../docker/depth-smoke/README.md), [DVD](../docker/depth-dvd/README.md), [GEMDepth](../docker/depth-gemdepth/README.md) |
|
|
126
|
+
| Relative pose | VGGT, DA3, CUT3R, DUSt3R, MASt3R, MUSt3R, Reloc3r, Pi3X, Fast3R and MonST3R; additional baseline adapters are retained | [Relative pose](../docker/rcpe-smoke/README.md) |
|
|
127
|
+
| Tracking | Mask-, box- and text-initialized adapters, with MOS and Ego protocols; `scripts/run_tracking.py` and `scripts/run_tracking_paper.py` | [Tracking](../docker/tracking-smoke/README.md) |
|
|
128
|
+
| VQA / bbox grounding | Twenty roster entries with native Transformers or vLLM backends, one- and two-image inputs; `scripts/run_vqa_benchmark.py` | [VQA](../docker/vqa-smoke/README.md) |
|
|
129
|
+
|
|
130
|
+
For segmentation, detection, open-vocabulary detection, generic grounding,
|
|
131
|
+
sparse depth and keypoint matching, the toolkit supplies the callable APIs,
|
|
132
|
+
loaders and evaluators below. There is no bundled full pretrained-model sweep
|
|
133
|
+
for those tasks. Mask annotation models produce dataset labels; they are not
|
|
134
|
+
a substitute for a benchmark adapter.
|
|
135
|
+
|
|
136
|
+
Example, **inside the selected model environment**, from `benchmark/`:
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
python scripts/run_depth.py --model da-v2-large --split easy \
|
|
140
|
+
--repo IRVLUTD/RPX --device cuda --max-samples 10 \
|
|
141
|
+
--output-dir ../rpx_results/da-v2-large/easy-smoke
|
|
142
|
+
python scripts/run_video_depth.py --help
|
|
143
|
+
python scripts/run_relative_pose.py --help
|
|
144
|
+
python scripts/run_tracking.py --help
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
`python benchmark/scripts/run_depth_smoke_matrix.py --list-models` lists the
|
|
148
|
+
canonical depth roster without loading weights. Docker matrix files and adapter
|
|
149
|
+
registries are the source of model identifiers and pinned checkpoint revisions.
|
|
150
|
+
Model availability and successful inference are different checks: the offline
|
|
151
|
+
suite tests adapters with controlled inputs, while GPU gates run real weights.
|
|
152
|
+
|
|
153
|
+
## Bring your own model
|
|
154
|
+
|
|
155
|
+
Wrap a callable and pass it to a public task runner. The callable may invoke a
|
|
156
|
+
local model or your inference service; convert its response to the documented
|
|
157
|
+
NumPy output. Authentication and service configuration belong in your wrapper,
|
|
158
|
+
not in committed source.
|
|
159
|
+
|
|
160
|
+
```python
|
|
161
|
+
import rpx_benchmark as rpx
|
|
162
|
+
from my_model import predict_depth # your implementation: RGB -> depth in metres
|
|
163
|
+
|
|
164
|
+
model = rpx.make_numpy_depth_model(predict_depth, name="my-depth")
|
|
165
|
+
result, report, paths = rpx.run_monocular_depth(
|
|
166
|
+
rpx.MonocularDepthRunConfig(
|
|
167
|
+
model=model,
|
|
168
|
+
split="easy",
|
|
169
|
+
repo_id="IRVLUTD/RPX",
|
|
170
|
+
revision=rpx.DEFAULT_REVISION,
|
|
171
|
+
device="cpu", # configure your callable's actual device yourself
|
|
172
|
+
output_dir="rpx_results/my-depth/easy",
|
|
173
|
+
)
|
|
174
|
+
)
|
|
175
|
+
print(result.aggregated)
|
|
176
|
+
print(paths["json"])
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
For a local dataset, supply `manifest_path="/data/manifests/monocular_depth/easy.json"`
|
|
180
|
+
to skip downloading. Manifests name a task and dataset root and list samples
|
|
181
|
+
with modality paths, scene, phase and difficulty. Local examples and all ten
|
|
182
|
+
public workflows are exercised in [tests/test_user_workflows.py](tests/test_user_workflows.py).
|
|
183
|
+
For relative depth, set `depth_output_kind="relative"` on the factory; never
|
|
184
|
+
label arbitrary relative values as metric depth.
|
|
185
|
+
|
|
186
|
+
| Task | Factory (under `rpx`) | Callable input → output | Public runner |
|
|
187
|
+
|---|---|---|---|
|
|
188
|
+
| Monocular depth | `make_numpy_depth_model` | RGB `(H,W,3)` → depth `(H,W)` | `run_monocular_depth` |
|
|
189
|
+
| Video depth | `make_numpy_video_depth_model` | RGB `(T,H,W,3)` → depth `(T,H,W)` | `run_video_depth` |
|
|
190
|
+
| Segmentation | `make_numpy_mask_model` | RGB → integer instance mask; 0 is background | `run_segmentation` |
|
|
191
|
+
| Detection | `make_numpy_detection_model` | RGB → boxes, scores, labels | `run_object_detection` |
|
|
192
|
+
| Open-vocabulary detection | `make_numpy_detection_model(..., task=rpx.TaskType.OPEN_VOCAB_DETECTION)` | RGB → boxes, scores, labels; bind your vocabulary in the callable | `run_open_vocab_detection` |
|
|
193
|
+
| Tracking | `make_numpy_tracking_model` | RGB → tracks with persistent IDs and boxes | `run_object_tracking` |
|
|
194
|
+
| Grounding | `make_numpy_grounding_model` | RGB, text → boxes and scores | `run_visual_grounding` |
|
|
195
|
+
| Relative pose | `make_numpy_pose_model` | RGB A, RGB B → rotation `(3,3)`, translation `(3,)` | `run_relative_pose` |
|
|
196
|
+
| Sparse depth | `make_numpy_sparse_depth_model` | RGB, pixel coordinates → depth values | `run_sparse_depth` |
|
|
197
|
+
| Keypoint matching | `make_numpy_keypoint_model` | RGB A, RGB B → points0, points1 | `run_keypoint_matching` |
|
|
198
|
+
|
|
199
|
+
Factory docstrings specify shapes and units. For custom preprocessing, batching
|
|
200
|
+
or framework-specific outputs, implement `BenchmarkModel` or compose
|
|
201
|
+
`BenchmarkableModel` with input/output adapters. The generic tracking API is a
|
|
202
|
+
frame-based contract; use the production tracking runner for the full clip-based
|
|
203
|
+
paper protocol and its initialization/scoring rules.
|
|
204
|
+
|
|
205
|
+
### Custom VQA model or API
|
|
206
|
+
|
|
207
|
+
VQA uses JSONL question manifests rather than the core task manifests. A custom
|
|
208
|
+
callable receives only ordered image paths and the public prompt; ground-truth
|
|
209
|
+
answers and boxes are kept inside the evaluator.
|
|
210
|
+
|
|
211
|
+
```python
|
|
212
|
+
from rpx_benchmark.vqa import evaluate_vqa
|
|
213
|
+
from my_model import predict_vqa
|
|
214
|
+
|
|
215
|
+
# predict_vqa(image_paths, prompt, max_new_tokens, output_kind) -> raw text
|
|
216
|
+
# image_paths: (target,) or (reference_crop, target), in that order.
|
|
217
|
+
report = evaluate_vqa(
|
|
218
|
+
"vqa_manifest.jsonl", predict_vqa,
|
|
219
|
+
model_name="my-vlm", model_revision="my-checkpoint-or-service-version",
|
|
220
|
+
image_cache=".cache/rpx-vqa", output_dir="rpx_results/my-vlm",
|
|
221
|
+
)
|
|
222
|
+
print(report["metrics"])
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
Return one JSON object with `label` and `bbox` (XYXY coordinates normalized to
|
|
226
|
+
0–1000); binary questions require `yes` or `no`. Parsing failures and inference
|
|
227
|
+
errors remain in the denominator. Runs save raw outputs, errors, timing,
|
|
228
|
+
manifest hash, model revision and scored results. Use a fresh output directory.
|
|
229
|
+
The [VQA runtime README](../docker/vqa-smoke/README.md) explains manifest
|
|
230
|
+
preparation and the reference-model benchmark. The preserved Molmo adapter in
|
|
231
|
+
`scripts/vqa_models/molmo_backend.py` is optional and outside the frozen roster.
|
|
232
|
+
|
|
233
|
+
## Data and results
|
|
234
|
+
|
|
235
|
+
The Hub loader fetches only required modalities and reuses its cache. Pin a
|
|
236
|
+
dataset commit for comparable runs; do not mix results from moving revisions.
|
|
237
|
+
The [data README](data/README.md) identifies the local canonical splits and
|
|
238
|
+
metadata. Dataset publishing tools are documented separately in
|
|
239
|
+
[rpx_benchmark/dataset_hub/README.md](rpx_benchmark/dataset_hub/README.md).
|
|
240
|
+
|
|
241
|
+
Generic frame runs write `result.json`, `summary.md`, `cells.parquet` and
|
|
242
|
+
`per_sample_metrics.parquet`. Video runs write clip/cell results. Hardware,
|
|
243
|
+
precision and batch size belong in each cell; unavailable measurements stay
|
|
244
|
+
unavailable. Custom API wall time includes transport and is not a GPU-only
|
|
245
|
+
latency measurement. Production runners add prediction caches, protocol
|
|
246
|
+
metrics and provenance records.
|
|
247
|
+
|
|
248
|
+
## Testing
|
|
249
|
+
|
|
250
|
+
From `benchmark/`, in a clean virtual environment:
|
|
251
|
+
|
|
252
|
+
```bash
|
|
253
|
+
python -m pip install -e '.[dev,hub,schemas,hf-datasets,analysis,ar-pose-audit]' \
|
|
254
|
+
imageio imageio-ffmpeg av transformers build
|
|
255
|
+
python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
|
|
256
|
+
python -m pip install --no-deps 'git+https://github.com/JonathonLuiten/TrackEval.git@12c8791b303e0a0b50f753af204249e622d0281a'
|
|
257
|
+
pytest tests -q --cov=rpx_benchmark --cov-report=term-missing
|
|
258
|
+
pytest ../data/mask_annotation/visual_grounding_gt/vqa_gt/tests -q
|
|
259
|
+
ruff check rpx_benchmark tests scripts
|
|
260
|
+
mypy rpx_benchmark
|
|
261
|
+
python -m build
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
Tests cover task contracts, local datasets, public custom-model workflows,
|
|
265
|
+
metrics, reports, download behavior, model-call signatures and VQA parsing.
|
|
266
|
+
They do not download model checkpoints. Run the linked CUDA inference gates
|
|
267
|
+
on the target machine to validate real models, available memory and dataset
|
|
268
|
+
access. Sensor capture and annotation UI checks require their own hardware.
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
# RPX Benchmark Toolkit
|
|
2
|
+
|
|
3
|
+
Load RPX data, run reference or custom perception models, and compare accuracy,
|
|
4
|
+
scene-change robustness and compute cost with Python 3.10–3.12:
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
python -m pip install 'rpx-benchmark[hub,schemas]'
|
|
8
|
+
git clone https://github.com/IRVLUTD/RPX.git
|
|
9
|
+
cd RPX
|
|
10
|
+
python benchmark/examples/run_depth.py
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
The example is a CPU-only installation check using synthetic data. Reference
|
|
14
|
+
checkpoints need their own runtime, weights and GPU resources. The package
|
|
15
|
+
installation alone does not install every model's dependencies.
|
|
16
|
+
|
|
17
|
+
For toolkit development, replace the PyPI install with an editable source
|
|
18
|
+
install from the repository root:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
python -m pip install -e './benchmark[hub,schemas]'
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Reference models
|
|
25
|
+
|
|
26
|
+
Use isolated environments because model dependencies conflict. The linked
|
|
27
|
+
READMEs contain build, checkpoint, cache and execution instructions. Run a
|
|
28
|
+
model's small inference gate before a full benchmark, and retain its dataset
|
|
29
|
+
revision and runtime metadata with the results.
|
|
30
|
+
|
|
31
|
+
| Evaluation | Models and commands | Environment |
|
|
32
|
+
|---|---|---|
|
|
33
|
+
| Image depth | Ten canonical models, including DA3, DA-V2 Large, Depth Pro, UniDepth V2, Metric3D V2, MoGe-2, HyDen, Lotus 2, FE2E and ZipDepth; `scripts/run_depth.py` | [Depth](../docker/depth-smoke/README.md), with dedicated [FE2E](../docker/depth-fe2e/README.md) and [ZipDepth](../docker/depth-zipdepth/README.md) overlays |
|
|
34
|
+
| Video depth | DA3, DepthCrafter, Video Depth Anything, ChronoDepth, RollingDepth, DVD, GEMDepth, ViGeo, MonST3R and VGGT; `scripts/run_video_depth.py` | [Depth](../docker/depth-smoke/README.md), [DVD](../docker/depth-dvd/README.md), [GEMDepth](../docker/depth-gemdepth/README.md) |
|
|
35
|
+
| Relative pose | VGGT, DA3, CUT3R, DUSt3R, MASt3R, MUSt3R, Reloc3r, Pi3X, Fast3R and MonST3R; additional baseline adapters are retained | [Relative pose](../docker/rcpe-smoke/README.md) |
|
|
36
|
+
| Tracking | Mask-, box- and text-initialized adapters, with MOS and Ego protocols; `scripts/run_tracking.py` and `scripts/run_tracking_paper.py` | [Tracking](../docker/tracking-smoke/README.md) |
|
|
37
|
+
| VQA / bbox grounding | Twenty roster entries with native Transformers or vLLM backends, one- and two-image inputs; `scripts/run_vqa_benchmark.py` | [VQA](../docker/vqa-smoke/README.md) |
|
|
38
|
+
|
|
39
|
+
For segmentation, detection, open-vocabulary detection, generic grounding,
|
|
40
|
+
sparse depth and keypoint matching, the toolkit supplies the callable APIs,
|
|
41
|
+
loaders and evaluators below. There is no bundled full pretrained-model sweep
|
|
42
|
+
for those tasks. Mask annotation models produce dataset labels; they are not
|
|
43
|
+
a substitute for a benchmark adapter.
|
|
44
|
+
|
|
45
|
+
Example, **inside the selected model environment**, from `benchmark/`:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
python scripts/run_depth.py --model da-v2-large --split easy \
|
|
49
|
+
--repo IRVLUTD/RPX --device cuda --max-samples 10 \
|
|
50
|
+
--output-dir ../rpx_results/da-v2-large/easy-smoke
|
|
51
|
+
python scripts/run_video_depth.py --help
|
|
52
|
+
python scripts/run_relative_pose.py --help
|
|
53
|
+
python scripts/run_tracking.py --help
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
`python benchmark/scripts/run_depth_smoke_matrix.py --list-models` lists the
|
|
57
|
+
canonical depth roster without loading weights. Docker matrix files and adapter
|
|
58
|
+
registries are the source of model identifiers and pinned checkpoint revisions.
|
|
59
|
+
Model availability and successful inference are different checks: the offline
|
|
60
|
+
suite tests adapters with controlled inputs, while GPU gates run real weights.
|
|
61
|
+
|
|
62
|
+
## Bring your own model
|
|
63
|
+
|
|
64
|
+
Wrap a callable and pass it to a public task runner. The callable may invoke a
|
|
65
|
+
local model or your inference service; convert its response to the documented
|
|
66
|
+
NumPy output. Authentication and service configuration belong in your wrapper,
|
|
67
|
+
not in committed source.
|
|
68
|
+
|
|
69
|
+
```python
|
|
70
|
+
import rpx_benchmark as rpx
|
|
71
|
+
from my_model import predict_depth # your implementation: RGB -> depth in metres
|
|
72
|
+
|
|
73
|
+
model = rpx.make_numpy_depth_model(predict_depth, name="my-depth")
|
|
74
|
+
result, report, paths = rpx.run_monocular_depth(
|
|
75
|
+
rpx.MonocularDepthRunConfig(
|
|
76
|
+
model=model,
|
|
77
|
+
split="easy",
|
|
78
|
+
repo_id="IRVLUTD/RPX",
|
|
79
|
+
revision=rpx.DEFAULT_REVISION,
|
|
80
|
+
device="cpu", # configure your callable's actual device yourself
|
|
81
|
+
output_dir="rpx_results/my-depth/easy",
|
|
82
|
+
)
|
|
83
|
+
)
|
|
84
|
+
print(result.aggregated)
|
|
85
|
+
print(paths["json"])
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
For a local dataset, supply `manifest_path="/data/manifests/monocular_depth/easy.json"`
|
|
89
|
+
to skip downloading. Manifests name a task and dataset root and list samples
|
|
90
|
+
with modality paths, scene, phase and difficulty. Local examples and all ten
|
|
91
|
+
public workflows are exercised in [tests/test_user_workflows.py](tests/test_user_workflows.py).
|
|
92
|
+
For relative depth, set `depth_output_kind="relative"` on the factory; never
|
|
93
|
+
label arbitrary relative values as metric depth.
|
|
94
|
+
|
|
95
|
+
| Task | Factory (under `rpx`) | Callable input → output | Public runner |
|
|
96
|
+
|---|---|---|---|
|
|
97
|
+
| Monocular depth | `make_numpy_depth_model` | RGB `(H,W,3)` → depth `(H,W)` | `run_monocular_depth` |
|
|
98
|
+
| Video depth | `make_numpy_video_depth_model` | RGB `(T,H,W,3)` → depth `(T,H,W)` | `run_video_depth` |
|
|
99
|
+
| Segmentation | `make_numpy_mask_model` | RGB → integer instance mask; 0 is background | `run_segmentation` |
|
|
100
|
+
| Detection | `make_numpy_detection_model` | RGB → boxes, scores, labels | `run_object_detection` |
|
|
101
|
+
| Open-vocabulary detection | `make_numpy_detection_model(..., task=rpx.TaskType.OPEN_VOCAB_DETECTION)` | RGB → boxes, scores, labels; bind your vocabulary in the callable | `run_open_vocab_detection` |
|
|
102
|
+
| Tracking | `make_numpy_tracking_model` | RGB → tracks with persistent IDs and boxes | `run_object_tracking` |
|
|
103
|
+
| Grounding | `make_numpy_grounding_model` | RGB, text → boxes and scores | `run_visual_grounding` |
|
|
104
|
+
| Relative pose | `make_numpy_pose_model` | RGB A, RGB B → rotation `(3,3)`, translation `(3,)` | `run_relative_pose` |
|
|
105
|
+
| Sparse depth | `make_numpy_sparse_depth_model` | RGB, pixel coordinates → depth values | `run_sparse_depth` |
|
|
106
|
+
| Keypoint matching | `make_numpy_keypoint_model` | RGB A, RGB B → points0, points1 | `run_keypoint_matching` |
|
|
107
|
+
|
|
108
|
+
Factory docstrings specify shapes and units. For custom preprocessing, batching
|
|
109
|
+
or framework-specific outputs, implement `BenchmarkModel` or compose
|
|
110
|
+
`BenchmarkableModel` with input/output adapters. The generic tracking API is a
|
|
111
|
+
frame-based contract; use the production tracking runner for the full clip-based
|
|
112
|
+
paper protocol and its initialization/scoring rules.
|
|
113
|
+
|
|
114
|
+
### Custom VQA model or API
|
|
115
|
+
|
|
116
|
+
VQA uses JSONL question manifests rather than the core task manifests. A custom
|
|
117
|
+
callable receives only ordered image paths and the public prompt; ground-truth
|
|
118
|
+
answers and boxes are kept inside the evaluator.
|
|
119
|
+
|
|
120
|
+
```python
|
|
121
|
+
from rpx_benchmark.vqa import evaluate_vqa
|
|
122
|
+
from my_model import predict_vqa
|
|
123
|
+
|
|
124
|
+
# predict_vqa(image_paths, prompt, max_new_tokens, output_kind) -> raw text
|
|
125
|
+
# image_paths: (target,) or (reference_crop, target), in that order.
|
|
126
|
+
report = evaluate_vqa(
|
|
127
|
+
"vqa_manifest.jsonl", predict_vqa,
|
|
128
|
+
model_name="my-vlm", model_revision="my-checkpoint-or-service-version",
|
|
129
|
+
image_cache=".cache/rpx-vqa", output_dir="rpx_results/my-vlm",
|
|
130
|
+
)
|
|
131
|
+
print(report["metrics"])
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Return one JSON object with `label` and `bbox` (XYXY coordinates normalized to
|
|
135
|
+
0–1000); binary questions require `yes` or `no`. Parsing failures and inference
|
|
136
|
+
errors remain in the denominator. Runs save raw outputs, errors, timing,
|
|
137
|
+
manifest hash, model revision and scored results. Use a fresh output directory.
|
|
138
|
+
The [VQA runtime README](../docker/vqa-smoke/README.md) explains manifest
|
|
139
|
+
preparation and the reference-model benchmark. The preserved Molmo adapter in
|
|
140
|
+
`scripts/vqa_models/molmo_backend.py` is optional and outside the frozen roster.
|
|
141
|
+
|
|
142
|
+
## Data and results
|
|
143
|
+
|
|
144
|
+
The Hub loader fetches only required modalities and reuses its cache. Pin a
|
|
145
|
+
dataset commit for comparable runs; do not mix results from moving revisions.
|
|
146
|
+
The [data README](data/README.md) identifies the local canonical splits and
|
|
147
|
+
metadata. Dataset publishing tools are documented separately in
|
|
148
|
+
[rpx_benchmark/dataset_hub/README.md](rpx_benchmark/dataset_hub/README.md).
|
|
149
|
+
|
|
150
|
+
Generic frame runs write `result.json`, `summary.md`, `cells.parquet` and
|
|
151
|
+
`per_sample_metrics.parquet`. Video runs write clip/cell results. Hardware,
|
|
152
|
+
precision and batch size belong in each cell; unavailable measurements stay
|
|
153
|
+
unavailable. Custom API wall time includes transport and is not a GPU-only
|
|
154
|
+
latency measurement. Production runners add prediction caches, protocol
|
|
155
|
+
metrics and provenance records.
|
|
156
|
+
|
|
157
|
+
## Testing
|
|
158
|
+
|
|
159
|
+
From `benchmark/`, in a clean virtual environment:
|
|
160
|
+
|
|
161
|
+
```bash
|
|
162
|
+
python -m pip install -e '.[dev,hub,schemas,hf-datasets,analysis,ar-pose-audit]' \
|
|
163
|
+
imageio imageio-ffmpeg av transformers build
|
|
164
|
+
python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
|
|
165
|
+
python -m pip install --no-deps 'git+https://github.com/JonathonLuiten/TrackEval.git@12c8791b303e0a0b50f753af204249e622d0281a'
|
|
166
|
+
pytest tests -q --cov=rpx_benchmark --cov-report=term-missing
|
|
167
|
+
pytest ../data/mask_annotation/visual_grounding_gt/vqa_gt/tests -q
|
|
168
|
+
ruff check rpx_benchmark tests scripts
|
|
169
|
+
mypy rpx_benchmark
|
|
170
|
+
python -m build
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
Tests cover task contracts, local datasets, public custom-model workflows,
|
|
174
|
+
metrics, reports, download behavior, model-call signatures and VQA parsing.
|
|
175
|
+
They do not download model checkpoints. Run the linked CUDA inference gates
|
|
176
|
+
on the target machine to validate real models, available memory and dataset
|
|
177
|
+
access. Sensor capture and annotation UI checks require their own hardware.
|