MCPcopy Create free account

hub / github.com/GengzeZhou/NavGPT / functions

Functions118 in github.com/GengzeZhou/NavGPT

↓ 6 callersMethod_get_obs
(self)
nav_src/env.py:208
↓ 5 callersMethodget_navigable_str
Return the navigable viewpoints as a string.
nav_src/agent.py:233
↓ 5 callersMethodmodify_heading_angles
(self, heading_angle, observation_list, candidate_dict, object_list)
nav_src/agent.py:251
↓ 4 callersMethodget_results
(self, detailed_output=False)
nav_src/agent_base.py:11
↓ 4 callersMethodupdate
(self, k)
nav_src/utils/graph_utils.py:62
↓ 3 callersMethodmakeAction
Make action and update the agent's state.
nav_src/env.py:70
↓ 2 callersMethodadd_edge
(self, x, y, dis)
nav_src/utils/graph_utils.py:55
↓ 2 callersMethodadd_node
(self, node)
nav_src/utils/graph_utils.py:175
↓ 2 callersFunctionasMinutes
(s)
nav_src/utils/logger.py:16
↓ 2 callersFunctionconstruct_instrs
(anno_dir, dataset, splits)
nav_src/data_utils.py:16
↓ 2 callersMethodeval_metrics
Evaluate each agent trajectory based on how close it got to the goal location the path contains [view_id, angle, vofv]
nav_src/env.py:294
↓ 2 callersMethodgetCandidate
Get the agent's candidate list from pre-stored navigable dict.
nav_src/env.py:63
↓ 2 callersMethodgetState
(self)
nav_src/env.py:53
↓ 2 callersMethodget_history
Return the history of actions taken.
nav_src/agent.py:228
↓ 2 callersFunctionget_world_size
()
nav_src/utils/distributed.py:85
↓ 2 callersFunctionlength
(nodes)
nav_src/eval_utils.py:29
↓ 2 callersFunctionload_instr_datasets
(anno_dir, dataset, splits)
nav_src/data_utils.py:5
↓ 2 callersMethodmake_equiv_action
Interface between Panoramic view and Egocentric view Take in the next viewpoint ID and move the agent to that viewpoint retur
nav_src/agent.py:624
↓ 2 callersMethodnewEpisode
( self, scan_ID: str, viewpoint_ID: str, heading: int,
nav_src/env.py:31
↓ 2 callersMethodparse_action
(self, llm_output: str)
nav_src/agent.py:207
↓ 2 callersMethodrollout
Return a list of dicts containing instr_id:'xx', path:[(viewpointId, heading_rad, elevation_rad)]
nav_src/agent_base.py:23
↓ 2 callersMethodsize
(self)
nav_src/env.py:164
↓ 2 callersFunctionwrite_to_record_file
(data, file_path, verbose=True)
nav_src/utils/logger.py:8
↓ 1 callersMethod_construct_scratchpad
Construct the scratchpad that lets the agent continue its thought process.
nav_src/agent.py:117
↓ 1 callersMethod_create_back_trace_tool
Create a tool to back trace during navigation. The tool is invoked with the history of navigation trajectory. Using the LLM to find a
nav_src/agent.py:470
↓ 1 callersMethod_create_make_action_tool
Create a tool to make single action prediction in MP3D. The tool is invoked with the simulation environment and records the action ta
nav_src/agent.py:340
↓ 1 callersMethod_eval_item
(self, scan, pred_path, gt_path)
nav_src/env.py:264
↓ 1 callersMethod_get_gt_trajs
(self, data)
nav_src/env.py:157
↓ 1 callersMethod_get_nearest
(self, shortest_distances, goal_id, path)
nav_src/env.py:254
↓ 1 callersMethod_load_nav_graphs
load graph from self.scan, Store the graph {scan_id: graph} in self.graphs Store the shortest path {scan_id: {view_id_x: {vie
nav_src/env.py:167
↓ 1 callersMethod_next_minibatch
Store the minibach in 'self.batch'
nav_src/env.py:185
↓ 1 callersFunctionangle_feature
(heading, elevation, angle_feat_size)
nav_src/utils/data.py:99
↓ 1 callersFunctionasync_generate
(chain, viewpointID, ob_list)
nav_src/scripts/obs_summarizer.py:13
↓ 1 callersMethodbfs_shortest_path
(self, start, end)
nav_src/utils/graph_utils.py:187
↓ 1 callersFunctionbuild_dataset
(args)
nav_src/NavGPT.py:13
↓ 1 callersFunctioncal_cls
(shortest_distances, prediction, reference, threshold=3.0)
nav_src/eval_utils.py:28
↓ 1 callersFunctioncal_dtw
(shortest_distances, prediction, reference, success=None, threshold=3.0)
nav_src/eval_utils.py:6
↓ 1 callersFunctioncalc_position_distance
(a, b)
nav_src/utils/graph_utils.py:7
↓ 1 callersFunctioncalculate_vp_rel_pos_fts
(a, b, base_heading=0, base_elevation=0)
nav_src/utils/graph_utils.py:15
↓ 1 callersMethodcreate_vln_agent
Instantiate API planner and controller for a given trajectory. We use a top-level "orchestrator" agent to invoke the planner and controller,
nav_src/agent.py:558
↓ 1 callersFunctiondistance
Euclidean distance between two graph poses
nav_src/utils/data.py:54
↓ 1 callersMethoddistance
(self, x, y)
nav_src/utils/graph_utils.py:49
↓ 1 callersFunctionextract_action_and_tool_input
(text)
nav_src/scripts/test_parse.py:4
↓ 1 callersMethodfrom_model_id
Construct the pipeline object from model_id and task.
nav_src/LLMs/Langchain_llama.py:24
↓ 1 callersFunctiongenerate_concurrently
(chain, obs)
nav_src/scripts/obs_summarizer.py:21
↓ 1 callersMethodgetStates
Get list of states augmented with precomputed image features. rgb field will be empty. Agent's current view [0-35] (set only when vie
nav_src/env.py:108
↓ 1 callersFunctionget_angle_fts
(headings, elevations, angle_feat_size)
nav_src/utils/graph_utils.py:34
↓ 1 callersMethodget_his_viewpoints
Return the history of visited viewpoints for back tracing.
nav_src/agent.py:218
↓ 1 callersMethodget_image_observation
(self, scan, viewpoint)
nav_src/utils/data.py:30
↓ 1 callersFunctionget_point_angle_feature
(sim, angle_feat_size, baseViewId=0)
nav_src/utils/data.py:104
↓ 1 callersMethodinit_trajecotry
Initialize the trajectory with the given observation.
nav_src/agent.py:329
↓ 1 callersFunctionis_dist_avail_and_initialized
()
nav_src/utils/distributed.py:78
↓ 1 callersFunctionload_init_param
Load parameters for the rendezvous distributed procedure
nav_src/utils/distributed.py:13
↓ 1 callersFunctionload_nav_graphs
Load connectivity graph for each scan
nav_src/utils/data.py:51
↓ 1 callersFunctionmain
()
nav_src/NavGPT.py:95
↓ 1 callersMethodmakeActions
Take an action using the full state dependent action interface (with batched input)
nav_src/env.py:123
↓ 1 callersFunctionmerge_json_files
(base_dir)
nav_src/scripts/merge_preds.py:5
↓ 1 callersMethodnewEpisodes
(self, scanIds, viewpointIds, headings)
nav_src/env.py:104
↓ 1 callersFunctionparse_args
()
nav_src/parser.py:5
↓ 1 callersMethodpath
:param x: start :param y: end :return: the path from x to y [v1, v2, ..., v_n, y]
nav_src/utils/graph_utils.py:76
↓ 1 callersFunctionpostprocess_args
(args)
nav_src/parser.py:56
↓ 1 callersMethodreset
Load a new minibatch / episodes.
nav_src/env.py:238
↓ 1 callersMethodstep
Take action (same interface as makeActions)
nav_src/env.py:248
↓ 1 callersMethodtest
(self, iters=None, **kwargs)
nav_src/agent_base.py:31
↓ 1 callersMethodupdateGraph
(self)
nav_src/env.py:48
↓ 1 callersMethodupdate_connection
(self, node1, node2)
nav_src/utils/graph_utils.py:179
↓ 1 callersFunctionvalid
(args, val_envs)
nav_src/NavGPT.py:35
↓ 1 callersFunctionvalid_from_file
(args, val_envs)
nav_src/NavGPT.py:79
↓ 1 callersMethodvisited
(self, k)
nav_src/utils/graph_utils.py:73
Method__init__
(self, env)
nav_src/agent_base.py:7
Method__init__
Initialize the LLM Navigation Agent. Args: env: The Matterport3D environment. config: The configuration.
nav_src/agent.py:146
Method__init__
( self, navigable_dir: str,)
nav_src/env.py:19
Method__init__
1. Load pretrained image feature 2. Init the Simulator. :param feat_db: The name of file stored the feature. :param b
nav_src/env.py:87
Method__init__
( self, view_db, instr_data, connectivity_dir, navigable_dir, batch_size=1, seed=0, name=None,
nav_src/env.py:132
Method__init__
(self)
nav_src/utils/logger.py:29
Method__init__
(self)
nav_src/utils/graph_utils.py:44
Method__init__
(self, start_vp)
nav_src/utils/graph_utils.py:96
Method__init__
(self)
nav_src/utils/graph_utils.py:172
Method__init__
(self, img_obs_dir, img_obs_sum_dir, img_obj_dir)
nav_src/utils/data.py:24
Method_back_trace
Back trace the action plan.
nav_src/agent.py:486
Method_call
( self, prompt: str, stop: Optional[List[str]] = None, run_manager: Optional[C
nav_src/LLMs/Langchain_llama.py:57
Method_identifying_params
Get the identifying parameters.
nav_src/LLMs/Langchain_llama.py:75
Method_llm_type
(self)
nav_src/LLMs/Langchain_llama.py:20
Method_make_action
Make single step action in MatterSim.
nav_src/agent.py:364
Method_make_id
(self, scanId, viewpointId)
nav_src/env.py:101
Method_type
(self)
nav_src/agent.py:110
Functionall_gather
Run all_gather on arbitrary picklable data (not necessarily tensors) Args: data: any picklable object Returns: list[data]
nav_src/utils/distributed.py:90
Methodangle_to_left_right
(angle)
nav_src/agent.py:260
Functiongen_seq_masks
(seq_lens, max_len=None)
nav_src/utils/ops.py:22
Methodget_agent
(name)
nav_src/agent_base.py:28
Functionget_all_point_angle_feature
(sim, angle_feat_size)
nav_src/utils/data.py:126
Methodget_format_instructions
(self)
nav_src/agent.py:62
Methodget_full_inputs
Create the full inputs for the LLMChain from intermediate steps.
nav_src/agent.py:132
Methodget_node_embed
(self, vp)
nav_src/utils/graph_utils.py:124
Methodget_pos_fts
(self, cur_vp, gmap_vpids, cur_heading, cur_elevation, angle_feat_size=4)
nav_src/utils/graph_utils.py:127
Functioninit_distributed
(opts)
nav_src/utils/distributed.py:64
Functionis_default_gpu
(opts)
nav_src/utils/distributed.py:74
Functionlength2mask
(length, size=None)
nav_src/utils/misc.py:12
Functionmerge_dist_results
(results)
nav_src/utils/distributed.py:160
Functionnew_simulator
(connectivity_dir, scan_data_dir=None)
nav_src/utils/data.py:78
next →1–100 of 118, ranked by callers