Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HanqingWangAI/Active_VLN
/ functions
Functions
180 in github.com/HanqingWangAI/Active_VLN
⨍
Functions
180
◇
Types & classes
27
↓ 24 callers
Method
_get_obs
(self)
active/env.py:371
↓ 22 callers
Method
size
(self)
active/env.py:239
↓ 10 callers
Method
__init__
(self,in_dim=args.rnn_dim)
active/model.py:386
↓ 10 callers
Method
train
(self, iters)
active/speaker.py:47
↓ 10 callers
Method
vocab_size
(self)
active/utils.py:139
↓ 10 callers
Method
zero_grad
(self)
active/agent.py:1705
↓ 9 callers
Method
step
(self)
active/utils.py:477
↓ 9 callers
Method
train
Train for a given number of iterations
active/agent.py:1738
↓ 9 callers
Method
update
(self, k)
active/utils.py:589
↓ 7 callers
Method
get_input_feat
(self, obs)
active/agent.py:225
↓ 7 callers
Method
load
Loads parameters (but not training state)
active/speaker.py:457
↓ 7 callers
Method
make_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 callers
Method
newEpisodes
(self, scanIds, viewpointIds, headings, elevations=None)
active/env.py:100
↓ 7 callers
Method
split_sentence
Break sentence into a list of words and punctuation
active/utils.py:128
↓ 6 callers
Method
add_edge
(self, x, y, dis)
active/utils.py:582
↓ 6 callers
Method
reset
(self)
active/utils.py:462
↓ 5 callers
Method
from_shortest_path
:param viewpoints: [[], [], ....(batch_size)]. Only for dropout viewpoint :param get_first_feat: whether output the first feat
active/speaker.py:164
↓ 5 callers
Method
rollout
: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 callers
Method
path
:param x: start :param y: end :return: the path from x to y [v1, v2, ..., v_n, y]
active/utils.py:603
↓ 3 callers
Method
_next_minibatch
Store the minibach in 'self.batch' :param tile_one: Tile the one into batch_size :return: None
active/env.py:260
↓ 3 callers
Method
_sort_batch
Extract instructions from a list of observations and sort by descending sequence length (to enable PyTorch packing).
active/agent.py:182
↓ 3 callers
Method
backward
(ctx, grad_output)
active/agent.py:41
↓ 3 callers
Function
load_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 callers
Method
reset_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 callers
Method
teacher_forcing
(self, train=True, features=None, insts=None, for_listener=False)
active/speaker.py:208
↓ 2 callers
Method
_feature_variable
Extract precomputed features into variable.
active/agent.py:202
↓ 2 callers
Function
_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 callers
Method
_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 callers
Method
_shortest_path_action
Determine next action on the shortest path to goal, for supervised training.
active/env.py:291
↓ 2 callers
Function
asMinutes
(s)
active/utils.py:222
↓ 2 callers
Function
check
(ar)
active/model.py:10
↓ 2 callers
Method
exploration
(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 callers
Method
finalize
This is used for debug
active/utils.py:116
↓ 2 callers
Method
getStates
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 callers
Method
infer_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 callers
Function
load_nav_graphs
Load connectivity graph for each scan
active/utils.py:24
↓ 2 callers
Method
make_candidate
(self, feature, scanId, viewpointId, viewId)
active/env.py:299
↓ 2 callers
Method
rollout
Return a list of dicts containing instr_id:'xx', path:[(viewpointId, heading_rad, elevation_rad)]
active/agent.py:79
↓ 2 callers
Method
score
Evaluate each agent trajectory based on how close it got to the goal location
active/eval.py:76
↓ 2 callers
Method
test
(self, iters=None, **kwargs)
active/agent.py:87
↓ 2 callers
Method
visited
(self, k)
active/utils.py:600
↓ 1 callers
Method
__init__
(self, env, results_path)
active/agent.py:63
↓ 1 callers
Method
_candidate_variable
(self, obs, actions)
active/speaker.py:154
↓ 1 callers
Method
_candidate_variable
(self, obs)
active/agent.py:209
↓ 1 callers
Method
_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 callers
Method
_get_nearest
(self, scan, goal_id, path)
active/eval.py:41
↓ 1 callers
Method
_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 callers
Method
_make_id
(self, scanId, viewpointId)
active/env.py:97
↓ 1 callers
Method
_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 callers
Method
_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 callers
Method
add_word
(self, word)
active/utils.py:122
↓ 1 callers
Function
angle_feature
(heading, elevation)
active/utils.py:390
↓ 1 callers
Method
beam_search
:param speaker: The speaker to be used in searching. :return: { "scan": XXX "instr_id":XXX,
active/agent.py:1600
↓ 1 callers
Function
check2
(ar)
active/model.py:14
↓ 1 callers
Function
compute_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 callers
Method
copyinstance
(self)
active/env.py:143
↓ 1 callers
Method
copystate
(self, env)
active/env.py:134
↓ 1 callers
Method
decode_sentence
(self, encoding, length=None)
active/utils.py:164
↓ 1 callers
Function
distance
Euclidean distance between two graph poses
active/utils.py:27
↓ 1 callers
Method
encode_sentence
(self, sentence, max_length=None)
active/utils.py:142
↓ 1 callers
Function
eval_simple_agents
Run simple baselines on each split.
active/eval.py:181
↓ 1 callers
Method
get_agent
(name)
active/agent.py:84
↓ 1 callers
Method
get_insts
(self, wrapper=(lambda x: x))
active/speaker.py:62
↓ 1 callers
Method
get_paths
(self)
active/graph.py:31
↓ 1 callers
Function
get_point_angle_feature
(baseViewId=0)
active/utils.py:415
↓ 1 callers
Method
gt_words
See "utils.Tokenizer.encode_sentence(...)" for "instr_encoding" details
active/speaker.py:201
↓ 1 callers
Method
init_state
Initialize to zero cell states and hidden states.
active/model.py:47
↓ 1 callers
Method
late_action_taking
(self, traj, graph: GraphBatch)
active/agent.py:1893
↓ 1 callers
Method
load
Loads parameters (but not training state)
active/agent.py:1829
↓ 1 callers
Method
makeActions
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 callers
Method
make_equiv_action
(self, a_t, perm_obs, perm_idx=None, traj=None)
active/speaker.py:98
↓ 1 callers
Method
make_label
(self, cpu_a_t_after, cpu_a_t_before, perm_idx)
active/agent.py:320
↓ 1 callers
Method
make_reward
(self, cpu_a_t_after, cpu_a_t_before, perm_idx)
active/agent.py:293
↓ 1 callers
Method
navigableLocations
(self, locations)
active/env.py:52
↓ 1 callers
Function
new_simulator
()
active/utils.py:399
↓ 1 callers
Function
read_graph_features
(feature_store)
active/utils.py:262
↓ 1 callers
Function
read_graph_features_parallel
(feature_path)
active/utils.py:294
↓ 1 callers
Method
save
Snapshot models
active/speaker.py:440
↓ 1 callers
Method
shrink
:param inst: The id inst :return: Remove the potential <BOS> and <EOS> If no <EOS> return empty list
active/utils.py:175
↓ 1 callers
Function
test
()
active/utils.py:624
↓ 1 callers
Method
write_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