Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Hongcheng-Gao/SpatialWorld
/ functions
Functions
1,798 in github.com/Hongcheng-Gao/SpatialWorld
⨍
Functions
1,798
◇
Types & classes
136
↓ 4 callers
Function
extract_actual_actions
Extract actual executed actions from result JSON. Returns keys: - actual_action_count: int | None - actual_action_text: str | None
scripts/virtualhome/run_benchmark.py:1010
↓ 4 callers
Function
extract_actual_actions
Extract actual executed actions from result JSON. Returns keys: - actual_action_count: int | None - actual_action_text: str | None
scripts/ai2thor/run_benchmark.py:886
↓ 4 callers
Function
extract_token_stats_from_result_json
Extract token stats from result JSON metadata token_usage.
scripts/virtualhome/run_benchmark.py:951
↓ 4 callers
Function
extract_token_stats_from_result_json
Extract token stats from result JSON metadata token_usage.
scripts/ai2thor/run_benchmark.py:827
↓ 4 callers
Function
extract_token_stats_from_text
Extract and sum prompt/completion/total tokens from stdout/stderr text.
scripts/virtualhome/run_benchmark.py:919
↓ 4 callers
Function
extract_token_stats_from_text
Extract and sum prompt/completion/total tokens from stdout/stderr text.
scripts/ai2thor/run_benchmark.py:795
↓ 4 callers
Function
extract_token_stats_from_text
Sum prompt/completion/total tokens printed to stdout/stderr.
mllm_base_agent/dual_agent/procthor/run_benchmark.py:322
↓ 4 callers
Function
find_result_json
JSON
mllm_base_agent/dual_agent/ai2thor/run_benchmark.py:86
↓ 4 callers
Method
get_logits_per_landmark
(self, text_embeds, image_embeds)
mllm_base_agent/environments/embodiedcity/vln/clip.py:213
↓ 4 callers
Function
get_navigation_lines
(nav, env, landmarks, traffic_flow, step_id=0)
mllm_base_agent/environments/embodiedcity/vln/prompt_builder.py:12
↓ 4 callers
Method
get_num_neighbors
(self, panoid)
mllm_base_agent/environments/embodiedcity/vln/graph_loader.py:33
↓ 4 callers
Method
get_text_embeds
(self, landmarks, prompt, ignore_cache=False)
mllm_base_agent/environments/embodiedcity/vln/clip.py:263
↓ 4 callers
Method
get_z_obstacle_dis
mllm_base_agent/environments/embodiedcity/vln/agent.py:497
↓ 4 callers
Method
init_state
(self, panoid, heading)
mllm_base_agent/environments/embodiedcity/vln/base_navigator.py:13
↓ 4 callers
Method
is_active
Check if currently recording
mllm_base_agent/environments/game/utils/video_recorder.py:109
↓ 4 callers
Function
is_task_completed
A task is complete when it has written an evaluation summary JSON.
scripts/game/run_benchmark.py:140
↓ 4 callers
Function
load_json
(path: Path)
scripts/analyze_and_export.py:147
↓ 4 callers
Function
load_maze
mllm_base_agent/environments/game/games/maze3d/maze3d_pygame.py:88
↓ 4 callers
Function
load_world_with_retry
( client, scene_name: str, base_timeout: float, retries: int = 2 )
mllm_base_agent/environments/carla/wrapper.py:116
↓ 4 callers
Function
merge_token_stats
Merge token stats, preferring non-empty primary values.
scripts/virtualhome/run_benchmark.py:996
↓ 4 callers
Function
merge_token_stats
Merge token stats, preferring non-empty primary values.
scripts/ai2thor/run_benchmark.py:872
↓ 4 callers
Function
normalize_task_id
ID ( , ) : - ai2thor_04000 -> ai2thor04000 - ai2thor04000 -> ai2thor04000
scripts/carla/run_benchmark.py:782
↓ 4 callers
Function
parse_action_sequence
action_sequence
scripts/carla/run_benchmark.py:568
↓ 4 callers
Function
read_result_status_info
Read structured result from result json. Returns keys: - has_result_json: bool - task_result: 'success' | 'failure' | None - fa
scripts/virtualhome/run_benchmark.py:1084
↓ 4 callers
Function
read_result_status_info
Read structured result from result json. Returns keys: - has_result_json: bool - task_result: 'success' | 'failure' | None - fa
scripts/ai2thor/run_benchmark.py:960
↓ 4 callers
Function
read_task_ids_from_csv
Read task IDs from CSV; when only_null, skip rows whose Completed is true/false.
mllm_base_agent/dual_agent/procthor/run_benchmark.py:121
↓ 4 callers
Function
read_task_metadata
, instruction golden_actions
scripts/carla/run_benchmark.py:528
↓ 4 callers
Method
stream
(self, initial_state: AgentState, config: Optional[dict] = None)
mllm_base_agent/agent/runner.py:481
↓ 4 callers
Function
surf_mid_point
(surf)
mllm_base_agent/environments/game/games/rubik_cube/main.py:92
↓ 4 callers
Function
task_dirs_for
(cfg: Dict[str, Any])
scripts/analyze_and_export.py:158
↓ 4 callers
Function
to_int
(value: Any)
mllm_base_agent/agent/runner.py:57
↓ 4 callers
Function
update_csv_task_record
CSV :Completed +
scripts/carla/run_benchmark.py:653
↓ 4 callers
Function
update_csv_task_status
CSV Completed Args: csv_path: CSV task_id: ID status: ('true' 'false') lock:
scripts/carla/run_benchmark.py:795
↓ 4 callers
Function
write_missing_result_diagnostic
Write a clear diagnostic file when task folder exists but no result JSON was produced.
scripts/virtualhome/run_benchmark.py:1221
↓ 4 callers
Function
write_missing_result_diagnostic
Write a clear diagnostic file when task folder exists but no result JSON was produced.
scripts/ai2thor/run_benchmark.py:1096
↓ 4 callers
Function
write_missing_result_diagnostic
( task_output_dir: str, task_id: str, return_code: Optional[int], stdout_text: str, stderr
mllm_base_agent/dual_agent/procthor/run_benchmark.py:373
↓ 3 callers
Method
_apply_depth_shading
[ ]
mllm_base_agent/environments/game/games/Snake/snake_adapter.py:298
↓ 3 callers
Method
_blank_image
(self)
mllm_base_agent/environments/carla/wrapper.py:1170
↓ 3 callers
Method
_build_success_predicate_from_condition
Build a predicate for a single condition dict.
mllm_base_agent/environments/virtualhome/wrapper.py:674
↓ 3 callers
Function
_child_process_env
()
scripts/virtualhome/run_benchmark.py:98
↓ 3 callers
Function
_default_tasks_root
()
scripts/carla/work/run_task.py:25
↓ 3 callers
Function
_default_tasks_root
; SPATIAL_TASKS_ROOT ( taskabs/)
scripts/virtualhome/work/run_task.py:28
↓ 3 callers
Function
_distance_params
(granularity: Optional[str])
actions/parser.py:104
↓ 3 callers
Method
_draw_dashed_line
mllm_base_agent/environments/game/games/Block3D/block3d_adapter.py:422
↓ 3 callers
Method
_draw_eye_icon
mllm_base_agent/environments/game/games/Block3D/block3d_adapter.py:441
↓ 3 callers
Method
_filter_visibility_object_ids
Remove room/character/structural ids from a visibility result.
mllm_base_agent/environments/virtualhome/wrapper.py:3282
↓ 3 callers
Function
_generate_single_floor
bounds: (min_x, max_x, min_y, max_y) ( )
data/game/maze3d_pro_bridge/generate.py:21
↓ 3 callers
Method
_generate_text_state
(self, info=None)
mllm_base_agent/environments/carla/wrapper.py:438
↓ 3 callers
Method
_generate_text_state
Generate text state description
mllm_base_agent/environments/carla/wrapper.py:1046
↓ 3 callers
Method
_get_active_camera_id
Return the currently selected first-person camera id.
mllm_base_agent/environments/virtualhome/wrapper.py:2873
↓ 3 callers
Method
_get_latest_image
(self)
mllm_base_agent/environments/carla/wrapper.py:572
↓ 3 callers
Method
_get_level_name
(self, level: int)
scripts/game/block3d_openai_evaluation.py:714
↓ 3 callers
Function
_get_state
Return (position_Vector3r, orientation_Quaternionr) of the drone.
scripts/embodiedcity/work/run_task.py:237
↓ 3 callers
Function
_get_state
Return (position_Vector3r, orientation_Quaternionr) of the drone.
mllm_base_agent/environments/embodiedcity/vln_agent.py:237
↓ 3 callers
Method
_get_visible_object_ids
Return IDs visible in the current first-person camera.
mllm_base_agent/environments/virtualhome/wrapper.py:3642
↓ 3 callers
Function
_json_safe
Convert runner state fragments to JSON-safe values.
mllm_base_agent/dual_agent/ai2thor/main.py:260
↓ 3 callers
Method
_method_accepts_granularity
(self, method)
mllm_base_agent/environments/game/input_sources/pygame_input_source.py:239
↓ 3 callers
Method
_node_matches_object_type
Check whether a graph node id matches the requested object type exactly.
mllm_base_agent/environments/virtualhome/wrapper.py:2009
↓ 3 callers
Function
_normalize_direction
(direction: str)
actions/parser.py:77
↓ 3 callers
Function
_normalize_granularity
(value: Optional[str])
actions/parser.py:89
↓ 3 callers
Method
_object_type_matches
(self, actual_type: str, expected_type: str)
mllm_base_agent/environments/ai2thor/wrapper.py:1914
↓ 3 callers
Function
_ordered_keys
(keys: set[str], preferred: tuple[str, ...])
scripts/aggregate_results_by_category.py:109
↓ 3 callers
Function
_point_in_polygon
( / ) Args: point_x: X point_z: Z polygon: , {"x": float, "y": int, "z": float}
evaluation/procthor/getters.py:9
↓ 3 callers
Method
_project_point
(self, x, y, z, offset_x=None, offset_y=None, scale_mult=1.0)
mllm_base_agent/environments/game/games/Snake/snake_adapter.py:306
↓ 3 callers
Method
_quat_to_yaw_rad
Convert Unity quaternion [x, y, z, w] to yaw radians.
mllm_base_agent/environments/virtualhome/wrapper.py:1220
↓ 3 callers
Function
_read_image_as_data_url
(image_path: str, max_retries: int, retry_delay: int)
mllm_base_agent/agent/runner.py:99
↓ 3 callers
Method
_rollback_character_to_walk_start
Rollback a compound WalkForward action to its starting pose.
mllm_base_agent/environments/virtualhome/wrapper.py:2320
↓ 3 callers
Method
_save_frame
(self, img, prefix)
mllm_base_agent/environments/carla/wrapper.py:594
↓ 3 callers
Method
_save_frame
(self, img, prefix)
mllm_base_agent/environments/carla/wrapper.py:1173
↓ 3 callers
Method
_surf_mid_point
mllm_base_agent/environments/game/games/rubik_cube/rubik_cube_adapter.py:335
↓ 3 callers
Method
_sync_yaw_cache_from_live
Sync client yaw cache from live graph, fallback to provided yaw if needed.
mllm_base_agent/environments/virtualhome/wrapper.py:3082
↓ 3 callers
Function
_vlm_display_name
(vlm, cfg: dict)
mllm_base_agent/dual_agent/procthor/main.py:147
↓ 3 callers
Method
apply_depth_shading
(self, color, scale)
mllm_base_agent/environments/game/games/Snake/main.py:193
↓ 3 callers
Function
benchmark_run_dirname
prefix: 'benchmark' | 'benchmark_sequential' save_name :{prefix}_{save_name}_{ }( ) save_name :{prefix}_{ }
scripts/procthor/run_benchmark.py:48
↓ 3 callers
Method
capture_frame
Returns: Optional[FrameData]: , None
mllm_base_agent/environments/game/core/input_source.py:45
↓ 3 callers
Function
check
(dist_f, dist_s)
mllm_base_agent/environments/game/games/maze3d_pro/main.py:134
↓ 3 callers
Function
classify_failure_outcome
Classify a failed run into model/external bucket for benchmark stats.
scripts/virtualhome/run_benchmark.py:1201
↓ 3 callers
Function
coerce_init_rotation_quat
Coerce init rotation payload to a discrete quaternion. Priority: 1) `char_yaw_degrees` when provided 2) `char_rotation` quaternion list [
mllm_base_agent/environments/virtualhome/utils.py:217
↓ 3 callers
Function
compute_dual_agent_max_steps_from_steps
Per-agent step budget for multi-agent tasks: max_steps = 10 + n.
actions/max_steps.py:90
↓ 3 callers
Function
copy_to_outputs_completed
(task_id: str, task_output_dir: str, outputs_completed_dir: str)
mllm_base_agent/dual_agent/procthor/run_benchmark.py:716
↓ 3 callers
Function
copy_to_outputs_completed
,
mllm_base_agent/dual_agent/ai2thor/run_benchmark.py:581
↓ 3 callers
Function
copytree_no_delete
; ,
mllm_base_agent/dual_agent/ai2thor/run_benchmark.py:571
↓ 3 callers
Function
create_vlm_from_config
Create a VLM instance from a config dict.
mllm_base_agent/dual_agent/procthor/main.py:127
↓ 3 callers
Function
derive_dual_golden_steps
Read n from ``golden_actions.steps`` for multi-agent tasks.
actions/max_steps.py:74
↓ 3 callers
Function
determine_failure_reason
(task_log_content: str = "", result_json: Optional[Path] = None)
mllm_base_agent/dual_agent/procthor/run_benchmark.py:635
↓ 3 callers
Function
determine_failure_reason
:JSON.failure_type > fail_reason > >
mllm_base_agent/dual_agent/ai2thor/run_benchmark.py:417
↓ 3 callers
Function
distance_to_polygon
( 0, ) Args: px, py: polygon: , [x, y] [x, y, z]
mllm_base_agent/environments/carla/wrapper.py:95
↓ 3 callers
Method
draw_dashed_line
(self, start_pos, end_pos, color=EYE_COLOR)
mllm_base_agent/environments/game/games/Block3D/main.py:165
↓ 3 callers
Method
draw_eye_icon
(self, pos, text)
mllm_base_agent/environments/game/games/Block3D/main.py:178
↓ 3 callers
Function
draw_plane
mllm_base_agent/environments/game/games/SOKOBAN_3D/sokoban_adapter.py:391
↓ 3 callers
Function
draw_plane
mllm_base_agent/environments/game/games/SOKOBAN_3D/sokoban_single_level.py:344
↓ 3 callers
Function
draw_plane
( centerPosX, centerPosY, centerPosZ, edgeLength, mode)
mllm_base_agent/environments/game/games/SOKOBAN_3D/sokoban_new.py:284
↓ 3 callers
Function
draw_poly
(pts, color, is_outline=True)
mllm_base_agent/environments/game/games/maze3d_pro/main.py:140
↓ 3 callers
Function
draw_stair_frame
(pts, thickness=3)
mllm_base_agent/environments/game/games/maze3d_pro/main.py:146
↓ 3 callers
Function
draw_text
(text, x_pos, y_pos, z_pos, size)
mllm_base_agent/environments/game/games/SOKOBAN_3D/sokoban_new.py:425
↓ 3 callers
Function
extract_function_calls
OpenAI , API Args: response: OpenAI API api_type: API , None Returns:
mllm_base_agent/environments/game/utils/openai_utils.py:591
↓ 3 callers
Function
extract_tag_block
(text: str, tag: str)
actions/response_parser.py:11
↓ 3 callers
Function
find_result_json
(task_output_dir: str)
mllm_base_agent/dual_agent/procthor/run_benchmark.py:409
↓ 3 callers
Function
find_result_json
Find dual-agent result json in a task output dir.
mllm_base_agent/dual_agent/procthor/run_csv_benchmark.py:56
↓ 3 callers
Function
find_result_json
Find dual-agent result json in a task output dir.
mllm_base_agent/dual_agent/ai2thor/run_csv_benchmark.py:62
← previous
next →
201–300 of 1,798, ranked by callers