Add files using upload-large-folder tool
Browse files- .pytest_cache/.gitignore +2 -0
- .pytest_cache/CACHEDIR.TAG +4 -0
- .pytest_cache/README.md +8 -0
- .pytest_cache/v/cache/lastfailed +54 -0
- .pytest_cache/v/cache/nodeids +334 -0
- README.md +51 -232
- backup.py +0 -6
- encoder/config.py +33 -37
- tests/test_F/test_F.py +1 -1
- tests/test_F/test_run.py +4 -24
- tests/test_analysis/test_analysis.py +0 -4
- tests/test_encoder/test_config.py +14 -25
- tests/test_encoder/test_render.py +1 -1
- tests/test_inference/test_inference.py +2 -2
- tests/test_inference/test_init.py +2 -2
- tests/test_symbolic/test_run.py +12 -3
.pytest_cache/.gitignore
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Created by pytest automatically.
|
| 2 |
+
*
|
.pytest_cache/CACHEDIR.TAG
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Signature: 8a477f597d28d172789f06886806bc55
|
| 2 |
+
# This file is a cache directory tag created by pytest.
|
| 3 |
+
# For information about cache directory tags, see:
|
| 4 |
+
# https://bford.info/cachedir/spec.html
|
.pytest_cache/README.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# pytest cache directory #
|
| 2 |
+
|
| 3 |
+
This directory contains data from the pytest's cache plugin,
|
| 4 |
+
which provides the `--lf` and `--ff` options, as well as the `cache` fixture.
|
| 5 |
+
|
| 6 |
+
**Do not** commit this to version control.
|
| 7 |
+
|
| 8 |
+
See [the docs](https://docs.pytest.org/en/stable/how-to/cache.html) for more information.
|
.pytest_cache/v/cache/lastfailed
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tests/test_encoder/test_geometric.py::test_compact_oriented_box_uses_accumulated_instance_points": true,
|
| 3 |
+
"tests/test_encoder/test_geometric.py::test_compact_floor_boundaries_preserve_disconnected_regions": true,
|
| 4 |
+
"tests/test_encoder/test_geometric.py::test_compact_spatial_code_suppresses_co_visible_duplicate_tracks": true,
|
| 5 |
+
"tests/test_encoder/test_geometric.py::test_compact_oriented_box_combines_observation_extents_by_consensus": true,
|
| 6 |
+
"tests/test_encoder/test_geometric.py::test_compact_instances_keep_peak_co_visible_hypotheses_by_evidence": true,
|
| 7 |
+
"tests/test_encoder/test_geometric.py::test_compact_oriented_box_rejects_one_inconsistent_observation": true,
|
| 8 |
+
"tests/test_encoder/test_geometric.py::test_spatial_code_matches_reference_schema": true,
|
| 9 |
+
"tests/test_encoder/test_geometric.py::test_compact_spatial_code_exposes_only_reusable_primitives": true,
|
| 10 |
+
"tests/test_encoder/test_ground_truth.py::test_build_compact_ground_truth_spatial_code_uses_ranks_and_nulls_unranked": true,
|
| 11 |
+
"tests/test_encoder/test_ground_truth.py::test_build_explicit_ground_truth_spatial_code_is_derived_from_compact": true,
|
| 12 |
+
"tests/test_B/test_B.py::test_spatial_code_formats_match_the_two_on_disk_schemas": true,
|
| 13 |
+
"tests/test_B/test_init.py::test_spatial_code_formats_match_the_two_on_disk_schemas": true,
|
| 14 |
+
"tests/test_B/test_init.py::test_results_dir_defaults_under_workspace_results": true,
|
| 15 |
+
"tests/test_B/test_prompts.py::test_na_question_prompt_embeds_the_spatial_code_as_text_and_a_post_prompt": true,
|
| 16 |
+
"tests/test_B/test_prompts.py::test_every_na_question_type_builds[object_abs_distance]": true,
|
| 17 |
+
"tests/test_B/test_prompts.py::test_every_na_question_type_builds[object_counting]": true,
|
| 18 |
+
"tests/test_B/test_prompts.py::test_every_na_question_type_builds[object_size_estimation]": true,
|
| 19 |
+
"tests/test_B/test_prompts.py::test_every_na_question_type_builds[room_size_estimation]": true,
|
| 20 |
+
"tests/test_B/test_prompts.py::test_every_mca_question_type_builds[object_rel_direction_easy]": true,
|
| 21 |
+
"tests/test_B/test_prompts.py::test_every_mca_question_type_builds[object_rel_direction_medium]": true,
|
| 22 |
+
"tests/test_B/test_prompts.py::test_every_mca_question_type_builds[object_rel_direction_hard]": true,
|
| 23 |
+
"tests/test_B/test_prompts.py::test_every_mca_question_type_builds[object_rel_distance]": true,
|
| 24 |
+
"tests/test_B/test_prompts.py::test_every_mca_question_type_builds[route_planning]": true,
|
| 25 |
+
"tests/test_B/test_prompts.py::test_every_mca_question_type_builds[obj_appearance_order]": true,
|
| 26 |
+
"tests/test_B/test_prompts.py::test_default_arguments_reproduce_the_standard_prompt_byte_for_byte": true,
|
| 27 |
+
"tests/test_B/test_prompts.py::test_yaml_serialization_renders_the_identical_dict": true,
|
| 28 |
+
"tests/test_B/test_prompts.py::test_yaml_arm_context_line_does_not_claim_json": true,
|
| 29 |
+
"tests/test_B/test_prompts.py::test_paraphrase_context_line_swaps_only_the_first_line": true,
|
| 30 |
+
"tests/test_B/test_prompts.py::test_unknown_serialization_rejected": true,
|
| 31 |
+
"tests/test_B/test_run.py::test_build_record_preserves_every_field_untruncated": true,
|
| 32 |
+
"tests/test_B/test_run.py::test_run_strip_schema_legend_removes_only_the_legend": true,
|
| 33 |
+
"tests/test_C/test_init.py::test_results_dir_defaults_under_workspace_results": true,
|
| 34 |
+
"tests/test_C/test_launch.py::test_launch_routes_overlay_to_overlay_result_tree": true,
|
| 35 |
+
"tests/test_C/test_prompts.py::test_pre_prompt_mentions_both_frames_and_spatial_code": true,
|
| 36 |
+
"tests/test_C/test_prompts.py::test_na_question_prompt_layout_is_context_then_code_then_question_then_post_prompt": true,
|
| 37 |
+
"tests/test_C/test_prompts.py::test_mca_question_prompt_includes_options_and_post_prompt": true,
|
| 38 |
+
"tests/test_C/test_prompts.py::test_every_na_question_type_builds[object_abs_distance]": true,
|
| 39 |
+
"tests/test_C/test_prompts.py::test_every_na_question_type_builds[object_counting]": true,
|
| 40 |
+
"tests/test_C/test_prompts.py::test_every_na_question_type_builds[object_size_estimation]": true,
|
| 41 |
+
"tests/test_C/test_prompts.py::test_every_na_question_type_builds[room_size_estimation]": true,
|
| 42 |
+
"tests/test_C/test_prompts.py::test_every_mca_question_type_builds[object_rel_direction_easy]": true,
|
| 43 |
+
"tests/test_C/test_prompts.py::test_every_mca_question_type_builds[object_rel_direction_medium]": true,
|
| 44 |
+
"tests/test_C/test_prompts.py::test_every_mca_question_type_builds[object_rel_direction_hard]": true,
|
| 45 |
+
"tests/test_C/test_prompts.py::test_every_mca_question_type_builds[object_rel_distance]": true,
|
| 46 |
+
"tests/test_C/test_prompts.py::test_every_mca_question_type_builds[route_planning]": true,
|
| 47 |
+
"tests/test_C/test_prompts.py::test_every_mca_question_type_builds[obj_appearance_order]": true,
|
| 48 |
+
"tests/test_C/test_run.py::test_build_record_carries_both_frame_and_spatial_code_provenance": true,
|
| 49 |
+
"tests/test_C/test_sweep.py::test_sweep_forwards_overlay_to_each_launch": true,
|
| 50 |
+
"tests/test_E/test_sweep.py::test_sweep_defaults_to_base_protocol": true,
|
| 51 |
+
"tests/test_A/test_init.py::test_results_dir_defaults_under_workspace_results": true,
|
| 52 |
+
"tests/test_A/test_prompts.py::test_na_question_prompt_matches_vsibench_protocol": true,
|
| 53 |
+
"tests/test_A/test_prompts.py::test_mca_question_prompt_matches_vsibench_protocol": true
|
| 54 |
+
}
|
.pytest_cache/v/cache/nodeids
ADDED
|
@@ -0,0 +1,334 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
"tests/test_A/test_A.py::test_base_mode_keeps_budgets_unset_without_budget_flags",
|
| 3 |
+
"tests/test_A/test_A.py::test_base_mode_rejects_thinking_budget_flags[force_budget]",
|
| 4 |
+
"tests/test_A/test_A.py::test_base_mode_rejects_thinking_budget_flags[reasoning_budget]",
|
| 5 |
+
"tests/test_A/test_A.py::test_default_frame_selection_is_a_valid_selection",
|
| 6 |
+
"tests/test_A/test_A.py::test_frame_selections_match_inference_vocabulary",
|
| 7 |
+
"tests/test_A/test_A.py::test_generation_protocol_matches_vsibench_yaml",
|
| 8 |
+
"tests/test_A/test_A.py::test_model_paths_cover_every_registered_model",
|
| 9 |
+
"tests/test_A/test_A.py::test_results_dir_defaults_under_root_results",
|
| 10 |
+
"tests/test_A/test_A.py::test_thinking_generation_protocol",
|
| 11 |
+
"tests/test_A/test_A.py::test_thinking_mode_resolves_default_budgets",
|
| 12 |
+
"tests/test_A/test_frames.py::test_sample_frames_derives_indices_from_real_fps",
|
| 13 |
+
"tests/test_A/test_frames.py::test_sample_frames_rejects_missing_video",
|
| 14 |
+
"tests/test_A/test_frames.py::test_sample_frames_rejects_nonpositive_frame_count",
|
| 15 |
+
"tests/test_A/test_frames.py::test_sample_frames_rejects_unknown_selection",
|
| 16 |
+
"tests/test_A/test_frames.py::test_sample_frames_returns_pil_images_in_order",
|
| 17 |
+
"tests/test_A/test_init.py::test_default_frame_selection_is_a_valid_selection",
|
| 18 |
+
"tests/test_A/test_init.py::test_every_known_question_type_has_one_policy_group",
|
| 19 |
+
"tests/test_A/test_init.py::test_frame_selections_match_inference_vocabulary",
|
| 20 |
+
"tests/test_A/test_init.py::test_generation_protocol_matches_vsibench_yaml",
|
| 21 |
+
"tests/test_A/test_init.py::test_model_paths_cover_every_registered_model",
|
| 22 |
+
"tests/test_A/test_init.py::test_question_protocol_policy_is_hardcoded_by_group",
|
| 23 |
+
"tests/test_A/test_init.py::test_results_dir_defaults_under_workspace_results",
|
| 24 |
+
"tests/test_A/test_init.py::test_thinking_generation_protocol",
|
| 25 |
+
"tests/test_A/test_launch.py::test_launch_rebuild_forces_pending_even_when_answered",
|
| 26 |
+
"tests/test_A/test_launch.py::test_launch_rejects_scene_with_no_questions",
|
| 27 |
+
"tests/test_A/test_launch.py::test_launch_skips_scene_already_fully_answered",
|
| 28 |
+
"tests/test_A/test_launch.py::test_launcher_imports",
|
| 29 |
+
"tests/test_A/test_launch.py::test_scenes_dedups_and_preserves_order",
|
| 30 |
+
"tests/test_A/test_models.py::test_adapter_answer_before_load_model_raises",
|
| 31 |
+
"tests/test_A/test_models.py::test_adapter_answer_extended_before_load_model_raises",
|
| 32 |
+
"tests/test_A/test_models.py::test_all_three_models_are_registered",
|
| 33 |
+
"tests/test_A/test_models.py::test_every_adapter_implements_answer_extended",
|
| 34 |
+
"tests/test_A/test_models.py::test_get_adapter_binds_the_correct_checkpoint_path",
|
| 35 |
+
"tests/test_A/test_models.py::test_get_adapter_rejects_unknown_model",
|
| 36 |
+
"tests/test_A/test_models.py::test_get_adapter_returns_the_right_class_per_model",
|
| 37 |
+
"tests/test_A/test_models.py::test_internvl_adapter_disables_per_frame_tiling",
|
| 38 |
+
"tests/test_A/test_models.py::test_native_video_content_uses_one_video_item",
|
| 39 |
+
"tests/test_A/test_models.py::test_numbered_content_handles_zero_frames",
|
| 40 |
+
"tests/test_A/test_models.py::test_numbered_content_labels_every_frame_in_order",
|
| 41 |
+
"tests/test_A/test_models.py::test_unload_clears_model_and_processor",
|
| 42 |
+
"tests/test_A/test_prompts.py::test_every_mca_question_type_builds_with_options[obj_appearance_order]",
|
| 43 |
+
"tests/test_A/test_prompts.py::test_every_mca_question_type_builds_with_options[object_rel_direction_easy]",
|
| 44 |
+
"tests/test_A/test_prompts.py::test_every_mca_question_type_builds_with_options[object_rel_direction_hard]",
|
| 45 |
+
"tests/test_A/test_prompts.py::test_every_mca_question_type_builds_with_options[object_rel_direction_medium]",
|
| 46 |
+
"tests/test_A/test_prompts.py::test_every_mca_question_type_builds_with_options[object_rel_distance]",
|
| 47 |
+
"tests/test_A/test_prompts.py::test_every_mca_question_type_builds_with_options[route_planning]",
|
| 48 |
+
"tests/test_A/test_prompts.py::test_every_na_question_type_builds_without_options[object_abs_distance]",
|
| 49 |
+
"tests/test_A/test_prompts.py::test_every_na_question_type_builds_without_options[object_counting]",
|
| 50 |
+
"tests/test_A/test_prompts.py::test_every_na_question_type_builds_without_options[object_size_estimation]",
|
| 51 |
+
"tests/test_A/test_prompts.py::test_every_na_question_type_builds_without_options[room_size_estimation]",
|
| 52 |
+
"tests/test_A/test_prompts.py::test_mca_question_prompt_matches_vsibench_protocol",
|
| 53 |
+
"tests/test_A/test_prompts.py::test_mca_question_requires_options",
|
| 54 |
+
"tests/test_A/test_prompts.py::test_na_question_prompt_matches_vsibench_protocol",
|
| 55 |
+
"tests/test_A/test_prompts.py::test_unknown_question_type_rejected",
|
| 56 |
+
"tests/test_A/test_prompts.py::test_video_prompt_names_native_video",
|
| 57 |
+
"tests/test_A/test_run.py::test_build_record_carries_reasoning_fields_when_extended",
|
| 58 |
+
"tests/test_A/test_run.py::test_build_record_defaults_reasoning_fields_when_not_extended",
|
| 59 |
+
"tests/test_A/test_run.py::test_build_record_preserves_every_field_untruncated",
|
| 60 |
+
"tests/test_A/test_run.py::test_load_questions_filters_by_scene",
|
| 61 |
+
"tests/test_A/test_run.py::test_load_questions_reads_every_row",
|
| 62 |
+
"tests/test_A/test_run.py::test_load_questions_respects_limit",
|
| 63 |
+
"tests/test_A/test_run.py::test_results_dir_for_honors_explicit_override",
|
| 64 |
+
"tests/test_A/test_run.py::test_results_dir_for_isolates_the_two_protocols",
|
| 65 |
+
"tests/test_A/test_run.py::test_results_dir_for_keeps_protocols_together",
|
| 66 |
+
"tests/test_A/test_run.py::test_results_dir_for_matches_established_dimension_nesting",
|
| 67 |
+
"tests/test_A/test_run.py::test_scalar_score_rejects_unknown_question_type",
|
| 68 |
+
"tests/test_A/test_run.py::test_scalar_score_returns_metric_name_and_value",
|
| 69 |
+
"tests/test_A/test_run.py::test_video_record_has_no_frame_count_in_condition",
|
| 70 |
+
"tests/test_A/test_run.py::test_video_results_use_video_branch",
|
| 71 |
+
"tests/test_A/test_run.py::test_write_question_result_writes_one_json_file_per_question",
|
| 72 |
+
"tests/test_A/test_sweep.py::test_build_plan_covers_every_combination",
|
| 73 |
+
"tests/test_A/test_sweep.py::test_build_plan_orders_by_frame_count_first",
|
| 74 |
+
"tests/test_A/test_sweep.py::test_build_plan_with_all_registered_models",
|
| 75 |
+
"tests/test_A/test_sweep.py::test_parse_csv_choice_expands_all",
|
| 76 |
+
"tests/test_A/test_sweep.py::test_parse_csv_choice_rejects_empty",
|
| 77 |
+
"tests/test_A/test_sweep.py::test_parse_csv_choice_rejects_unknown_value",
|
| 78 |
+
"tests/test_A/test_sweep.py::test_parse_csv_choice_splits_and_dedups",
|
| 79 |
+
"tests/test_A/test_sweep.py::test_parse_frame_counts_rejects_non_integer",
|
| 80 |
+
"tests/test_A/test_sweep.py::test_parse_frame_counts_rejects_nonpositive",
|
| 81 |
+
"tests/test_A/test_sweep.py::test_parse_frame_counts_splits_and_dedups",
|
| 82 |
+
"tests/test_B/test_B.py::test_depth_and_tracking_reuse_encoder_config_vocabulary",
|
| 83 |
+
"tests/test_B/test_B.py::test_input_selections_match_harness_a_vocabulary",
|
| 84 |
+
"tests/test_B/test_B.py::test_results_dir_defaults_under_root_results",
|
| 85 |
+
"tests/test_B/test_B.py::test_reuses_harness_a_model_paths_and_generation_protocol",
|
| 86 |
+
"tests/test_B/test_B.py::test_spatial_code_formats_is_explicit_only",
|
| 87 |
+
"tests/test_B/test_B.py::test_spatial_code_formats_match_the_two_on_disk_schemas",
|
| 88 |
+
"tests/test_B/test_init.py::test_depth_and_tracking_reuse_encoder_config_vocabulary",
|
| 89 |
+
"tests/test_B/test_init.py::test_input_selections_match_harness_a_vocabulary",
|
| 90 |
+
"tests/test_B/test_init.py::test_results_dir_defaults_under_workspace_results",
|
| 91 |
+
"tests/test_B/test_init.py::test_reuses_harness_a_model_paths_and_generation_protocol",
|
| 92 |
+
"tests/test_B/test_init.py::test_spatial_code_formats_is_explicit_only",
|
| 93 |
+
"tests/test_B/test_init.py::test_spatial_code_formats_match_the_two_on_disk_schemas",
|
| 94 |
+
"tests/test_B/test_launch.py::test_launch_rebuild_forces_pending_even_when_answered",
|
| 95 |
+
"tests/test_B/test_launch.py::test_launch_rejects_question_id_filter_that_matches_nothing",
|
| 96 |
+
"tests/test_B/test_launch.py::test_launch_skips_scene_already_fully_answered",
|
| 97 |
+
"tests/test_B/test_launch.py::test_launcher_imports",
|
| 98 |
+
"tests/test_B/test_prompts.py::test_default_arguments_reproduce_the_standard_prompt_byte_for_byte",
|
| 99 |
+
"tests/test_B/test_prompts.py::test_every_mca_question_type_builds[obj_appearance_order]",
|
| 100 |
+
"tests/test_B/test_prompts.py::test_every_mca_question_type_builds[object_rel_direction_easy]",
|
| 101 |
+
"tests/test_B/test_prompts.py::test_every_mca_question_type_builds[object_rel_direction_hard]",
|
| 102 |
+
"tests/test_B/test_prompts.py::test_every_mca_question_type_builds[object_rel_direction_medium]",
|
| 103 |
+
"tests/test_B/test_prompts.py::test_every_mca_question_type_builds[object_rel_distance]",
|
| 104 |
+
"tests/test_B/test_prompts.py::test_every_mca_question_type_builds[route_planning]",
|
| 105 |
+
"tests/test_B/test_prompts.py::test_every_na_question_type_builds[object_abs_distance]",
|
| 106 |
+
"tests/test_B/test_prompts.py::test_every_na_question_type_builds[object_counting]",
|
| 107 |
+
"tests/test_B/test_prompts.py::test_every_na_question_type_builds[object_size_estimation]",
|
| 108 |
+
"tests/test_B/test_prompts.py::test_every_na_question_type_builds[room_size_estimation]",
|
| 109 |
+
"tests/test_B/test_prompts.py::test_mca_question_prompt_includes_options_and_matches_harness_a_post_prompt",
|
| 110 |
+
"tests/test_B/test_prompts.py::test_mca_question_requires_options",
|
| 111 |
+
"tests/test_B/test_prompts.py::test_na_question_prompt_embeds_the_spatial_code_as_text_and_a_post_prompt",
|
| 112 |
+
"tests/test_B/test_prompts.py::test_no_frames_language_in_pre_prompt",
|
| 113 |
+
"tests/test_B/test_prompts.py::test_paraphrase_context_line_swaps_only_the_first_line",
|
| 114 |
+
"tests/test_B/test_prompts.py::test_unknown_question_type_rejected",
|
| 115 |
+
"tests/test_B/test_prompts.py::test_unknown_serialization_rejected",
|
| 116 |
+
"tests/test_B/test_prompts.py::test_yaml_arm_context_line_does_not_claim_json",
|
| 117 |
+
"tests/test_B/test_prompts.py::test_yaml_serialization_renders_the_identical_dict",
|
| 118 |
+
"tests/test_B/test_run.py::test_build_record_carries_reasoning_fields_when_forced",
|
| 119 |
+
"tests/test_B/test_run.py::test_build_record_preserves_every_field_untruncated",
|
| 120 |
+
"tests/test_B/test_run.py::test_results_dir_for_honors_explicit_override",
|
| 121 |
+
"tests/test_B/test_run.py::test_results_dir_for_isolates_the_two_protocols",
|
| 122 |
+
"tests/test_B/test_run.py::test_results_dir_for_keeps_protocols_together",
|
| 123 |
+
"tests/test_B/test_run.py::test_results_dir_for_matches_established_dimension_nesting",
|
| 124 |
+
"tests/test_B/test_run.py::test_run_strip_schema_legend_removes_only_the_legend",
|
| 125 |
+
"tests/test_B/test_run.py::test_video_record_has_no_frame_count_in_condition",
|
| 126 |
+
"tests/test_B/test_run.py::test_video_results_use_video_branch",
|
| 127 |
+
"tests/test_B/test_run.py::test_write_question_result_writes_one_json_file_per_question",
|
| 128 |
+
"tests/test_B/test_spatial_codes.py::test_load_spatial_code_raises_clearly_when_missing",
|
| 129 |
+
"tests/test_B/test_spatial_codes.py::test_load_spatial_code_rejects_unknown_format",
|
| 130 |
+
"tests/test_B/test_spatial_codes.py::test_load_spatial_code_returns_dict_and_path",
|
| 131 |
+
"tests/test_B/test_spatial_codes.py::test_spatial_code_path_uses_tracking_frames_hierarchy",
|
| 132 |
+
"tests/test_B/test_sweep.py::test_build_plan_covers_every_combination",
|
| 133 |
+
"tests/test_B/test_sweep.py::test_build_plan_orders_by_frame_count_first",
|
| 134 |
+
"tests/test_B/test_sweep.py::test_build_plan_sweeps_depth_and_tracking_too",
|
| 135 |
+
"tests/test_B/test_sweep.py::test_build_plan_with_all_registered_models",
|
| 136 |
+
"tests/test_B/test_sweep.py::test_sweep_parser_rejects_unknown_depth",
|
| 137 |
+
"tests/test_B/test_sweep.py::test_sweep_parser_rejects_unknown_spatial_code_format",
|
| 138 |
+
"tests/test_B/test_sweep.py::test_sweep_parser_rejects_unknown_tracking",
|
| 139 |
+
"tests/test_C/test_C.py::test_depth_and_tracking_reuse_encoder_config_vocabulary",
|
| 140 |
+
"tests/test_C/test_C.py::test_input_selections_are_one_shared_vocabulary_with_a_and_b",
|
| 141 |
+
"tests/test_C/test_C.py::test_results_dir_defaults_under_root_results",
|
| 142 |
+
"tests/test_C/test_C.py::test_reuses_harness_a_model_paths_and_generation_protocol",
|
| 143 |
+
"tests/test_C/test_init.py::test_depth_and_tracking_reuse_encoder_config_vocabulary",
|
| 144 |
+
"tests/test_C/test_init.py::test_input_selections_are_one_shared_vocabulary_with_a_and_b",
|
| 145 |
+
"tests/test_C/test_init.py::test_results_dir_defaults_under_workspace_results",
|
| 146 |
+
"tests/test_C/test_init.py::test_reuses_harness_a_model_paths_and_generation_protocol",
|
| 147 |
+
"tests/test_C/test_launch.py::test_launch_rebuild_forces_pending_even_when_answered",
|
| 148 |
+
"tests/test_C/test_launch.py::test_launch_routes_overlay_to_overlay_result_tree",
|
| 149 |
+
"tests/test_C/test_launch.py::test_launch_skips_scene_already_fully_answered",
|
| 150 |
+
"tests/test_C/test_launch.py::test_launcher_imports",
|
| 151 |
+
"tests/test_C/test_overlay.py::test_instance_ids_adds_stable_one_based_labels_without_mutating_input",
|
| 152 |
+
"tests/test_C/test_overlay.py::test_label_positions_parse_meter_strings_in_code_order",
|
| 153 |
+
"tests/test_C/test_overlay.py::test_load_cached_frames_requires_complete_png_set_and_labels",
|
| 154 |
+
"tests/test_C/test_overlay.py::test_load_or_create_overlay_code_reuses_existing_file",
|
| 155 |
+
"tests/test_C/test_overlay.py::test_load_or_create_overlay_code_saves_missing_file",
|
| 156 |
+
"tests/test_C/test_overlay.py::test_overlay_spatial_code_path_lives_under_overlay_root",
|
| 157 |
+
"tests/test_C/test_overlay.py::test_save_cached_frames_writes_pngs_and_labels",
|
| 158 |
+
"tests/test_C/test_overlay.py::test_stamp_frames_serves_complete_cache_without_loading_dependencies",
|
| 159 |
+
"tests/test_C/test_overlay.py::test_stamp_frames_uses_raw_sam3_boxes_and_does_not_mutate_inputs",
|
| 160 |
+
"tests/test_C/test_overlay_launch.py::test_available_cpu_count_honors_positive_environment",
|
| 161 |
+
"tests/test_C/test_overlay_launch.py::test_has_dependencies_requires_spatial_code_and_sam3_cache",
|
| 162 |
+
"tests/test_C/test_overlay_launch.py::test_has_dependencies_treats_missing_code_as_ineligible",
|
| 163 |
+
"tests/test_C/test_overlay_launch.py::test_launch_does_not_skip_frames_cache_when_overlay_code_is_missing",
|
| 164 |
+
"tests/test_C/test_overlay_launch.py::test_launch_skips_missing_and_already_cached_without_pool",
|
| 165 |
+
"tests/test_C/test_prompts.py::test_every_mca_question_type_builds[obj_appearance_order]",
|
| 166 |
+
"tests/test_C/test_prompts.py::test_every_mca_question_type_builds[object_rel_direction_easy]",
|
| 167 |
+
"tests/test_C/test_prompts.py::test_every_mca_question_type_builds[object_rel_direction_hard]",
|
| 168 |
+
"tests/test_C/test_prompts.py::test_every_mca_question_type_builds[object_rel_direction_medium]",
|
| 169 |
+
"tests/test_C/test_prompts.py::test_every_mca_question_type_builds[object_rel_distance]",
|
| 170 |
+
"tests/test_C/test_prompts.py::test_every_mca_question_type_builds[route_planning]",
|
| 171 |
+
"tests/test_C/test_prompts.py::test_every_na_question_type_builds[object_abs_distance]",
|
| 172 |
+
"tests/test_C/test_prompts.py::test_every_na_question_type_builds[object_counting]",
|
| 173 |
+
"tests/test_C/test_prompts.py::test_every_na_question_type_builds[object_size_estimation]",
|
| 174 |
+
"tests/test_C/test_prompts.py::test_every_na_question_type_builds[room_size_estimation]",
|
| 175 |
+
"tests/test_C/test_prompts.py::test_mca_question_prompt_includes_options_and_post_prompt",
|
| 176 |
+
"tests/test_C/test_prompts.py::test_mca_question_requires_options",
|
| 177 |
+
"tests/test_C/test_prompts.py::test_na_question_prompt_layout_is_context_then_code_then_question_then_post_prompt",
|
| 178 |
+
"tests/test_C/test_prompts.py::test_pre_prompt_mentions_both_frames_and_spatial_code",
|
| 179 |
+
"tests/test_C/test_prompts.py::test_unknown_question_type_rejected",
|
| 180 |
+
"tests/test_C/test_prompts.py::test_video_prompt_names_native_video",
|
| 181 |
+
"tests/test_C/test_run.py::test_build_record_carries_both_frame_and_spatial_code_provenance",
|
| 182 |
+
"tests/test_C/test_run.py::test_build_record_carries_reasoning_fields_when_forced",
|
| 183 |
+
"tests/test_C/test_run.py::test_results_dir_for_honors_explicit_override",
|
| 184 |
+
"tests/test_C/test_run.py::test_results_dir_for_matches_established_dimension_nesting",
|
| 185 |
+
"tests/test_C/test_run.py::test_results_dir_for_places_overlay_under_C_results",
|
| 186 |
+
"tests/test_C/test_run.py::test_video_record_has_no_frame_count_in_condition",
|
| 187 |
+
"tests/test_C/test_run.py::test_video_results_use_video_branch",
|
| 188 |
+
"tests/test_C/test_run.py::test_write_question_result_routes_overlay_default_to_overlay_tree",
|
| 189 |
+
"tests/test_C/test_run.py::test_write_question_result_writes_one_json_file_per_question",
|
| 190 |
+
"tests/test_C/test_sweep.py::test_build_plan_covers_every_combination",
|
| 191 |
+
"tests/test_C/test_sweep.py::test_build_plan_orders_by_frame_count_first",
|
| 192 |
+
"tests/test_C/test_sweep.py::test_build_plan_sweeps_depth_and_tracking_too",
|
| 193 |
+
"tests/test_C/test_sweep.py::test_build_plan_with_all_registered_models",
|
| 194 |
+
"tests/test_C/test_sweep.py::test_sweep_forwards_overlay_to_each_launch",
|
| 195 |
+
"tests/test_C/test_sweep.py::test_sweep_parser_rejects_unknown_depth",
|
| 196 |
+
"tests/test_C/test_sweep.py::test_sweep_parser_rejects_unknown_spatial_code_format",
|
| 197 |
+
"tests/test_C/test_sweep.py::test_sweep_parser_rejects_unknown_tracking",
|
| 198 |
+
"tests/test_E/test_launch.py::test_launch_protocols_share_result_root",
|
| 199 |
+
"tests/test_E/test_launch.py::test_launch_protocols_use_separate_result_roots",
|
| 200 |
+
"tests/test_E/test_launch.py::test_launch_rebuild_forces_pending_even_when_answered",
|
| 201 |
+
"tests/test_E/test_launch.py::test_launch_skips_scene_already_fully_answered",
|
| 202 |
+
"tests/test_E/test_launch.py::test_launcher_imports",
|
| 203 |
+
"tests/test_E/test_run.py::test_build_record_has_no_scene_input_provenance",
|
| 204 |
+
"tests/test_E/test_run.py::test_results_dir_for_honors_explicit_override",
|
| 205 |
+
"tests/test_E/test_run.py::test_results_dir_for_keeps_protocols_together",
|
| 206 |
+
"tests/test_E/test_run.py::test_results_dir_for_matches_model_only",
|
| 207 |
+
"tests/test_E/test_run.py::test_write_question_result_writes_one_json_file_per_question",
|
| 208 |
+
"tests/test_E/test_sweep.py::test_sweep_defaults_to_base_protocol",
|
| 209 |
+
"tests/test_E/test_sweep.py::test_sweep_imports",
|
| 210 |
+
"tests/test_E/test_sweep.py::test_sweep_parser_rejects_unknown_model",
|
| 211 |
+
"tests/test_E/test_sweep.py::test_sweep_runs_every_model_through_launch",
|
| 212 |
+
"tests/test_E/test_sweep.py::test_sweep_uses_the_shared_question_policy_without_a_global_protocol",
|
| 213 |
+
"tests/test_F/test_F.py::test_results_dir_can_be_overridden_by_environment",
|
| 214 |
+
"tests/test_F/test_F.py::test_sources_and_default_are_declared",
|
| 215 |
+
"tests/test_F/test_launch.py::test_launch_entrypoint_exposes_run_main",
|
| 216 |
+
"tests/test_F/test_run.py::test_perceived_layout_contains_every_input_axis",
|
| 217 |
+
"tests/test_F/test_run.py::test_results_default_under_root",
|
| 218 |
+
"tests/test_F/test_run.py::test_video_results_use_video_branch",
|
| 219 |
+
"tests/test_F/test_sweep.py::test_csv_expands_all_dedups_and_rejects_unknowns",
|
| 220 |
+
"tests/test_analysis/test_A_reports.py::TestAReports::test_A_report_and_controlled_frame_comparison",
|
| 221 |
+
"tests/test_analysis/test_B_reports.py::TestBReports::test_B_report_contains_spatial_cell",
|
| 222 |
+
"tests/test_analysis/test_C_reports.py::TestCReports::test_C_report_is_exported",
|
| 223 |
+
"tests/test_analysis/test_F_reports.py::TestFReports::test_F_legacy_and_future_perceived_layouts",
|
| 224 |
+
"tests/test_analysis/test_analysis.py::TestAnalysisDirectory::test_arbitrary_subset_exports_letter_and_combined_files",
|
| 225 |
+
"tests/test_analysis/test_letters_reports.py::TestLettersReports::test_arbitrary_subset_and_combined_name",
|
| 226 |
+
"tests/test_analysis/test_letters_reports.py::TestLettersReports::test_folded_statistical_and_solver_helpers",
|
| 227 |
+
"tests/test_analysis/test_letters_reports.py::TestLettersReports::test_manifest_generated_at_is_deterministic_by_default",
|
| 228 |
+
"tests/test_analysis/test_letters_reports.py::TestLettersReports::test_pair_restriction",
|
| 229 |
+
"tests/test_backup.py::test_backup_dry_run_skips_empty_targets_and_never_imports_hub",
|
| 230 |
+
"tests/test_backup.py::test_local_paths_keep_results_under_results_host",
|
| 231 |
+
"tests/test_backup.py::test_resolve_targets_expands_all_without_uploading_unknowns",
|
| 232 |
+
"tests/test_backup.py::test_target_root_rejects_mixed_workspace_and_results_roots",
|
| 233 |
+
"tests/test_encoder/test_adapters.py::test_adapt_sam3_depth_anything_3_decodes_masks_and_backprojects",
|
| 234 |
+
"tests/test_encoder/test_adapters.py::test_adapt_segvggt_reads_flat_npz",
|
| 235 |
+
"tests/test_encoder/test_adapters.py::test_adapt_segvggt_rejects_missing_npz_fields",
|
| 236 |
+
"tests/test_encoder/test_adapters.py::test_adapt_segvggt_requires_existing_cache",
|
| 237 |
+
"tests/test_encoder/test_adapters.py::test_adapter_owned_raw_cache_locations",
|
| 238 |
+
"tests/test_encoder/test_adapters.py::test_adapters_default_to_root_data_caches",
|
| 239 |
+
"tests/test_encoder/test_adapters.py::test_backproject_resizes_sam3_mask_to_da3_depth_shape",
|
| 240 |
+
"tests/test_encoder/test_adapters.py::test_fusion_adapter_resolves_two_native_model_directories",
|
| 241 |
+
"tests/test_encoder/test_adapters.py::test_native_fusion_times_are_measured_in_seconds",
|
| 242 |
+
"tests/test_encoder/test_adapters.py::test_native_sam3_decodes_lossless_tracking_cache",
|
| 243 |
+
"tests/test_encoder/test_adapters.py::test_native_sam3_decodes_prompt_keyed_independent_frames",
|
| 244 |
+
"tests/test_encoder/test_adapters.py::test_native_sam3_preserves_tracked_object_ids",
|
| 245 |
+
"tests/test_encoder/test_adapters.py::test_registry_decodes_native_segvggt_dictionary",
|
| 246 |
+
"tests/test_encoder/test_adapters.py::test_spatial_code_format_validation",
|
| 247 |
+
"tests/test_encoder/test_adapters.py::test_validate_identifies_empty_scene",
|
| 248 |
+
"tests/test_encoder/test_adapters.py::test_validate_normalizes_canonical_geometry",
|
| 249 |
+
"tests/test_encoder/test_adapters.py::test_validate_rejects_invalid_geometry[scene0-TypeError]",
|
| 250 |
+
"tests/test_encoder/test_adapters.py::test_validate_rejects_invalid_geometry[scene1-ValueError]",
|
| 251 |
+
"tests/test_encoder/test_adapters.py::test_validate_rejects_invalid_geometry[scene2-ValueError]",
|
| 252 |
+
"tests/test_encoder/test_config.py::test_encoder_paths_mirror_all_dimensions",
|
| 253 |
+
"tests/test_encoder/test_config.py::test_encoder_paths_reject_unknown_spatial_code_format",
|
| 254 |
+
"tests/test_encoder/test_config.py::test_ground_truth_paths_have_no_depth_tracking_input_frames_axis",
|
| 255 |
+
"tests/test_encoder/test_config.py::test_ground_truth_paths_reject_unknown_spatial_code_format",
|
| 256 |
+
"tests/test_encoder/test_encoder.py::test_backproject_frame_applies_intrinsics_pose_and_confidence",
|
| 257 |
+
"tests/test_encoder/test_encoder.py::test_backproject_frame_returns_typed_empty_array",
|
| 258 |
+
"tests/test_encoder/test_encoder.py::test_closest_distance_uses_point_cloud_distance",
|
| 259 |
+
"tests/test_encoder/test_encoder.py::test_depth_edges_handles_small_and_discontinuous_frames",
|
| 260 |
+
"tests/test_encoder/test_encoder.py::test_relative_direction_modes",
|
| 261 |
+
"tests/test_encoder/test_encoder.py::test_robust_centroid_extent_returns_sorted_dimensions",
|
| 262 |
+
"tests/test_encoder/test_geometric.py::test_compact_floor_boundaries_preserve_disconnected_regions",
|
| 263 |
+
"tests/test_encoder/test_geometric.py::test_compact_instances_keep_peak_co_visible_hypotheses_by_evidence",
|
| 264 |
+
"tests/test_encoder/test_geometric.py::test_compact_oriented_box_combines_observation_extents_by_consensus",
|
| 265 |
+
"tests/test_encoder/test_geometric.py::test_compact_oriented_box_rejects_one_inconsistent_observation",
|
| 266 |
+
"tests/test_encoder/test_geometric.py::test_compact_oriented_box_uses_accumulated_instance_points",
|
| 267 |
+
"tests/test_encoder/test_geometric.py::test_compact_spatial_code_exposes_only_reusable_primitives",
|
| 268 |
+
"tests/test_encoder/test_geometric.py::test_compact_spatial_code_merges_revisit_instances_and_keeps_earliest_time",
|
| 269 |
+
"tests/test_encoder/test_geometric.py::test_compact_spatial_code_suppresses_co_visible_duplicate_tracks",
|
| 270 |
+
"tests/test_encoder/test_geometric.py::test_dump_spatial_code",
|
| 271 |
+
"tests/test_encoder/test_geometric.py::test_dumped_json_preserves_schema",
|
| 272 |
+
"tests/test_encoder/test_geometric.py::test_exact_math_is_integrated_into_geometric_module",
|
| 273 |
+
"tests/test_encoder/test_geometric.py::test_explicit_is_a_derivation_of_compact",
|
| 274 |
+
"tests/test_encoder/test_geometric.py::test_explicit_spatial_code_remains_the_default",
|
| 275 |
+
"tests/test_encoder/test_geometric.py::test_floor_level_v1_v2_math_is_shared",
|
| 276 |
+
"tests/test_encoder/test_geometric.py::test_position_reader_accepts_current_and_legacy_formatting",
|
| 277 |
+
"tests/test_encoder/test_geometric.py::test_raw_bundle_dispatches_to_explicit_derivation",
|
| 278 |
+
"tests/test_encoder/test_geometric.py::test_spatial_code_matches_reference_schema",
|
| 279 |
+
"tests/test_encoder/test_ground_truth.py::test_appearance_order_ranks_topological_across_multiple_questions",
|
| 280 |
+
"tests/test_encoder/test_ground_truth.py::test_build_all_respects_explicit_scene_list_and_formats",
|
| 281 |
+
"tests/test_encoder/test_ground_truth.py::test_build_all_writes_every_scene_and_format",
|
| 282 |
+
"tests/test_encoder/test_ground_truth.py::test_build_and_write_writes_to_the_ground_truth_path",
|
| 283 |
+
"tests/test_encoder/test_ground_truth.py::test_build_compact_ground_truth_spatial_code_nulls_untimed_classes",
|
| 284 |
+
"tests/test_encoder/test_ground_truth.py::test_build_compact_ground_truth_spatial_code_raises_for_unknown_scene",
|
| 285 |
+
"tests/test_encoder/test_ground_truth.py::test_build_compact_ground_truth_spatial_code_uses_ranks_and_nulls_unranked",
|
| 286 |
+
"tests/test_encoder/test_ground_truth.py::test_build_explicit_ground_truth_spatial_code_is_derived_from_compact",
|
| 287 |
+
"tests/test_encoder/test_ground_truth.py::test_build_ground_truth_spatial_code_dispatches_by_format",
|
| 288 |
+
"tests/test_encoder/test_ground_truth.py::test_build_ground_truth_spatial_code_rejects_unknown_format",
|
| 289 |
+
"tests/test_encoder/test_ground_truth.py::test_floor_level_accounts_for_tilted_box_support",
|
| 290 |
+
"tests/test_encoder/test_ground_truth.py::test_floor_level_defaults_to_zero_for_empty_scene",
|
| 291 |
+
"tests/test_encoder/test_ground_truth.py::test_floor_level_is_the_lowest_box_support_across_every_instance",
|
| 292 |
+
"tests/test_encoder/test_ground_truth.py::test_gt_floor_boundary_polygon_area_matches_room_size",
|
| 293 |
+
"tests/test_encoder/test_ground_truth.py::test_gt_oriented_box_rebases_height_above_floor_and_passes_xy_through",
|
| 294 |
+
"tests/test_encoder/test_ground_truth.py::test_gt_oriented_box_renormalizes_orientation_vectors",
|
| 295 |
+
"tests/test_encoder/test_ground_truth.py::test_load_meta_info_merges_all_three_datasets_and_tags_dataset",
|
| 296 |
+
"tests/test_encoder/test_ground_truth.py::test_scenes_returns_sorted_meta_info_keys",
|
| 297 |
+
"tests/test_encoder/test_init.py::test_encoder_package_imports_without_data_or_checkpoints",
|
| 298 |
+
"tests/test_encoder/test_launch.py::test_encoder_launcher_imports",
|
| 299 |
+
"tests/test_encoder/test_render.py::test_render_exposes_tracking_and_format_dimensions",
|
| 300 |
+
"tests/test_encoder/test_run.py::test_cache_or_load_exposes_explicit_dimensions",
|
| 301 |
+
"tests/test_encoder/test_run.py::test_video_mode_preserves_depth_and_tracking",
|
| 302 |
+
"tests/test_encoder/test_run.py::test_video_mode_selects_caches_for_requested_axes",
|
| 303 |
+
"tests/test_harness/test_harness.py::test_harness_package_imports_without_side_effects",
|
| 304 |
+
"tests/test_symbolic/test_adapters.py::test_adapter_rejects_format_mismatch",
|
| 305 |
+
"tests/test_symbolic/test_adapters.py::test_compact_adapter_derives_solver_values_from_primitives",
|
| 306 |
+
"tests/test_symbolic/test_adapters.py::test_compact_adapter_ignores_none_instances_within_a_partially_timed_class",
|
| 307 |
+
"tests/test_symbolic/test_adapters.py::test_compact_adapter_treats_none_first_visible_time_as_unknown",
|
| 308 |
+
"tests/test_symbolic/test_adapters.py::test_explicit_adapter_preserves_existing_solver_shape",
|
| 309 |
+
"tests/test_symbolic/test_adapters.py::test_floor_area_sums_disconnected_polygons_and_subtracts_all_holes",
|
| 310 |
+
"tests/test_symbolic/test_adapters.py::test_oriented_box_distance_is_surface_to_surface",
|
| 311 |
+
"tests/test_symbolic/test_adapters.py::test_oriented_box_distance_uses_corresponding_rotated_axes",
|
| 312 |
+
"tests/test_symbolic/test_adapters.py::test_polygon_area_implicitly_closes_ordered_boundary",
|
| 313 |
+
"tests/test_symbolic/test_adapters.py::test_symbolic_solver_answers_all_direction_levels_from_compact_code",
|
| 314 |
+
"tests/test_symbolic/test_adapters.py::test_symbolic_solver_answers_numeric_categories_from_compact_code",
|
| 315 |
+
"tests/test_symbolic/test_adapters.py::test_symbolic_solver_answers_relative_distance_and_order_from_compact_code",
|
| 316 |
+
"tests/test_symbolic/test_adapters.py::test_symbolic_solver_answers_route_planning_from_compact_code",
|
| 317 |
+
"tests/test_symbolic/test_launch.py::test_symbolic_launcher_imports",
|
| 318 |
+
"tests/test_symbolic/test_run.py::test_fetch_spatial_code_uses_selected_format_adapter",
|
| 319 |
+
"tests/test_symbolic/test_run.py::test_results_dir_for_selection_uses_ground_truth_layout",
|
| 320 |
+
"tests/test_symbolic/test_run.py::test_select_ground_truth_spatial_codes_points_at_the_ground_truth_directory",
|
| 321 |
+
"tests/test_symbolic/test_run.py::test_select_ground_truth_spatial_codes_rejects_unknown_format",
|
| 322 |
+
"tests/test_symbolic/test_run.py::test_select_spatial_codes_clears_ground_truth_flag",
|
| 323 |
+
"tests/test_symbolic/test_run.py::test_symbolic_selection_isolates_compact_codes",
|
| 324 |
+
"tests/test_symbolic/test_run.py::test_symbolic_selection_uses_new_hierarchy",
|
| 325 |
+
"tests/test_symbolic/test_run.py::test_write_question_result_nulls_perception_fields_under_ground_truth",
|
| 326 |
+
"tests/test_symbolic/test_solver.py::test_answer_snapshots_operation_counts_per_question",
|
| 327 |
+
"tests/test_symbolic/test_solver.py::test_direct_numeric_answers",
|
| 328 |
+
"tests/test_symbolic/test_solver.py::test_direction_answers_use_floor_coordinates",
|
| 329 |
+
"tests/test_symbolic/test_solver.py::test_dispatch_returns_none_for_unknown_or_missing_data",
|
| 330 |
+
"tests/test_symbolic/test_solver.py::test_multiple_choice_distance_and_order_answers",
|
| 331 |
+
"tests/test_symbolic/test_solver.py::test_route_planning_chains_turns",
|
| 332 |
+
"tests/test_symbolic/test_solver.py::test_unit_parsers_accept_strings_and_numbers",
|
| 333 |
+
"tests/test_symbolic/test_symbolic.py::test_symbolic_folder_modules_are_wired_together"
|
| 334 |
+
]
|
README.md
CHANGED
|
@@ -60,7 +60,7 @@ expected locations:
|
|
| 60 |
| Workspace source | `/workspace` | Python packages, tests, setup, README |
|
| 61 |
| VSI-Bench dataset | `/root/data/VSI-Bench` | `test.jsonl` plus videos under dataset folders |
|
| 62 |
| Official VSI scorer and meta info | `/root/data/thinking-in-space` | `lmms_eval/tasks/vsibench/utils.py` and `data/meta_info` |
|
| 63 |
-
| SAM3/DA3/raw caches | `/root/data/caches` | Input to encoder
|
| 64 |
| Spatial codes | `/root/data/spatial codes` | Set with `VSI_CODES`; tests do not depend on it |
|
| 65 |
| Model repos/checkpoints | `/root/models` | SAM3, DA3, VLM checkpoints, optional SegVGGT |
|
| 66 |
| Harness results | `/root/results` | One JSON per question |
|
|
@@ -87,10 +87,9 @@ Regenerating SAM3/DA3 raw caches themselves is not guaranteed deterministic.
|
|
| 87 |
|
| 88 |
1. Run perception caches if needed with `inference.run` or `inference.launch`.
|
| 89 |
2. Build perceived spatial codes with `encoder.run` or `encoder.launch`.
|
| 90 |
-
3.
|
| 91 |
-
4.
|
| 92 |
-
5.
|
| 93 |
-
6. Back up selected outputs with `backup.py`.
|
| 94 |
|
| 95 |
## Command Reference
|
| 96 |
|
|
@@ -110,7 +109,6 @@ python backup.py A,B,C --repo owner/dataset
|
|
| 110 |
```
|
| 111 |
|
| 112 |
`backup.py` targets are defined in `TARGETS`: `code`, `reports`, `spatial-codes`,
|
| 113 |
-
`caches`, `A`, `B`, `C`, `D`, `E`, `F`, `calibration`, and `corruption`.
|
| 114 |
Dry-run mode does not import or call `huggingface_hub`.
|
| 115 |
|
| 116 |
### Inference: Raw Model Caches
|
|
@@ -137,25 +135,25 @@ Important files:
|
|
| 137 |
|
| 138 |
```bash
|
| 139 |
# One scene from existing SAM3/DA3 caches.
|
| 140 |
-
python -m encoder.run SCENE --depth metric --tracking tracking --input uniform --frames 32
|
| 141 |
-
python -m encoder.run SCENE --depth metric --tracking tracking --input uniform --frames 32 --format compact
|
| 142 |
|
| 143 |
# Batch over every manifest scene with required caches.
|
| 144 |
-
python -m encoder.launch --depth metric --tracking tracking --input uniform --frames 32
|
|
|
|
|
|
|
|
|
|
|
|
|
| 145 |
|
| 146 |
-
# Ground-truth codes from thinking-in-space annotations, no SAM3/DA3.
|
| 147 |
-
python -m encoder.ground_truth --formats explicit,compact
|
| 148 |
```
|
| 149 |
|
| 150 |
Important files:
|
| 151 |
|
| 152 |
- `encoder/config.py`: path construction and validated axes
|
| 153 |
- `encoder/adapters.py`: raw-cache readers into canonical geometry
|
| 154 |
-
- `encoder/geometric.py`:
|
| 155 |
-
- `encoder/render.py`: writes final spatial-code JSON
|
| 156 |
- `encoder/run.py`: loads/verifies raw caches and builds one scene
|
| 157 |
- `encoder/launch.py`: CPU-parallel batch driver
|
| 158 |
-
- `encoder/ground_truth.py`: ground-truth compact/explicit code builder
|
| 159 |
|
| 160 |
### Experiments: Geometry Hypotheses
|
| 161 |
|
|
@@ -207,16 +205,21 @@ Important files:
|
|
| 207 |
- `symbolic/run.py`: scores one scene and writes per-question JSON
|
| 208 |
- `symbolic/launch.py`: multi-scene symbolic orchestration
|
| 209 |
|
| 210 |
-
### Harness A: Frames
|
|
|
|
|
|
|
| 211 |
|
| 212 |
```bash
|
| 213 |
python -m harness.A.run --model qwen3.5-4b --frame-selection uniform --frames 32 --scene SCENE
|
| 214 |
python -m harness.A.launch --model qwen3.5-4b --frame-selection uniform --frames 32 --scenes scene1,scene2
|
| 215 |
python -m harness.A.sweep --models all --frame-selections all --frames 16,32
|
|
|
|
|
|
|
|
|
|
|
|
|
| 216 |
```
|
| 217 |
|
| 218 |
-
|
| 219 |
-
`--extended`, `--reasoning-budget`, `--force-budget`.
|
| 220 |
|
| 221 |
Files:
|
| 222 |
|
|
@@ -231,112 +234,53 @@ Files:
|
|
| 231 |
### Harness B: Spatial Code Text Only
|
| 232 |
|
| 233 |
```bash
|
| 234 |
-
python -m harness.B.run --model qwen3.5-4b --
|
| 235 |
-
python -m harness.B.launch --model qwen3.5-4b --
|
| 236 |
-
python -m harness.B.sweep --models all --
|
|
|
|
|
|
|
|
|
|
| 237 |
```
|
| 238 |
|
| 239 |
-
|
| 240 |
-
`--force-budget`, `--results-dir`, `--rebuild`, `--thinking` where exposed.
|
| 241 |
|
| 242 |
Files:
|
| 243 |
|
| 244 |
- `harness/B/__init__.py`: B constants and result root
|
| 245 |
-
- `harness/B/spatial_codes.py`: loads perceived
|
| 246 |
- `harness/B/prompts.py`: spatial-code-only prompt construction
|
| 247 |
- `harness/B/run.py`: one model/config/scene
|
| 248 |
- `harness/B/launch.py`: persistent GPU workers for one config
|
| 249 |
-
- `harness/B/sweep.py`: grid over model/
|
| 250 |
|
| 251 |
### Harness C: Frames Plus Spatial Code
|
| 252 |
|
| 253 |
```bash
|
| 254 |
-
python -m harness.C.run --model qwen3.5-4b --
|
| 255 |
-
python -m harness.C.launch --model qwen3.5-4b --
|
| 256 |
-
python -m harness.C.sweep --models all --
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
```bash
|
| 262 |
-
# Strong correspondence arm: stamped frames + matching saved overlay code.
|
| 263 |
-
python -m harness.C.overlay_launch --depth metric --tracking tracking --input uniform --frames 32
|
| 264 |
-
python -m harness.C.run --model qwen3.5-4b --spatial-code-format explicit --depth metric --tracking tracking --input-selection uniform --frames 32 --overlay-ids --no-schema-legend --scene SCENE
|
| 265 |
-
python -m harness.C.launch --model qwen3.5-4b --spatial-code-format explicit --depth metric --tracking tracking --input-selection uniform --frames 32 --overlay-ids --no-schema-legend
|
| 266 |
-
|
| 267 |
-
# Weak correspondence arm: add first-visible frame pointers to code.
|
| 268 |
-
python -m harness.C.run --model qwen3.5-4b --spatial-code-format explicit --frame-linked-code --results-dir /root/results/C/frame-linked --scene SCENE
|
| 269 |
-
```
|
| 270 |
-
|
| 271 |
-
Overlay code artifacts are saved under:
|
| 272 |
-
|
| 273 |
-
```text
|
| 274 |
-
$VSI_CODES/overlay/sam3+depth-anything-3/<depth>/<tracking>/<input>/<frames>/explicit/<scene>.json
|
| 275 |
-
```
|
| 276 |
-
|
| 277 |
-
Overlay frames are cached under:
|
| 278 |
-
|
| 279 |
-
```text
|
| 280 |
-
$VSI_CACHE_ROOT/overlay-frames/<depth>/<tracking>/<input>/<frames>/<scene>/
|
| 281 |
```
|
| 282 |
|
| 283 |
Files:
|
| 284 |
|
| 285 |
- `harness/C/__init__.py`: C constants and result root
|
| 286 |
- `harness/C/prompts.py`: combined frames + code prompt construction
|
| 287 |
-
- `harness/C/overlay.py`: Set-of-Marks frame stamping and overlay-code persistence
|
| 288 |
-
- `harness/C/overlay_launch.py`: pre-generates overlay frame/code artifacts
|
| 289 |
- `harness/C/run.py`: one model/config/scene
|
| 290 |
- `harness/C/launch.py`: persistent GPU workers for one config
|
| 291 |
-
- `harness/C/sweep.py`: grid over model/
|
| 292 |
-
|
| 293 |
-
### Harness D: Ground-Truth Spatial Code
|
| 294 |
-
|
| 295 |
-
```bash
|
| 296 |
-
python -m harness.D.run --model qwen3.5-4b --spatial-code-format explicit --scene SCENE
|
| 297 |
-
python -m harness.D.launch --model qwen3.5-4b --spatial-code-format explicit
|
| 298 |
-
python -m harness.D.sweep --models all --spatial-code-formats all
|
| 299 |
-
|
| 300 |
-
# Perfect-information symbolic ceiling, no VLM.
|
| 301 |
-
python -m harness.D.symbolic_eval --spatial-code-format explicit
|
| 302 |
-
```
|
| 303 |
-
|
| 304 |
-
Files:
|
| 305 |
-
|
| 306 |
-
- `harness/D/__init__.py`: D constants and result root
|
| 307 |
-
- `harness/D/spatial_codes.py`: loads ground-truth compact/explicit JSON
|
| 308 |
-
- `harness/D/prompts.py`: ground-truth-code prompt construction
|
| 309 |
-
- `harness/D/run.py`: one model/config/scene
|
| 310 |
-
- `harness/D/launch.py`: persistent GPU workers for one config
|
| 311 |
-
- `harness/D/sweep.py`: grid over models and formats
|
| 312 |
-
- `harness/D/symbolic_eval.py`: symbolic solver on ground-truth codes
|
| 313 |
-
|
| 314 |
-
### Harness E: Blind Floor
|
| 315 |
-
|
| 316 |
-
```bash
|
| 317 |
-
python -m harness.E.run --model qwen3.5-4b --scene SCENE
|
| 318 |
-
python -m harness.E.launch --model qwen3.5-4b
|
| 319 |
-
python -m harness.E.sweep --models all
|
| 320 |
-
```
|
| 321 |
-
|
| 322 |
-
Common flags: `--extended`, `--reasoning-budget`, `--force-budget`,
|
| 323 |
-
`--results-dir`, `--rebuild`, `--limit`, `--device`, `--no-write`.
|
| 324 |
-
|
| 325 |
-
Files:
|
| 326 |
-
|
| 327 |
-
- `harness/E/__init__.py`: E constants and result root
|
| 328 |
-
- `harness/E/prompts.py`: question-only prompt construction
|
| 329 |
-
- `harness/E/run.py`: one model/config/scene
|
| 330 |
-
- `harness/E/launch.py`: persistent GPU workers for one config
|
| 331 |
-
- `harness/E/sweep.py`: grid over models/protocols
|
| 332 |
|
| 333 |
### Harness F: Symbolic Solver As A Harness
|
| 334 |
|
| 335 |
```bash
|
| 336 |
-
python -m harness.F.run --source perceived --
|
| 337 |
-
python -m harness.F.
|
| 338 |
-
python -m harness.F.
|
| 339 |
-
python -m harness.F.
|
|
|
|
|
|
|
| 340 |
```
|
| 341 |
|
| 342 |
Files:
|
|
@@ -346,39 +290,6 @@ Files:
|
|
| 346 |
- `harness/F/launch.py`: thin launch entry point to `run.main`
|
| 347 |
- `harness/F/sweep.py`: grid over symbolic source/config axes
|
| 348 |
|
| 349 |
-
### Calibration
|
| 350 |
-
|
| 351 |
-
```bash
|
| 352 |
-
python -m calibration.run --models qwen3.5-4b,qwen3.5-2b --budgets 256,512,1024 --questions 1,2,3 --spatial-code-format explicit --depth metric --tracking tracking --input-selection uniform --frames 32
|
| 353 |
-
python -m calibration.report --results-dir /root/results/calibration --tolerance 0.01 --max-forced-rate 0.05
|
| 354 |
-
```
|
| 355 |
-
|
| 356 |
-
Files:
|
| 357 |
-
|
| 358 |
-
- `calibration/__init__.py`: calibration constants and result root
|
| 359 |
-
- `calibration/run.py`: runs selected question ids across model/budget grid
|
| 360 |
-
- `calibration/report.py`: summarizes calibration grid and recommends budget
|
| 361 |
-
|
| 362 |
-
### Corruption Experiments
|
| 363 |
-
|
| 364 |
-
```bash
|
| 365 |
-
python -m corruption.sample --output /workspace/analysis/corruption_sample.json --seed 0
|
| 366 |
-
python -m corruption.run --arm solver --transform position-jitter --magnitude 0.25 --spatial-code-format explicit --scenes scene1,scene2
|
| 367 |
-
python -m corruption.run --arm vlm --model qwen3.5-4b --transform dimension-noise --magnitude 0.25 --spatial-code-format explicit --scenes scene1,scene2
|
| 368 |
-
python -m corruption.launch --arm both --models qwen3.5-4b,internvl3.5-4b --transforms position-jitter,dimension-noise --magnitudes 0.1,0.25 --sample /workspace/analysis/corruption_sample.json
|
| 369 |
-
python -m corruption.empirical --output /workspace/analysis/sam3_da3_residuals.json
|
| 370 |
-
```
|
| 371 |
-
|
| 372 |
-
Files:
|
| 373 |
-
|
| 374 |
-
- `corruption/__init__.py`: corruption constants, transform names, result root
|
| 375 |
-
- `corruption/transforms.py`: compact-code transformations
|
| 376 |
-
- `corruption/chimera.py`: chimera and single-object intervention utilities
|
| 377 |
-
- `corruption/empirical.py`: measured SAM3/DA3 residual distribution
|
| 378 |
-
- `corruption/sample.py`: deterministic question sample builder
|
| 379 |
-
- `corruption/run.py`: one corruption condition through solver and/or VLM
|
| 380 |
-
- `corruption/launch.py`: grid launcher over transforms/magnitudes/models
|
| 381 |
-
|
| 382 |
### Analysis And Reports
|
| 383 |
|
| 384 |
Current analysis is centered on report generation through `analysis.letters_reports` and
|
|
@@ -399,7 +310,6 @@ python -m analysis.letters_reports \
|
|
| 399 |
python -m analysis.A_reports --results-dir /root/results/A --output-dir /workspace/reports
|
| 400 |
python -m analysis.B_reports --results-dir /root/results/B --output-dir /workspace/reports
|
| 401 |
python -m analysis.C_reports --results-dir /root/results/C --output-dir /workspace/reports
|
| 402 |
-
python -m analysis.D_reports --results-dir /root/results/D --output-dir /workspace/reports
|
| 403 |
python -m analysis.F_reports --results-dir /root/results/F --output-dir /workspace/reports
|
| 404 |
```
|
| 405 |
|
|
@@ -409,27 +319,20 @@ Files:
|
|
| 409 |
- `analysis/A_reports.py`: wrapper for A report
|
| 410 |
- `analysis/B_reports.py`: wrapper for B report
|
| 411 |
- `analysis/C_reports.py`: wrapper for C report
|
| 412 |
-
- `analysis/D_reports.py`: wrapper for D report
|
| 413 |
- `analysis/F_reports.py`: wrapper for F report
|
| 414 |
|
| 415 |
## Result Layouts
|
| 416 |
|
| 417 |
| Producer | Default output layout |
|
| 418 |
|---|---|
|
| 419 |
-
| Inference SAM3 | `/root/data/caches/sam3/<tracking>/<input>/<frames>/<scene>.pt` |
|
| 420 |
-
| Inference DA3 | `/root/data/caches/depth-anything-3/<depth>/<input>/<frames>/<scene>.pkl` |
|
| 421 |
-
| Encoder combined cache | `/root/data/caches/sam3+depth-anything-3/<
|
| 422 |
-
| Perceived spatial code | `$VSI_CODES/sam3+depth-anything-3/<
|
| 423 |
-
|
|
| 424 |
-
|
|
| 425 |
-
|
|
| 426 |
-
|
|
| 427 |
-
| C results | `/root/results/C[/overlay]/<model>/<protocol>/<format>/<depth>/<tracking>/<input>/<frames>/<scene>/<question_id>.json` |
|
| 428 |
-
| D results | `/root/results/D/<model>/<input_mode>/<protocol>/<format>/.../<scene>/<question_id>.json` |
|
| 429 |
-
| E results | `/root/results/E/<model>/<protocol>/<scene>/<question_id>.json` |
|
| 430 |
-
| F results | `/root/results/F/<source>/.../<scene>/<question_id>.json` |
|
| 431 |
-
| Corruption results | `/root/results/corruption/<arm>/<transform>/<magnitude>/<model-or-symbolic>/<scene>/<question_id>.json` |
|
| 432 |
-
| Calibration results | `/root/results/calibration/...` |
|
| 433 |
| Reports | `/workspace/reports/*_report.json` |
|
| 434 |
|
| 435 |
## Full Source File Index
|
|
@@ -453,30 +356,8 @@ Files:
|
|
| 453 |
| `analysis/A_reports.py` | CLI wrapper for A report |
|
| 454 |
| `analysis/B_reports.py` | CLI wrapper for B report |
|
| 455 |
| `analysis/C_reports.py` | CLI wrapper for C report |
|
| 456 |
-
| `analysis/D_reports.py` | CLI wrapper for D report |
|
| 457 |
| `analysis/F_reports.py` | CLI wrapper for F report |
|
| 458 |
| `analysis/letters_reports.py` | Shared analysis/report implementation |
|
| 459 |
-
| `analysis/letters_reports.py.orig` | Previous copy of the report module retained as a local reference artifact |
|
| 460 |
-
|
| 461 |
-
### `calibration/`
|
| 462 |
-
|
| 463 |
-
| File | Purpose |
|
| 464 |
-
|---|---|
|
| 465 |
-
| `calibration/__init__.py` | Calibration constants |
|
| 466 |
-
| `calibration/run.py` | Run reasoning-budget pilots |
|
| 467 |
-
| `calibration/report.py` | Summarize pilots and choose budget |
|
| 468 |
-
|
| 469 |
-
### `corruption/`
|
| 470 |
-
|
| 471 |
-
| File | Purpose |
|
| 472 |
-
|---|---|
|
| 473 |
-
| `corruption/__init__.py` | Corruption constants and transform vocabulary |
|
| 474 |
-
| `corruption/transforms.py` | Compact-code perturbation functions |
|
| 475 |
-
| `corruption/chimera.py` | Chimera/single-object interventions |
|
| 476 |
-
| `corruption/empirical.py` | Measured residual distribution and empirical noise |
|
| 477 |
-
| `corruption/sample.py` | Deterministic question sampler |
|
| 478 |
-
| `corruption/run.py` | One corruption condition |
|
| 479 |
-
| `corruption/launch.py` | Corruption grid launcher |
|
| 480 |
|
| 481 |
### `encoder/`
|
| 482 |
|
|
@@ -486,10 +367,9 @@ Files:
|
|
| 486 |
| `encoder/config.py` | Paths and validated dimensions |
|
| 487 |
| `encoder/adapters.py` | Raw model-cache adapters |
|
| 488 |
| `encoder/geometric.py` | Spatial-code geometry math |
|
| 489 |
-
| `encoder/render.py` | Writes
|
| 490 |
| `encoder/run.py` | One-scene perceived-code build |
|
| 491 |
| `encoder/launch.py` | Batch perceived-code build |
|
| 492 |
-
| `encoder/ground_truth.py` | Ground-truth-code build |
|
| 493 |
|
| 494 |
### `harness/`
|
| 495 |
|
|
@@ -511,23 +391,9 @@ Files:
|
|
| 511 |
| `harness/B/sweep.py` | B sweep launcher |
|
| 512 |
| `harness/C/__init__.py` | C constants |
|
| 513 |
| `harness/C/prompts.py` | Frames+code prompts |
|
| 514 |
-
| `harness/C/overlay.py` | Overlay frame/code artifacts |
|
| 515 |
-
| `harness/C/overlay_launch.py` | Overlay pre-generation |
|
| 516 |
| `harness/C/run.py` | C one-scene runner |
|
| 517 |
| `harness/C/launch.py` | C batch launcher |
|
| 518 |
| `harness/C/sweep.py` | C sweep launcher |
|
| 519 |
-
| `harness/D/__init__.py` | D constants |
|
| 520 |
-
| `harness/D/spatial_codes.py` | Ground-truth-code loader |
|
| 521 |
-
| `harness/D/prompts.py` | Ground-truth-code prompts |
|
| 522 |
-
| `harness/D/run.py` | D one-scene runner |
|
| 523 |
-
| `harness/D/launch.py` | D batch launcher |
|
| 524 |
-
| `harness/D/sweep.py` | D sweep launcher |
|
| 525 |
-
| `harness/D/symbolic_eval.py` | Symbolic solver on ground-truth codes |
|
| 526 |
-
| `harness/E/__init__.py` | E constants |
|
| 527 |
-
| `harness/E/prompts.py` | Question-only prompts |
|
| 528 |
-
| `harness/E/run.py` | E one-scene runner |
|
| 529 |
-
| `harness/E/launch.py` | E batch launcher |
|
| 530 |
-
| `harness/E/sweep.py` | E sweep launcher |
|
| 531 |
| `harness/F/__init__.py` | F constants |
|
| 532 |
| `harness/F/run.py` | Symbolic solver as harness |
|
| 533 |
| `harness/F/launch.py` | Thin F launch entry point |
|
|
@@ -590,34 +456,10 @@ The tests mirror source folders. They are written to run without real data, resu
|
|
| 590 |
- `tests/test_C/conftest.py`
|
| 591 |
- `tests/test_C/test_C.py`
|
| 592 |
- `tests/test_C/test_launch.py`
|
| 593 |
-
- `tests/test_C/test_overlay.py`
|
| 594 |
-
- `tests/test_C/test_overlay_launch.py`
|
| 595 |
- `tests/test_C/test_prompts.py`
|
| 596 |
- `tests/test_C/test_run.py`
|
| 597 |
- `tests/test_C/test_sweep.py`
|
| 598 |
|
| 599 |
-
### `tests/test_D/`
|
| 600 |
-
|
| 601 |
-
- `tests/test_D/__init__.py`
|
| 602 |
-
- `tests/test_D/conftest.py`
|
| 603 |
-
- `tests/test_D/test_D.py`
|
| 604 |
-
- `tests/test_D/test_launch.py`
|
| 605 |
-
- `tests/test_D/test_prompts.py`
|
| 606 |
-
- `tests/test_D/test_run.py`
|
| 607 |
-
- `tests/test_D/test_spatial_codes.py`
|
| 608 |
-
- `tests/test_D/test_sweep.py`
|
| 609 |
-
- `tests/test_D/test_symbolic_eval.py`
|
| 610 |
-
|
| 611 |
-
### `tests/test_E/`
|
| 612 |
-
|
| 613 |
-
- `tests/test_E/__init__.py`
|
| 614 |
-
- `tests/test_E/conftest.py`
|
| 615 |
-
- `tests/test_E/test_E.py`
|
| 616 |
-
- `tests/test_E/test_launch.py`
|
| 617 |
-
- `tests/test_E/test_prompts.py`
|
| 618 |
-
- `tests/test_E/test_run.py`
|
| 619 |
-
- `tests/test_E/test_sweep.py`
|
| 620 |
-
|
| 621 |
### `tests/test_F/`
|
| 622 |
|
| 623 |
- `tests/test_F/__init__.py`
|
|
@@ -634,7 +476,6 @@ The tests mirror source folders. They are written to run without real data, resu
|
|
| 634 |
- `tests/test_analysis/test_A_reports.py`
|
| 635 |
- `tests/test_analysis/test_B_reports.py`
|
| 636 |
- `tests/test_analysis/test_C_reports.py`
|
| 637 |
-
- `tests/test_analysis/test_D_reports.py`
|
| 638 |
- `tests/test_analysis/test_F_reports.py`
|
| 639 |
- `tests/test_analysis/test_analysis.py`
|
| 640 |
- `tests/test_analysis/test_letters_reports.py`
|
|
@@ -643,26 +484,6 @@ The tests mirror source folders. They are written to run without real data, resu
|
|
| 643 |
|
| 644 |
- `tests/test_backup.py`
|
| 645 |
|
| 646 |
-
### `tests/test_calibration/`
|
| 647 |
-
|
| 648 |
-
- `tests/test_calibration/__init__.py`
|
| 649 |
-
- `tests/test_calibration/conftest.py`
|
| 650 |
-
- `tests/test_calibration/test_calibration.py`
|
| 651 |
-
- `tests/test_calibration/test_report.py`
|
| 652 |
-
- `tests/test_calibration/test_run.py`
|
| 653 |
-
|
| 654 |
-
### `tests/test_corruption/`
|
| 655 |
-
|
| 656 |
-
- `tests/test_corruption/__init__.py`
|
| 657 |
-
- `tests/test_corruption/conftest.py`
|
| 658 |
-
- `tests/test_corruption/test_chimera.py`
|
| 659 |
-
- `tests/test_corruption/test_corruption.py`
|
| 660 |
-
- `tests/test_corruption/test_empirical.py`
|
| 661 |
-
- `tests/test_corruption/test_launch.py`
|
| 662 |
-
- `tests/test_corruption/test_run.py`
|
| 663 |
-
- `tests/test_corruption/test_sample.py`
|
| 664 |
-
- `tests/test_corruption/test_transforms.py`
|
| 665 |
-
|
| 666 |
### `tests/test_encoder/`
|
| 667 |
|
| 668 |
- `tests/test_encoder/conftest.py`
|
|
@@ -718,8 +539,6 @@ When adding a Python source file, add the corresponding test in the mirrored tes
|
|
| 718 |
folder. For example:
|
| 719 |
|
| 720 |
```text
|
| 721 |
-
/workspace/harness/C/overlay.py
|
| 722 |
-
/workspace/tests/test_C/test_overlay.py
|
| 723 |
```
|
| 724 |
|
| 725 |
Every `tests/test_<folder>/` directory should contain both `conftest.py` and
|
|
|
|
| 60 |
| Workspace source | `/workspace` | Python packages, tests, setup, README |
|
| 61 |
| VSI-Bench dataset | `/root/data/VSI-Bench` | `test.jsonl` plus videos under dataset folders |
|
| 62 |
| Official VSI scorer and meta info | `/root/data/thinking-in-space` | `lmms_eval/tasks/vsibench/utils.py` and `data/meta_info` |
|
| 63 |
+
| SAM3/DA3/raw caches | `/root/data/caches` | Input to encoder |
|
| 64 |
| Spatial codes | `/root/data/spatial codes` | Set with `VSI_CODES`; tests do not depend on it |
|
| 65 |
| Model repos/checkpoints | `/root/models` | SAM3, DA3, VLM checkpoints, optional SegVGGT |
|
| 66 |
| Harness results | `/root/results` | One JSON per question |
|
|
|
|
| 87 |
|
| 88 |
1. Run perception caches if needed with `inference.run` or `inference.launch`.
|
| 89 |
2. Build perceived spatial codes with `encoder.run` or `encoder.launch`.
|
| 90 |
+
3. Run VLM harnesses A-C or symbolic harness F.
|
| 91 |
+
4. Regenerate reports with `analysis.letters_reports`.
|
| 92 |
+
5. Back up selected outputs with `backup.py`.
|
|
|
|
| 93 |
|
| 94 |
## Command Reference
|
| 95 |
|
|
|
|
| 109 |
```
|
| 110 |
|
| 111 |
`backup.py` targets are defined in `TARGETS`: `code`, `reports`, `spatial-codes`,
|
|
|
|
| 112 |
Dry-run mode does not import or call `huggingface_hub`.
|
| 113 |
|
| 114 |
### Inference: Raw Model Caches
|
|
|
|
| 135 |
|
| 136 |
```bash
|
| 137 |
# One scene from existing SAM3/DA3 caches.
|
| 138 |
+
python -m encoder.run SCENE --depth metric --tracking tracking --input uniform --frames 32
|
|
|
|
| 139 |
|
| 140 |
# Batch over every manifest scene with required caches.
|
| 141 |
+
python -m encoder.launch --depth metric --tracking tracking --input uniform --frames 32
|
| 142 |
+
|
| 143 |
+
# Full-video mode; depth and tracking remain independently selected.
|
| 144 |
+
python -m encoder.run SCENE --depth relative --tracking tracking --video
|
| 145 |
+
python -m encoder.launch --depth relative --tracking tracking --video
|
| 146 |
|
|
|
|
|
|
|
| 147 |
```
|
| 148 |
|
| 149 |
Important files:
|
| 150 |
|
| 151 |
- `encoder/config.py`: path construction and validated axes
|
| 152 |
- `encoder/adapters.py`: raw-cache readers into canonical geometry
|
| 153 |
+
- `encoder/geometric.py`: spatial-code construction math
|
| 154 |
+
- `encoder/render.py`: writes final explicit spatial-code JSON
|
| 155 |
- `encoder/run.py`: loads/verifies raw caches and builds one scene
|
| 156 |
- `encoder/launch.py`: CPU-parallel batch driver
|
|
|
|
| 157 |
|
| 158 |
### Experiments: Geometry Hypotheses
|
| 159 |
|
|
|
|
| 205 |
- `symbolic/run.py`: scores one scene and writes per-question JSON
|
| 206 |
- `symbolic/launch.py`: multi-scene symbolic orchestration
|
| 207 |
|
| 208 |
+
### Harness A: Frames or Native Video
|
| 209 |
+
|
| 210 |
+
The shared policy is configured in `harness/A/__init__.py` as `QUESTION_PROTOCOLS`. Edit that mapping once to switch either question group. Both groups write to the same configuration folder; each result JSON records its own `question_group` and `protocol`.
|
| 211 |
|
| 212 |
```bash
|
| 213 |
python -m harness.A.run --model qwen3.5-4b --frame-selection uniform --frames 32 --scene SCENE
|
| 214 |
python -m harness.A.launch --model qwen3.5-4b --frame-selection uniform --frames 32 --scenes scene1,scene2
|
| 215 |
python -m harness.A.sweep --models all --frame-selections all --frames 16,32
|
| 216 |
+
python -m harness.A.run --model qwen3.5-4b --video --scene SCENE
|
| 217 |
+
python -m harness.A.launch --model qwen3.5-4b --video
|
| 218 |
+
python -m harness.A.sweep --models all --video
|
| 219 |
+
|
| 220 |
```
|
| 221 |
|
| 222 |
+
Question protocols are hardcoded centrally: numerical questions use `base`; multiple-choice questions use `thinking`. `--reasoning-budget` and `--force-budget` affect only thinking questions. Other flags include `--results-dir`, `--rebuild`, `--limit`, `--device`, and `--no-write`.
|
|
|
|
| 223 |
|
| 224 |
Files:
|
| 225 |
|
|
|
|
| 234 |
### Harness B: Spatial Code Text Only
|
| 235 |
|
| 236 |
```bash
|
| 237 |
+
python -m harness.B.run --model qwen3.5-4b --depth metric --tracking tracking --input-selection uniform --frames 32 --scene SCENE
|
| 238 |
+
python -m harness.B.launch --model qwen3.5-4b --depth metric --tracking tracking --input-selection uniform --frames 32
|
| 239 |
+
python -m harness.B.sweep --models all --depths metric --trackings tracking --input-selections uniform --frames 32
|
| 240 |
+
python -m harness.B.run --model qwen3.5-4b --depth metric --tracking tracking --video --scene SCENE
|
| 241 |
+
python -m harness.B.launch --model qwen3.5-4b --depth metric --tracking tracking --video
|
| 242 |
+
python -m harness.B.sweep --models all --depths metric --trackings tracking --video
|
| 243 |
```
|
| 244 |
|
| 245 |
+
Question protocols use the same hardcoded numerical=`base`, multiple-choice=`thinking` policy. Budget flags affect only thinking questions. Other common flags are `--results-dir` and `--rebuild`.
|
|
|
|
| 246 |
|
| 247 |
Files:
|
| 248 |
|
| 249 |
- `harness/B/__init__.py`: B constants and result root
|
| 250 |
+
- `harness/B/spatial_codes.py`: loads perceived explicit JSON
|
| 251 |
- `harness/B/prompts.py`: spatial-code-only prompt construction
|
| 252 |
- `harness/B/run.py`: one model/config/scene
|
| 253 |
- `harness/B/launch.py`: persistent GPU workers for one config
|
| 254 |
+
- `harness/B/sweep.py`: grid over model/depth/tracking/input/frame axes
|
| 255 |
|
| 256 |
### Harness C: Frames Plus Spatial Code
|
| 257 |
|
| 258 |
```bash
|
| 259 |
+
python -m harness.C.run --model qwen3.5-4b --depth metric --tracking tracking --input-selection uniform --frames 32 --scene SCENE
|
| 260 |
+
python -m harness.C.launch --model qwen3.5-4b --depth metric --tracking tracking --input-selection uniform --frames 32
|
| 261 |
+
python -m harness.C.sweep --models all --depths metric --trackings tracking --input-selections uniform --frames 32
|
| 262 |
+
python -m harness.C.run --model qwen3.5-4b --depth metric --tracking tracking --video --scene SCENE
|
| 263 |
+
python -m harness.C.launch --model qwen3.5-4b --depth metric --tracking tracking --video
|
| 264 |
+
python -m harness.C.sweep --models all --depths metric --trackings tracking --video
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 265 |
```
|
| 266 |
|
| 267 |
Files:
|
| 268 |
|
| 269 |
- `harness/C/__init__.py`: C constants and result root
|
| 270 |
- `harness/C/prompts.py`: combined frames + code prompt construction
|
|
|
|
|
|
|
| 271 |
- `harness/C/run.py`: one model/config/scene
|
| 272 |
- `harness/C/launch.py`: persistent GPU workers for one config
|
| 273 |
+
- `harness/C/sweep.py`: grid over model/depth/tracking/input/frame axes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 274 |
|
| 275 |
### Harness F: Symbolic Solver As A Harness
|
| 276 |
|
| 277 |
```bash
|
| 278 |
+
python -m harness.F.run --source perceived --depth metric --tracking tracking --input-selection uniform --frames 32 --scene SCENE
|
| 279 |
+
python -m harness.F.launch --source perceived --depth metric --tracking tracking --input-selection uniform --frames 32
|
| 280 |
+
python -m harness.F.sweep --sources perceived --depths metric --trackings tracking --input-selections uniform --frames 32
|
| 281 |
+
python -m harness.F.run --source perceived --depth metric --tracking tracking --video --scene SCENE
|
| 282 |
+
python -m harness.F.launch --source perceived --depth metric --tracking tracking --video
|
| 283 |
+
python -m harness.F.sweep --sources perceived --depths metric --trackings tracking --video
|
| 284 |
```
|
| 285 |
|
| 286 |
Files:
|
|
|
|
| 290 |
- `harness/F/launch.py`: thin launch entry point to `run.main`
|
| 291 |
- `harness/F/sweep.py`: grid over symbolic source/config axes
|
| 292 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 293 |
### Analysis And Reports
|
| 294 |
|
| 295 |
Current analysis is centered on report generation through `analysis.letters_reports` and
|
|
|
|
| 310 |
python -m analysis.A_reports --results-dir /root/results/A --output-dir /workspace/reports
|
| 311 |
python -m analysis.B_reports --results-dir /root/results/B --output-dir /workspace/reports
|
| 312 |
python -m analysis.C_reports --results-dir /root/results/C --output-dir /workspace/reports
|
|
|
|
| 313 |
python -m analysis.F_reports --results-dir /root/results/F --output-dir /workspace/reports
|
| 314 |
```
|
| 315 |
|
|
|
|
| 319 |
- `analysis/A_reports.py`: wrapper for A report
|
| 320 |
- `analysis/B_reports.py`: wrapper for B report
|
| 321 |
- `analysis/C_reports.py`: wrapper for C report
|
|
|
|
| 322 |
- `analysis/F_reports.py`: wrapper for F report
|
| 323 |
|
| 324 |
## Result Layouts
|
| 325 |
|
| 326 |
| Producer | Default output layout |
|
| 327 |
|---|---|
|
| 328 |
+
| Inference SAM3 | `/root/data/caches/sam3/<tracking>/frames/<input>/<frames>/<scene>.pt` |
|
| 329 |
+
| Inference DA3 | `/root/data/caches/depth-anything-3/<depth>/frames/<input>/<frames>/<scene>.pkl` |
|
| 330 |
+
| Encoder combined cache | `/root/data/caches/sam3+depth-anything-3/<tracking>/frames/<input>/<frames>/<scene>.pkl.gz` or `/root/data/caches/sam3+depth-anything-3/<tracking>/video/<scene>.pkl.gz` |
|
| 331 |
+
| Perceived spatial code | `$VSI_CODES/sam3+depth-anything-3/<tracking>/frames/<input>/<frames>/explicit/<scene>.json` or `$VSI_CODES/sam3+depth-anything-3/<tracking>/video/explicit/<scene>.json` |
|
| 332 |
+
| A results | `/root/results/A/<model>/{<selection>/<frames>|video}/<scene>/<question_id>.json` |
|
| 333 |
+
| B results | `/root/results/B/<model>/explicit/<depth>/<tracking>/{<input>/<frames>|video}/<scene>/<question_id>.json` |
|
| 334 |
+
| C results | `/root/results/C/<model>/explicit/<depth>/<tracking>/{<input>/<frames>|video}/<scene>/<question_id>.json` |
|
| 335 |
+
| F results | `/root/results/F/perceived/<depth>/<tracking>/{<input>/<frames>|video}/explicit/<scene>/<question_id>.json` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 336 |
| Reports | `/workspace/reports/*_report.json` |
|
| 337 |
|
| 338 |
## Full Source File Index
|
|
|
|
| 356 |
| `analysis/A_reports.py` | CLI wrapper for A report |
|
| 357 |
| `analysis/B_reports.py` | CLI wrapper for B report |
|
| 358 |
| `analysis/C_reports.py` | CLI wrapper for C report |
|
|
|
|
| 359 |
| `analysis/F_reports.py` | CLI wrapper for F report |
|
| 360 |
| `analysis/letters_reports.py` | Shared analysis/report implementation |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 361 |
|
| 362 |
### `encoder/`
|
| 363 |
|
|
|
|
| 367 |
| `encoder/config.py` | Paths and validated dimensions |
|
| 368 |
| `encoder/adapters.py` | Raw model-cache adapters |
|
| 369 |
| `encoder/geometric.py` | Spatial-code geometry math |
|
| 370 |
+
| `encoder/render.py` | Writes explicit JSON |
|
| 371 |
| `encoder/run.py` | One-scene perceived-code build |
|
| 372 |
| `encoder/launch.py` | Batch perceived-code build |
|
|
|
|
| 373 |
|
| 374 |
### `harness/`
|
| 375 |
|
|
|
|
| 391 |
| `harness/B/sweep.py` | B sweep launcher |
|
| 392 |
| `harness/C/__init__.py` | C constants |
|
| 393 |
| `harness/C/prompts.py` | Frames+code prompts |
|
|
|
|
|
|
|
| 394 |
| `harness/C/run.py` | C one-scene runner |
|
| 395 |
| `harness/C/launch.py` | C batch launcher |
|
| 396 |
| `harness/C/sweep.py` | C sweep launcher |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 397 |
| `harness/F/__init__.py` | F constants |
|
| 398 |
| `harness/F/run.py` | Symbolic solver as harness |
|
| 399 |
| `harness/F/launch.py` | Thin F launch entry point |
|
|
|
|
| 456 |
- `tests/test_C/conftest.py`
|
| 457 |
- `tests/test_C/test_C.py`
|
| 458 |
- `tests/test_C/test_launch.py`
|
|
|
|
|
|
|
| 459 |
- `tests/test_C/test_prompts.py`
|
| 460 |
- `tests/test_C/test_run.py`
|
| 461 |
- `tests/test_C/test_sweep.py`
|
| 462 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 463 |
### `tests/test_F/`
|
| 464 |
|
| 465 |
- `tests/test_F/__init__.py`
|
|
|
|
| 476 |
- `tests/test_analysis/test_A_reports.py`
|
| 477 |
- `tests/test_analysis/test_B_reports.py`
|
| 478 |
- `tests/test_analysis/test_C_reports.py`
|
|
|
|
| 479 |
- `tests/test_analysis/test_F_reports.py`
|
| 480 |
- `tests/test_analysis/test_analysis.py`
|
| 481 |
- `tests/test_analysis/test_letters_reports.py`
|
|
|
|
| 484 |
|
| 485 |
- `tests/test_backup.py`
|
| 486 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 487 |
### `tests/test_encoder/`
|
| 488 |
|
| 489 |
- `tests/test_encoder/conftest.py`
|
|
|
|
| 539 |
folder. For example:
|
| 540 |
|
| 541 |
```text
|
|
|
|
|
|
|
| 542 |
```
|
| 543 |
|
| 544 |
Every `tests/test_<folder>/` directory should contain both `conftest.py` and
|
backup.py
CHANGED
|
@@ -23,8 +23,6 @@ TARGETS = {
|
|
| 23 |
"setup.sh",
|
| 24 |
"backup.py",
|
| 25 |
"analysis",
|
| 26 |
-
"calibration",
|
| 27 |
-
"corruption",
|
| 28 |
"encoder",
|
| 29 |
"harness",
|
| 30 |
"inference",
|
|
@@ -38,11 +36,7 @@ TARGETS = {
|
|
| 38 |
"A": ["results/A"],
|
| 39 |
"B": ["results/B"],
|
| 40 |
"C": ["results/C"],
|
| 41 |
-
"D": ["results/D"],
|
| 42 |
-
"E": ["results/E"],
|
| 43 |
"F": ["results/F"],
|
| 44 |
-
"calibration": ["results/calibration"],
|
| 45 |
-
"corruption": ["results/corruption"],
|
| 46 |
}
|
| 47 |
|
| 48 |
|
|
|
|
| 23 |
"setup.sh",
|
| 24 |
"backup.py",
|
| 25 |
"analysis",
|
|
|
|
|
|
|
| 26 |
"encoder",
|
| 27 |
"harness",
|
| 28 |
"inference",
|
|
|
|
| 36 |
"A": ["results/A"],
|
| 37 |
"B": ["results/B"],
|
| 38 |
"C": ["results/C"],
|
|
|
|
|
|
|
| 39 |
"F": ["results/F"],
|
|
|
|
|
|
|
| 40 |
}
|
| 41 |
|
| 42 |
|
encoder/config.py
CHANGED
|
@@ -29,7 +29,9 @@ TRACKING_MODES = ("tracking", "no tracking")
|
|
| 29 |
SPATIAL_CODE_FORMATS = ("compact", "explicit")
|
| 30 |
|
| 31 |
|
| 32 |
-
def _validate_dimensions(
|
|
|
|
|
|
|
| 33 |
"""Validate the dimensions shared by cache and spatial-code paths."""
|
| 34 |
if depth not in DEPTH_VARIANTS:
|
| 35 |
raise ValueError(f"unknown depth variant {depth!r}; expected {DEPTH_VARIANTS}")
|
|
@@ -42,15 +44,21 @@ def _validate_dimensions(depth, input_selection, tracking, frame_count, allow_vi
|
|
| 42 |
raise ValueError(
|
| 43 |
f"unknown tracking mode {tracking!r}; expected {TRACKING_MODES}"
|
| 44 |
)
|
| 45 |
-
if
|
|
|
|
|
|
|
| 46 |
raise ValueError("frame count must be positive")
|
| 47 |
|
| 48 |
|
| 49 |
-
def _combined_directory(
|
| 50 |
-
|
|
|
|
|
|
|
| 51 |
_validate_dimensions(depth, input_selection, tracking, frame_count, allow_video)
|
| 52 |
-
directory = Path(root) /
|
| 53 |
-
|
|
|
|
|
|
|
| 54 |
|
| 55 |
|
| 56 |
def video_path(scene, dataset=None):
|
|
@@ -79,7 +87,12 @@ def video_path(scene, dataset=None):
|
|
| 79 |
def cache_file(scene, depth, input_selection, tracking, frame_count=FRAMES_PER_VIDEO):
|
| 80 |
"""Return one combined geometry cache isolated by every input dimension."""
|
| 81 |
directory = _combined_directory(
|
| 82 |
-
CACHE_ROOT / MODEL,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
)
|
| 84 |
return str(directory / f"{scene}.pkl.gz")
|
| 85 |
|
|
@@ -87,31 +100,31 @@ def cache_file(scene, depth, input_selection, tracking, frame_count=FRAMES_PER_V
|
|
| 87 |
def da3_cache_file(scene, depth, input_selection, frame_count=FRAMES_PER_VIDEO):
|
| 88 |
"""Return one native DA3 cache path; tracking never applies to DA3."""
|
| 89 |
_validate_dimensions(depth, input_selection, "tracking", frame_count)
|
| 90 |
-
directory = CACHE_ROOT / "depth-anything-3" / depth / input_selection
|
| 91 |
return str(directory / str(frame_count) / f"{scene}.pkl")
|
| 92 |
|
| 93 |
|
| 94 |
def sam3_cache_file(scene, input_selection, tracking, frame_count=FRAMES_PER_VIDEO):
|
| 95 |
"""Return one native SAM3 cache path for a specific set of input dimensions."""
|
| 96 |
_validate_dimensions("relative", input_selection, tracking, frame_count)
|
| 97 |
-
directory = CACHE_ROOT / "sam3" / tracking / input_selection
|
| 98 |
return str(directory / str(frame_count) / f"{scene}.pt")
|
| 99 |
|
| 100 |
|
| 101 |
def video_da3_cache_file(scene, depth="metric", input_selection=VIDEO_FRAME_SELECTION):
|
| 102 |
"""Return the DA3 full-video cache for the encoder's video layout."""
|
| 103 |
_validate_dimensions(depth, input_selection, "tracking", FRAMES_PER_VIDEO)
|
| 104 |
-
directory = CACHE_ROOT / "depth-anything-3" / depth /
|
| 105 |
-
return str(directory /
|
| 106 |
|
| 107 |
|
| 108 |
def video_sam3_cache_file(
|
| 109 |
-
scene, tracking="tracking", input_selection=VIDEO_FRAME_SELECTION
|
| 110 |
):
|
| 111 |
"""Return the SAM3 full-video cache for the encoder's video layout."""
|
| 112 |
_validate_dimensions("relative", input_selection, tracking, FRAMES_PER_VIDEO)
|
| 113 |
-
directory = CACHE_ROOT / "sam3" / tracking /
|
| 114 |
-
return str(directory /
|
| 115 |
|
| 116 |
|
| 117 |
def spatial_code_model_dir(
|
|
@@ -128,7 +141,12 @@ def spatial_code_model_dir(
|
|
| 128 |
f"expected {SPATIAL_CODE_FORMATS}"
|
| 129 |
)
|
| 130 |
directory = _combined_directory(
|
| 131 |
-
CODES_ROOT / MODEL,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
)
|
| 133 |
return str(directory / spatial_code_format)
|
| 134 |
|
|
@@ -146,25 +164,3 @@ def spatial_code_path(
|
|
| 146 |
depth, input_selection, tracking, frame_count, spatial_code_format
|
| 147 |
)
|
| 148 |
return str(Path(directory) / f"{scene}.json")
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
def ground_truth_spatial_code_dir(spatial_code_format="explicit"):
|
| 152 |
-
"""Return the ground-truth spatial-code directory for one format.
|
| 153 |
-
|
| 154 |
-
Ground truth has no depth/tracking/input-selection/frame-count axis -- it is built once
|
| 155 |
-
per scene directly from the dataset's own 3D annotations (encoder.ground_truth), not from
|
| 156 |
-
a perception pipeline run under any particular config -- so it lives in its own top-level
|
| 157 |
-
"ground truth" segment rather than under MODEL's depth/tracking/input/frames hierarchy.
|
| 158 |
-
"""
|
| 159 |
-
if spatial_code_format not in SPATIAL_CODE_FORMATS:
|
| 160 |
-
raise ValueError(
|
| 161 |
-
f"unknown spatial-code format {spatial_code_format!r}; "
|
| 162 |
-
f"expected {SPATIAL_CODE_FORMATS}"
|
| 163 |
-
)
|
| 164 |
-
return str(CODES_ROOT / "ground truth" / spatial_code_format)
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
def ground_truth_spatial_code_path(scene, spatial_code_format="explicit"):
|
| 168 |
-
"""Return the ground-truth spatial-code JSON path for one scene."""
|
| 169 |
-
directory = ground_truth_spatial_code_dir(spatial_code_format)
|
| 170 |
-
return str(Path(directory) / f"{scene}.json")
|
|
|
|
| 29 |
SPATIAL_CODE_FORMATS = ("compact", "explicit")
|
| 30 |
|
| 31 |
|
| 32 |
+
def _validate_dimensions(
|
| 33 |
+
depth, input_selection, tracking, frame_count, allow_video=False
|
| 34 |
+
):
|
| 35 |
"""Validate the dimensions shared by cache and spatial-code paths."""
|
| 36 |
if depth not in DEPTH_VARIANTS:
|
| 37 |
raise ValueError(f"unknown depth variant {depth!r}; expected {DEPTH_VARIANTS}")
|
|
|
|
| 44 |
raise ValueError(
|
| 45 |
f"unknown tracking mode {tracking!r}; expected {TRACKING_MODES}"
|
| 46 |
)
|
| 47 |
+
if input_selection != VIDEO_INPUT_SELECTION and (
|
| 48 |
+
frame_count is None or frame_count < 1
|
| 49 |
+
):
|
| 50 |
raise ValueError("frame count must be positive")
|
| 51 |
|
| 52 |
|
| 53 |
+
def _combined_directory(
|
| 54 |
+
root, depth, input_selection, tracking, frame_count, allow_video=False
|
| 55 |
+
):
|
| 56 |
+
"""Build the combined hierarchy: tracking/{frames/<selection>|video}."""
|
| 57 |
_validate_dimensions(depth, input_selection, tracking, frame_count, allow_video)
|
| 58 |
+
directory = Path(root) / tracking
|
| 59 |
+
if input_selection == VIDEO_INPUT_SELECTION:
|
| 60 |
+
return directory / VIDEO_CACHE_SEGMENT
|
| 61 |
+
return directory / "frames" / input_selection / str(frame_count)
|
| 62 |
|
| 63 |
|
| 64 |
def video_path(scene, dataset=None):
|
|
|
|
| 87 |
def cache_file(scene, depth, input_selection, tracking, frame_count=FRAMES_PER_VIDEO):
|
| 88 |
"""Return one combined geometry cache isolated by every input dimension."""
|
| 89 |
directory = _combined_directory(
|
| 90 |
+
CACHE_ROOT / MODEL,
|
| 91 |
+
depth,
|
| 92 |
+
input_selection,
|
| 93 |
+
tracking,
|
| 94 |
+
frame_count,
|
| 95 |
+
allow_video=True,
|
| 96 |
)
|
| 97 |
return str(directory / f"{scene}.pkl.gz")
|
| 98 |
|
|
|
|
| 100 |
def da3_cache_file(scene, depth, input_selection, frame_count=FRAMES_PER_VIDEO):
|
| 101 |
"""Return one native DA3 cache path; tracking never applies to DA3."""
|
| 102 |
_validate_dimensions(depth, input_selection, "tracking", frame_count)
|
| 103 |
+
directory = CACHE_ROOT / "depth-anything-3" / depth / "frames" / input_selection
|
| 104 |
return str(directory / str(frame_count) / f"{scene}.pkl")
|
| 105 |
|
| 106 |
|
| 107 |
def sam3_cache_file(scene, input_selection, tracking, frame_count=FRAMES_PER_VIDEO):
|
| 108 |
"""Return one native SAM3 cache path for a specific set of input dimensions."""
|
| 109 |
_validate_dimensions("relative", input_selection, tracking, frame_count)
|
| 110 |
+
directory = CACHE_ROOT / "sam3" / tracking / "frames" / input_selection
|
| 111 |
return str(directory / str(frame_count) / f"{scene}.pt")
|
| 112 |
|
| 113 |
|
| 114 |
def video_da3_cache_file(scene, depth="metric", input_selection=VIDEO_FRAME_SELECTION):
|
| 115 |
"""Return the DA3 full-video cache for the encoder's video layout."""
|
| 116 |
_validate_dimensions(depth, input_selection, "tracking", FRAMES_PER_VIDEO)
|
| 117 |
+
directory = CACHE_ROOT / "depth-anything-3" / depth / VIDEO_CACHE_SEGMENT
|
| 118 |
+
return str(directory / f"{scene}.npz")
|
| 119 |
|
| 120 |
|
| 121 |
def video_sam3_cache_file(
|
| 122 |
+
scene, tracking="no tracking", input_selection=VIDEO_FRAME_SELECTION
|
| 123 |
):
|
| 124 |
"""Return the SAM3 full-video cache for the encoder's video layout."""
|
| 125 |
_validate_dimensions("relative", input_selection, tracking, FRAMES_PER_VIDEO)
|
| 126 |
+
directory = CACHE_ROOT / "sam3" / tracking / VIDEO_CACHE_SEGMENT
|
| 127 |
+
return str(directory / f"{scene}.pkl.gz")
|
| 128 |
|
| 129 |
|
| 130 |
def spatial_code_model_dir(
|
|
|
|
| 141 |
f"expected {SPATIAL_CODE_FORMATS}"
|
| 142 |
)
|
| 143 |
directory = _combined_directory(
|
| 144 |
+
CODES_ROOT / MODEL,
|
| 145 |
+
depth,
|
| 146 |
+
input_selection,
|
| 147 |
+
tracking,
|
| 148 |
+
frame_count,
|
| 149 |
+
allow_video=True,
|
| 150 |
)
|
| 151 |
return str(directory / spatial_code_format)
|
| 152 |
|
|
|
|
| 164 |
depth, input_selection, tracking, frame_count, spatial_code_format
|
| 165 |
)
|
| 166 |
return str(Path(directory) / f"{scene}.json")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tests/test_F/test_F.py
CHANGED
|
@@ -7,7 +7,7 @@ from harness import F
|
|
| 7 |
|
| 8 |
|
| 9 |
def test_sources_and_default_are_declared():
|
| 10 |
-
assert F.SOURCES == ("perceived",
|
| 11 |
assert F.DEFAULT_SOURCE == "perceived"
|
| 12 |
assert F.RESULTS_DIR == Path("/root/results/F")
|
| 13 |
|
|
|
|
| 7 |
|
| 8 |
|
| 9 |
def test_sources_and_default_are_declared():
|
| 10 |
+
assert F.SOURCES == ("perceived",)
|
| 11 |
assert F.DEFAULT_SOURCE == "perceived"
|
| 12 |
assert F.RESULTS_DIR == Path("/root/results/F")
|
| 13 |
|
tests/test_F/test_run.py
CHANGED
|
@@ -13,27 +13,7 @@ def test_perceived_layout_contains_every_input_axis():
|
|
| 13 |
) == Path("/root/results/F/perceived/metric/tracking/uniform/32/explicit")
|
| 14 |
|
| 15 |
|
| 16 |
-
def
|
| 17 |
-
assert run.results_dir_for(
|
| 18 |
-
"
|
| 19 |
-
)
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
def test_select_source_routes_to_existing_symbolic_selectors(monkeypatch):
|
| 23 |
-
seen = []
|
| 24 |
-
monkeypatch.setattr(
|
| 25 |
-
run.symbolic_run, "select_spatial_codes", lambda *args: seen.append(("p", args))
|
| 26 |
-
)
|
| 27 |
-
monkeypatch.setattr(
|
| 28 |
-
run.symbolic_run,
|
| 29 |
-
"select_ground_truth_spatial_codes",
|
| 30 |
-
lambda *args: seen.append(("g", args)),
|
| 31 |
-
)
|
| 32 |
-
run.select_source(
|
| 33 |
-
"perceived", "compact", "relative", "no tracking", "selective", 64
|
| 34 |
-
)
|
| 35 |
-
run.select_source("ground truth", "explicit")
|
| 36 |
-
assert seen == [
|
| 37 |
-
("p", ("relative", "selective", "no tracking", 64, "compact")),
|
| 38 |
-
("g", ("explicit",)),
|
| 39 |
-
]
|
|
|
|
| 13 |
) == Path("/root/results/F/perceived/metric/tracking/uniform/32/explicit")
|
| 14 |
|
| 15 |
|
| 16 |
+
def test_video_results_use_video_branch():
|
| 17 |
+
assert run.results_dir_for(
|
| 18 |
+
"perceived", "explicit", "metric", "tracking", "video", None
|
| 19 |
+
) == Path("/root/results/F/perceived/metric/tracking/video/explicit")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tests/test_analysis/test_analysis.py
CHANGED
|
@@ -10,7 +10,3 @@ class TestAnalysisDirectory(ReportTestCase):
|
|
| 10 |
self.assertEqual(names, {"A_report.json", "C_report.json", "AC_report.json"})
|
| 11 |
for name in names:
|
| 12 |
json.loads((self.root / "reports" / name).read_text())
|
| 13 |
-
|
| 14 |
-
def test_E_is_excluded(self):
|
| 15 |
-
with self.assertRaises(ValueError):
|
| 16 |
-
load("E")
|
|
|
|
| 10 |
self.assertEqual(names, {"A_report.json", "C_report.json", "AC_report.json"})
|
| 11 |
for name in names:
|
| 12 |
json.loads((self.root / "reports" / name).read_text())
|
|
|
|
|
|
|
|
|
|
|
|
tests/test_encoder/test_config.py
CHANGED
|
@@ -9,26 +9,32 @@ def test_encoder_paths_mirror_all_dimensions(tmp_path, monkeypatch):
|
|
| 9 |
monkeypatch.setattr(config, "CACHE_ROOT", tmp_path / "caches")
|
| 10 |
monkeypatch.setattr(config, "CODES_ROOT", tmp_path / "codes")
|
| 11 |
assert config.cache_file("scene", "metric", "uniform", "no tracking", 64).endswith(
|
| 12 |
-
"
|
| 13 |
)
|
| 14 |
assert config.da3_cache_file("scene", "relative", "uniform", 32).endswith(
|
| 15 |
-
"depth-anything-3/relative/uniform/32/scene.pkl"
|
| 16 |
)
|
| 17 |
assert config.video_da3_cache_file("scene").endswith(
|
| 18 |
-
"depth-anything-3/metric/
|
|
|
|
|
|
|
|
|
|
| 19 |
)
|
| 20 |
assert config.video_sam3_cache_file("scene").endswith(
|
| 21 |
-
"sam3/tracking/
|
|
|
|
|
|
|
|
|
|
| 22 |
)
|
| 23 |
assert config.spatial_code_path(
|
| 24 |
"scene", "metric", "selective", "tracking", 64
|
| 25 |
-
).endswith("
|
| 26 |
assert config.spatial_code_path(
|
| 27 |
"scene", "relative", "uniform", "no tracking", 96, "compact"
|
| 28 |
-
).endswith("
|
| 29 |
assert config.spatial_code_path(
|
| 30 |
-
"scene", "metric", config.VIDEO_INPUT_SELECTION, "no tracking",
|
| 31 |
-
).endswith("
|
| 32 |
|
| 33 |
|
| 34 |
def test_encoder_paths_reject_unknown_spatial_code_format():
|
|
@@ -36,20 +42,3 @@ def test_encoder_paths_reject_unknown_spatial_code_format():
|
|
| 36 |
config.spatial_code_path(
|
| 37 |
"scene", "metric", "uniform", "tracking", 32, "unknown"
|
| 38 |
)
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
def test_ground_truth_paths_have_no_depth_tracking_input_frames_axis(
|
| 42 |
-
tmp_path, monkeypatch
|
| 43 |
-
):
|
| 44 |
-
monkeypatch.setattr(config, "CODES_ROOT", tmp_path / "codes")
|
| 45 |
-
assert config.ground_truth_spatial_code_path("scene", "explicit").endswith(
|
| 46 |
-
"codes/ground truth/explicit/scene.json"
|
| 47 |
-
)
|
| 48 |
-
assert config.ground_truth_spatial_code_path("scene", "compact").endswith(
|
| 49 |
-
"codes/ground truth/compact/scene.json"
|
| 50 |
-
)
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
def test_ground_truth_paths_reject_unknown_spatial_code_format():
|
| 54 |
-
with pytest.raises(ValueError, match="unknown spatial-code format"):
|
| 55 |
-
config.ground_truth_spatial_code_path("scene", "unknown")
|
|
|
|
| 9 |
monkeypatch.setattr(config, "CACHE_ROOT", tmp_path / "caches")
|
| 10 |
monkeypatch.setattr(config, "CODES_ROOT", tmp_path / "codes")
|
| 11 |
assert config.cache_file("scene", "metric", "uniform", "no tracking", 64).endswith(
|
| 12 |
+
"no tracking/frames/uniform/64/scene.pkl.gz"
|
| 13 |
)
|
| 14 |
assert config.da3_cache_file("scene", "relative", "uniform", 32).endswith(
|
| 15 |
+
"depth-anything-3/relative/frames/uniform/32/scene.pkl"
|
| 16 |
)
|
| 17 |
assert config.video_da3_cache_file("scene").endswith(
|
| 18 |
+
"depth-anything-3/metric/video/scene.npz"
|
| 19 |
+
)
|
| 20 |
+
assert config.video_da3_cache_file("scene", "relative").endswith(
|
| 21 |
+
"depth-anything-3/relative/video/scene.npz"
|
| 22 |
)
|
| 23 |
assert config.video_sam3_cache_file("scene").endswith(
|
| 24 |
+
"sam3/no tracking/video/scene.pkl.gz"
|
| 25 |
+
)
|
| 26 |
+
assert config.video_sam3_cache_file("scene", "tracking").endswith(
|
| 27 |
+
"sam3/tracking/video/scene.pkl.gz"
|
| 28 |
)
|
| 29 |
assert config.spatial_code_path(
|
| 30 |
"scene", "metric", "selective", "tracking", 64
|
| 31 |
+
).endswith("tracking/frames/selective/64/explicit/scene.json")
|
| 32 |
assert config.spatial_code_path(
|
| 33 |
"scene", "relative", "uniform", "no tracking", 96, "compact"
|
| 34 |
+
).endswith("no tracking/frames/uniform/96/compact/scene.json")
|
| 35 |
assert config.spatial_code_path(
|
| 36 |
+
"scene", "metric", config.VIDEO_INPUT_SELECTION, "no tracking", None, "explicit"
|
| 37 |
+
).endswith("no tracking/video/explicit/scene.json")
|
| 38 |
|
| 39 |
|
| 40 |
def test_encoder_paths_reject_unknown_spatial_code_format():
|
|
|
|
| 42 |
config.spatial_code_path(
|
| 43 |
"scene", "metric", "uniform", "tracking", 32, "unknown"
|
| 44 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tests/test_encoder/test_render.py
CHANGED
|
@@ -6,4 +6,4 @@ from encoder import render
|
|
| 6 |
def test_render_exposes_tracking_and_format_dimensions():
|
| 7 |
variables = render.write_spatial_code_for.__code__.co_varnames
|
| 8 |
assert "tracking" in variables
|
| 9 |
-
assert "spatial_code_format" in variables
|
|
|
|
| 6 |
def test_render_exposes_tracking_and_format_dimensions():
|
| 7 |
variables = render.write_spatial_code_for.__code__.co_varnames
|
| 8 |
assert "tracking" in variables
|
| 9 |
+
assert "spatial_code_format" not in variables
|
tests/test_inference/test_inference.py
CHANGED
|
@@ -16,7 +16,7 @@ def test_output_paths_include_frame_hierarchy(tmp_path, monkeypatch):
|
|
| 16 |
monkeypatch.setattr(run.inference_config, "CACHE_ROOT", tmp_path)
|
| 17 |
assert run.output_path(
|
| 18 |
"scene1", "SAM3", "uniform", "tracking", frame_count=64
|
| 19 |
-
).endswith("sam3/tracking/uniform/64/scene1.pt")
|
| 20 |
assert run.output_path(
|
| 21 |
"scene1", "DA3NESTED-GIANT-LARGE-1.1", "uniform", frame_count=64
|
| 22 |
-
).endswith("depth-anything-3/metric/uniform/64/scene1.pkl")
|
|
|
|
| 16 |
monkeypatch.setattr(run.inference_config, "CACHE_ROOT", tmp_path)
|
| 17 |
assert run.output_path(
|
| 18 |
"scene1", "SAM3", "uniform", "tracking", frame_count=64
|
| 19 |
+
).endswith("sam3/tracking/frames/uniform/64/scene1.pt")
|
| 20 |
assert run.output_path(
|
| 21 |
"scene1", "DA3NESTED-GIANT-LARGE-1.1", "uniform", frame_count=64
|
| 22 |
+
).endswith("depth-anything-3/metric/frames/uniform/64/scene1.pkl")
|
tests/test_inference/test_init.py
CHANGED
|
@@ -41,9 +41,9 @@ def test_cache_dir_helpers_validate_axes_and_include_dimensions(tmp_path, monkey
|
|
| 41 |
|
| 42 |
assert inference.model_cache_dir(
|
| 43 |
"depth-anything-3", "uniform", 16, "metric"
|
| 44 |
-
) == str(tmp_path / "depth-anything-3" / "metric" / "uniform" / "16")
|
| 45 |
assert inference.sam3_cache_dir("no tracking", "selective", 8) == str(
|
| 46 |
-
tmp_path / "sam3" / "no tracking" / "selective" / "8"
|
| 47 |
)
|
| 48 |
assert inference.parse_sam3_frame_mode("uniform-tracking") == (
|
| 49 |
"uniform",
|
|
|
|
| 41 |
|
| 42 |
assert inference.model_cache_dir(
|
| 43 |
"depth-anything-3", "uniform", 16, "metric"
|
| 44 |
+
) == str(tmp_path / "depth-anything-3" / "metric" / "frames" / "uniform" / "16")
|
| 45 |
assert inference.sam3_cache_dir("no tracking", "selective", 8) == str(
|
| 46 |
+
tmp_path / "sam3" / "no tracking" / "frames" / "selective" / "8"
|
| 47 |
)
|
| 48 |
assert inference.parse_sam3_frame_mode("uniform-tracking") == (
|
| 49 |
"uniform",
|
tests/test_symbolic/test_run.py
CHANGED
|
@@ -10,16 +10,25 @@ from symbolic import run
|
|
| 10 |
def test_symbolic_selection_uses_new_hierarchy(tmp_path, monkeypatch):
|
| 11 |
monkeypatch.setattr(run, "SPATIAL_CODES_ROOT", str(tmp_path))
|
| 12 |
run.select_spatial_codes("metric", "uniform", "no tracking", 64, "explicit")
|
| 13 |
-
assert run.SPATIAL_CODES_DIR.endswith("
|
| 14 |
assert run.results_dir_for_selection().endswith(
|
| 15 |
-
"
|
| 16 |
)
|
| 17 |
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
def test_symbolic_selection_isolates_compact_codes(tmp_path, monkeypatch):
|
| 20 |
monkeypatch.setattr(run, "SPATIAL_CODES_ROOT", str(tmp_path))
|
| 21 |
run.select_spatial_codes("relative", "selective", "tracking", 96, "compact")
|
| 22 |
-
assert run.SPATIAL_CODES_DIR.endswith("
|
| 23 |
assert run.SPATIAL_CODES_FORMAT == "compact"
|
| 24 |
|
| 25 |
|
|
|
|
| 10 |
def test_symbolic_selection_uses_new_hierarchy(tmp_path, monkeypatch):
|
| 11 |
monkeypatch.setattr(run, "SPATIAL_CODES_ROOT", str(tmp_path))
|
| 12 |
run.select_spatial_codes("metric", "uniform", "no tracking", 64, "explicit")
|
| 13 |
+
assert run.SPATIAL_CODES_DIR.endswith("no tracking/frames/uniform/64/explicit")
|
| 14 |
assert run.results_dir_for_selection().endswith(
|
| 15 |
+
"no tracking/frames/uniform/64/explicit"
|
| 16 |
)
|
| 17 |
|
| 18 |
|
| 19 |
+
def test_symbolic_video_selection_uses_encoder_hierarchy(tmp_path, monkeypatch):
|
| 20 |
+
monkeypatch.setattr(run, "SPATIAL_CODES_ROOT", str(tmp_path))
|
| 21 |
+
run.select_spatial_codes("metric", "video", "no tracking", None, "explicit")
|
| 22 |
+
assert run.SPATIAL_CODES_DIR.endswith("no tracking/video/explicit")
|
| 23 |
+
assert run.results_dir_for_selection().endswith("no tracking/video/explicit")
|
| 24 |
+
assert run.SPATIAL_CODES_INPUT == "video"
|
| 25 |
+
assert run.SPATIAL_CODES_FRAMES is None
|
| 26 |
+
|
| 27 |
+
|
| 28 |
def test_symbolic_selection_isolates_compact_codes(tmp_path, monkeypatch):
|
| 29 |
monkeypatch.setattr(run, "SPATIAL_CODES_ROOT", str(tmp_path))
|
| 30 |
run.select_spatial_codes("relative", "selective", "tracking", 96, "compact")
|
| 31 |
+
assert run.SPATIAL_CODES_DIR.endswith("tracking/frames/selective/96/compact")
|
| 32 |
assert run.SPATIAL_CODES_FORMAT == "compact"
|
| 33 |
|
| 34 |
|