MCPcopy Create free account

hub / github.com/HanqingWangAI/Active_VLN / functions

Functions180 in github.com/HanqingWangAI/Active_VLN

↓ 24 callersMethod_get_obs
(self)
active/env.py:371
↓ 22 callersMethodsize
(self)
active/env.py:239
↓ 10 callersMethod__init__
(self,in_dim=args.rnn_dim)
active/model.py:386
↓ 10 callersMethodtrain
(self, iters)
active/speaker.py:47
↓ 10 callersMethodvocab_size
(self)
active/utils.py:139
↓ 10 callersMethodzero_grad
(self)
active/agent.py:1705
↓ 9 callersMethodstep
(self)
active/utils.py:477
↓ 9 callersMethodtrain
Train for a given number of iterations
active/agent.py:1738
↓ 9 callersMethodupdate
(self, k)
active/utils.py:589
↓ 7 callersMethodget_input_feat
(self, obs)
active/agent.py:225
↓ 7 callersMethodload
Loads parameters (but not training state)
active/speaker.py:457
↓ 7 callersMethodmake_equiv_action
Interface between Panoramic view and Egocentric view It will convert the action panoramic view action a_t to equivalent egocentric v
active/agent.py:257
↓ 7 callersMethodnewEpisodes
(self, scanIds, viewpointIds, headings, elevations=None)
active/env.py:100
↓ 7 callersMethodsplit_sentence
Break sentence into a list of words and punctuation
active/utils.py:128
↓ 6 callersMethodadd_edge
(self, x, y, dis)
active/utils.py:582
↓ 6 callersMethodreset
(self)
active/utils.py:462
↓ 5 callersMethodfrom_shortest_path
:param viewpoints: [[], [], ....(batch_size)]. Only for dropout viewpoint :param get_first_feat: whether output the first feat
active/speaker.py:164
↓ 5 callersMethodrollout
:param train_ml: The weight to train with maximum likelihood :param train_rl: whether use RL in training :param reset:
active/agent.py:563
↓ 4 callersMethodpath
:param x: start :param y: end :return: the path from x to y [v1, v2, ..., v_n, y]
active/utils.py:603
↓ 3 callersMethod_next_minibatch
Store the minibach in 'self.batch' :param tile_one: Tile the one into batch_size :return: None
active/env.py:260
↓ 3 callersMethod_sort_batch
Extract instructions from a list of observations and sort by descending sequence length (to enable PyTorch packing).
active/agent.py:182
↓ 3 callersMethodbackward
(ctx, grad_output)
active/agent.py:41
↓ 3 callersFunctionload_datasets
:param splits: A list of split. if the split is "something@5000", it will use a random 5000 data from the data :return:
active/utils.py:52
↓ 3 callersMethodreset_epoch
Reset the data index to beginning of epoch. Primarily for testing. You must still call reset() for a new episode.
active/env.py:284
↓ 3 callersMethodteacher_forcing
(self, train=True, features=None, insts=None, for_listener=False)
active/speaker.py:208
↓ 2 callersMethod_feature_variable
Extract precomputed features into variable.
active/agent.py:202
↓ 2 callersFunction_get_ngrams
Extracts all n-grams upto a given maximum order from an input segment. Args: segment: text segment from which n-grams will be extracted. ma
active/bleu.py:28
↓ 2 callersMethod_score_item
Calculate error based on the final position in trajectory, and also the closest position (oracle stopping rule). The path co
active/eval.py:51
↓ 2 callersMethod_shortest_path_action
Determine next action on the shortest path to goal, for supervised training.
active/env.py:291
↓ 2 callersFunctionasMinutes
(s)
active/utils.py:222
↓ 2 callersFunctioncheck
(ar)
active/model.py:10
↓ 2 callersMethodexploration
(self, explore_env, cand_feat, mark_cand, h_t, h1, c_t, ctx, ctx_mask, batch_size, perm_idx, speak
active/agent.py:346
↓ 2 callersMethodfinalize
This is used for debug
active/utils.py:116
↓ 2 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
active/env.py:108
↓ 2 callersMethodinfer_batch
:param sampling: if not, use argmax. else use softmax_multinomial :param train: Whether in the train mode :return: if sampli
active/speaker.py:265
↓ 2 callersFunctionload_nav_graphs
Load connectivity graph for each scan
active/utils.py:24
↓ 2 callersMethodmake_candidate
(self, feature, scanId, viewpointId, viewId)
active/env.py:299
↓ 2 callersMethodrollout
Return a list of dicts containing instr_id:'xx', path:[(viewpointId, heading_rad, elevation_rad)]
active/agent.py:79
↓ 2 callersMethodscore
Evaluate each agent trajectory based on how close it got to the goal location
active/eval.py:76
↓ 2 callersMethodtest
(self, iters=None, **kwargs)
active/agent.py:87
↓ 2 callersMethodvisited
(self, k)
active/utils.py:600
↓ 1 callersMethod__init__
(self, env, results_path)
active/agent.py:63
↓ 1 callersMethod_candidate_variable
(self, obs, actions)
active/speaker.py:154
↓ 1 callersMethod_candidate_variable
(self, obs)
active/agent.py:209
↓ 1 callersMethod_dijkstra_exp
The dijkstra algorithm. Was called beam search to be consistent with existing work. But it actually finds the Exact K paths w
active/agent.py:1377
↓ 1 callersMethod_get_nearest
(self, scan, goal_id, path)
active/eval.py:41
↓ 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
active/env.py:242
↓ 1 callersMethod_make_id
(self, scanId, viewpointId)
active/env.py:97
↓ 1 callersMethod_teacher_action
Extract teacher actions into variable. :param obs: The observation. :param ended: Whether the action seq is ended :re
active/speaker.py:133
↓ 1 callersMethod_teacher_action
Extract teacher actions into variable. :param obs: The observation. :param ended: Whether the action seq is ended :re
active/agent.py:236
↓ 1 callersMethodadd_word
(self, word)
active/utils.py:122
↓ 1 callersFunctionangle_feature
(heading, elevation)
active/utils.py:390
↓ 1 callersMethodbeam_search
:param speaker: The speaker to be used in searching. :return: { "scan": XXX "instr_id":XXX,
active/agent.py:1600
↓ 1 callersFunctioncheck2
(ar)
active/model.py:14
↓ 1 callersFunctioncompute_bleu
Computes BLEU score of translated segments against one or more references. Args: reference_corpus: list of lists of references for each transla
active/bleu.py:48
↓ 1 callersMethodcopyinstance
(self)
active/env.py:143
↓ 1 callersMethodcopystate
(self, env)
active/env.py:134
↓ 1 callersMethoddecode_sentence
(self, encoding, length=None)
active/utils.py:164
↓ 1 callersFunctiondistance
Euclidean distance between two graph poses
active/utils.py:27
↓ 1 callersMethodencode_sentence
(self, sentence, max_length=None)
active/utils.py:142
↓ 1 callersFunctioneval_simple_agents
Run simple baselines on each split.
active/eval.py:181
↓ 1 callersMethodget_agent
(name)
active/agent.py:84
↓ 1 callersMethodget_insts
(self, wrapper=(lambda x: x))
active/speaker.py:62
↓ 1 callersMethodget_paths
(self)
active/graph.py:31
↓ 1 callersFunctionget_point_angle_feature
(baseViewId=0)
active/utils.py:415
↓ 1 callersMethodgt_words
See "utils.Tokenizer.encode_sentence(...)" for "instr_encoding" details
active/speaker.py:201
↓ 1 callersMethodinit_state
Initialize to zero cell states and hidden states.
active/model.py:47
↓ 1 callersMethodlate_action_taking
(self, traj, graph: GraphBatch)
active/agent.py:1893
↓ 1 callersMethodload
Loads parameters (but not training state)
active/agent.py:1829
↓ 1 callersMethodmakeActions
Take an action using the full state dependent action interface (with batched input). Every action element should be an (index, heading,
active/env.py:128
↓ 1 callersMethodmake_equiv_action
(self, a_t, perm_obs, perm_idx=None, traj=None)
active/speaker.py:98
↓ 1 callersMethodmake_label
(self, cpu_a_t_after, cpu_a_t_before, perm_idx)
active/agent.py:320
↓ 1 callersMethodmake_reward
(self, cpu_a_t_after, cpu_a_t_before, perm_idx)
active/agent.py:293
↓ 1 callersMethodnavigableLocations
(self, locations)
active/env.py:52
↓ 1 callersFunctionnew_simulator
()
active/utils.py:399
↓ 1 callersFunctionread_graph_features
(feature_store)
active/utils.py:262
↓ 1 callersFunctionread_graph_features_parallel
(feature_path)
active/utils.py:294
↓ 1 callersMethodsave
Snapshot models
active/speaker.py:440
↓ 1 callersMethodshrink
:param inst: The id inst :return: Remove the potential <BOS> and <EOS> If no <EOS> return empty list
active/utils.py:175
↓ 1 callersFunctiontest
()
active/utils.py:624
↓ 1 callersMethodwrite_results
(self)
active/agent.py:70
Method__init__
(self, splits, scans, tok)
active/eval.py:20
Method__init__
(self)
active/param.py:8
Method__init__
(self, env, listener, tok)
active/speaker.py:22
Method__init__
(self, tok, feature_size)
active/speaker.py:489
Method__init__
(self, vocab=None, encoding_length=20)
active/utils.py:96
Method__init__
(self)
active/utils.py:447
Method__init__
(self)
active/utils.py:457
Method__init__
(self)
active/utils.py:571
Method__init__
(self, batch_size)
active/graph.py:8
Method__init__
(self, env, results_path, tok, episode_len=20, scorer=None)
active/agent.py:127
Method__init__
(self,location)
active/env.py:31
Method__init__
(self, state)
active/env.py:44
Method__init__
1. Load pretrained image feature 2. Init the Simulator. :param feature_store: The name of file stored the feature. :p
active/env.py:65
Method__init__
(self, feature_store, batch_size=100, seed=10, splits=['train'], tokenizer=None, name=None)
active/env.py:158
Method__init__
(self, vocab_size, embedding_size, hidden_size, padding_idx, dropout_ratio, bidir
active/model.py:28
Method__init__
Initialize layer.
active/model.py:132
Method__init__
(self, embedding_size, hidden_size, dropout_ratio, feature_size=2048+4)
active/model.py:175
Method__init__
(self, hidden_size, dropout_ratio, feature_size=2048+4)
active/model.py:275
Method__init__
(self, hidden_size, dropout_ratio, feature_size=2048+4)
active/model.py:324
next →1–100 of 180, ranked by callers