MCPcopy Create free account

hub / github.com/MrZihan/HNR-VLN / functions

Functions586 in github.com/MrZihan/HNR-VLN

↓ 25 callersMethodstep_without_obs
(self, action: Union[str, int, MutableMapping_T[int, Union[str, int]]], dt: float = 1.0 / 60.0
habitat_extensions/habitat_simulator.py:62
↓ 24 callersMethod__init__
(self, config)
NeRF/waypoint_pred/transformer/pytorch_transformer/modeling_bert.py:408
↓ 22 callersMethod__init__
(self, config)
NeRF/models/etp/vilmodel_cmt.py:198
↓ 22 callersMethodload
(module, prefix='')
NeRF/waypoint_pred/transformer/pytorch_transformer/modeling_utils.py:483
↓ 21 callersMethodeval
r"""Main method of trainer evaluation. Calls _eval_checkpoint() that is specified in Trainer class that inherits from BaseRLTrainer or
NeRF/common/base_il_trainer.py:774
↓ 18 callersMethodupdate
(self, k)
NeRF/models/graph_utils.py:93
↓ 13 callersMethodstep
r"""This control method is called from ``Env`` on each ``step``.
habitat_extensions/nav.py:57
↓ 10 callersFunctionextract_instruction_tokens
Extracts instruction tokens from an instruction sensor if the tokens exist and are in a dict structure.
NeRF/common/utils.py:8
↓ 9 callersMethod__init__
( self, sim: Simulator, config: Config, *args: Any, **kwargs: Any )
habitat_extensions/measures.py:287
↓ 9 callersFunctionconstruct_envs
r"""Create VectorEnv object with specified config and env class type. To allow better performance, dataset are split into small ones for eac
NeRF/common/env_utils.py:35
↓ 8 callersFunctionpad_tensors_wgrad
B x [T, ...] torch tensors
NeRF/common/ops.py:46
↓ 8 callersMethodstep
(self, action, vis_info, *args, **kwargs)
NeRF/common/environments.py:445
↓ 7 callersMethod__init__
Conv1D layer as defined by Radford et al. for OpenAI GPT (and also used in GPT-2) Basically works like a Linear layer but the weights are
NeRF/waypoint_pred/transformer/pytorch_transformer/modeling_utils.py:532
↓ 7 callersMethod__init__
(self, d_model=512, nhead=8, num_encoder_layers=6, num_decoder_layers=6, dim_feedforward=2048
NeRF/common/transformer.py:20
↓ 6 callersMethod__init__
(self, config)
NeRF/waypoint_pred/transformer/waypoint_bert.py:175
↓ 6 callersFunctiongen_seq_masks
(seq_lens, max_len=None)
NeRF/common/ops.py:36
↓ 6 callersMethodget_agent_info
(self)
habitat_extensions/nav.py:332
↓ 6 callersMethodtranspose_for_scores
(self, x)
NeRF/waypoint_pred/transformer/pytorch_transformer/modeling_bert.py:293
↓ 6 callersMethodwith_pos_embed
(self, tensor, pos: Optional[Tensor])
NeRF/common/transformer.py:215
↓ 5 callersMethodfront_to_ghost_dist
(self, ghost_vp)
NeRF/models/graph_utils.py:259
↓ 5 callersMethodget_info
(self, observations: Observations)
NeRF/common/environments.py:75
↓ 5 callersFunctionprune_linear_layer
Prune a linear layer (a model parameters) to keep only entries in index. Return the pruned layer as a new layer with requires_grad=True.
NeRF/waypoint_pred/transformer/pytorch_transformer/modeling_utils.py:841
↓ 5 callersMethodreset
(self)
NeRF/common/environments.py:316
↓ 5 callersMethodwrap_act
wrap action, get obs if video_option
NeRF/common/environments.py:329
↓ 4 callersFunction_get_activation_fn
Return an activation function given a string
NeRF/common/transformer.py:469
↓ 4 callersMethod_initialize_policy
( self, config: Config, load_from_ckpt: bool, observation_space: Space,
NeRF/ss_trainer_ETP.py:201
↓ 4 callersMethodattention
(self, x: torch.Tensor)
NeRF/models/encoders/clip.py:45
↓ 4 callersFunctiondrawpoint
( img: np.ndarray, position: Union[Tuple[int], List[int]], color: List[int], meters_per_px: fl
habitat_extensions/maps.py:163
↓ 4 callersMethodforward_nerf
( self, scene_memory, position, direction, camera_angle_x,H,W,images=None,depths=None,clip_fts=None,i
NeRF/models/etp/vilmodel_cmt.py:824
↓ 4 callersMethodfrom_pretrained
r"""Instantiate a pretrained pytorch model from a pre-trained model configuration. The model is set in evaluation mode by default using `
NeRF/waypoint_pred/transformer/pytorch_transformer/modeling_utils.py:338
↓ 4 callersFunctionheading_from_quaternion
(quat: np.array)
NeRF/models/graph_utils.py:54
↓ 4 callersMethodload_checkpoint
(self, checkpoint_path, *args, **kwargs)
NeRF/common/base_il_trainer.py:165
↓ 4 callersFunctionstatic_to_grid
Return gridworld index of realworld coordinates assuming top-left corner is the origin. The real world coordinates of lower left corner are (c
habitat_extensions/maps.py:102
↓ 4 callersMethodtrain
(self)
NeRF/ss_trainer_ETP.py:463
↓ 4 callersMethodturn
angle: 0 ~ 360 degree
NeRF/common/environments.py:349
↓ 3 callersMethod__init__
( self, observation_space: Space, model_config: Config, num_actions, )
NeRF/models/Policy_ViewSelection_ETP.py:91
↓ 3 callersMethod__init__
(self, input_resolution: int, patch_size: int, width: int, layers: int, heads: int)
NeRF/models/encoders/clip.py:105
↓ 3 callersMethod__init__
Args: equ_h: (int) the height of the generated equirect equ_w: (int) the width of the generated equirect
habitat_extensions/obs_transformers.py:199
↓ 3 callersFunction_get_clones
(module, N)
NeRF/common/transformer.py:452
↓ 3 callersMethod_get_return_value
(self, action)
habitat_extensions/shortest_path_follower.py:59
↓ 3 callersMethod_scene_from_episode
r"""Helper method to get the scene name from an episode. Assumes the scene_id is formated /path/to/<scene_name>.<ext>
habitat_extensions/task.py:65
↓ 3 callersFunctioncalc_position_distance
(a, b)
NeRF/models/graph_utils.py:13
↓ 3 callersFunctionextend_neg_masks
mask from (N, L) into (N, 1(H), 1(L), L) and make it negative
NeRF/common/ops.py:25
↓ 3 callersFunctionget_camera_orientations12
()
NeRF/utils.py:166
↓ 3 callersFunctionget_config
r"""Create a unified config with default values. Initialized from the habitat_baselines default config. Overwritten by values from `config_pat
NeRF/config/default.py:190
↓ 3 callersMethodget_observation_at
(self, source_position: List[float], source_rotation: List[Union[int, np.float64]],
NeRF/common/environments.py:106
↓ 3 callersMethodget_plan_frame
(self, vis_info)
NeRF/common/environments.py:436
↓ 3 callersMethodget_polar_angle
(self)
habitat_extensions/measures.py:515
↓ 3 callersFunctionis_slurm_batch_job
r"""Heuristic to determine if a slurm job is a batch job or not. Batch jobs will have a job name that is not a shell unless the user specifically
NeRF/common/env_utils.py:20
↓ 3 callersFunctionnavigator_video_frame
( observations, info, vis_info=None, map_k="top_down_map_vlnce", )
habitat_extensions/utils.py:670
↓ 3 callersMethodpreprocess_depth
(self, depth)
NeRF/models/Policy_ViewSelection_ETP.py:183
↓ 3 callersMethodreduce
(self, mask)
NeRF/common/aux_losses.py:24
↓ 3 callersMethodrollout
(self, mode, ml_weight=None, sample_ratio=None)
NeRF/ss_trainer_ETP.py:842
↓ 3 callersMethodtie_weights
Make sure we are sharing the input and output embeddings. Export to TorchScript can't handle parameter sharing so we are cloning them ins
NeRF/waypoint_pred/transformer/pytorch_transformer/modeling_bert.py:845
↓ 3 callersMethodtranspose_for_scores
(self, x)
NeRF/models/etp/vilmodel_cmt.py:99
↓ 3 callersMethodtranspose_for_scores
(self, x)
NeRF/models/etp/vilmodel_cmt.py:322
↓ 2 callersMethodRGB_to_BGR
(self, cvimg)
NeRF/ss_trainer_ETP.py:815
↓ 2 callersMethod__init__
( self, device, patch_size=16 )
NeRF/models/encoders/resnet_encoders.py:256
↓ 2 callersMethod__init__
( self, sim: Simulator, config: Config, *args: Any, **kwargs: Any )
habitat_extensions/sensors.py:32
↓ 2 callersFunction_block_shuffle
(lst, block_size)
NeRF/dagger_trainer.py:91
↓ 2 callersMethod_eval_checkpoint
r"""Evaluates a single checkpoint. Args: checkpoint_path: path of checkpoint writer: tensorboard writer object
NeRF/common/base_il_trainer.py:261
↓ 2 callersMethod_geo_dist
(self, goal_pos: np.array)
habitat_extensions/shortest_path_follower.py:110
↓ 2 callersMethod_initialize_policy
( self, config: Config, load_from_ckpt: bool, observation_space: Space,
NeRF/common/base_il_trainer.py:77
↓ 2 callersMethod_localize
(self, qpos, kpos_dict, ignore_height=False)
NeRF/models/graph_utils.py:163
↓ 2 callersMethod_pause_envs
(envs, batch, envs_to_pause)
NeRF/ss_trainer_ETP.py:451
↓ 2 callersMethod_pause_envs
( envs_to_pause, envs, recurrent_hidden_states, not_done_masks, prev_a
NeRF/common/base_il_trainer.py:222
↓ 2 callersMethod_reset_agent_state
(self, state: habitat_sim.AgentState)
habitat_extensions/shortest_path_follower.py:105
↓ 2 callersMethod_tie_or_clone_weights
Tie or clone module weights depending of weither we are using TorchScript or not
NeRF/waypoint_pred/transformer/pytorch_transformer/modeling_utils.py:275
↓ 2 callersMethodadd_edge
(self, x, y, dis)
NeRF/models/graph_utils.py:86
↓ 2 callersFunctionangle_feature_torch
(headings: torch.Tensor)
NeRF/models/utils.py:49
↓ 2 callersFunctionappend_text_to_image
r"""Appends text underneath an image of size (height, width, channels). The returned image has white text on a black background. Uses textwrap to
habitat_extensions/utils.py:609
↓ 2 callersFunctioncached_path
Given something that might be a URL (or might be a local path), determine which. If it's a URL, download the file and cache it, and retur
NeRF/waypoint_pred/transformer/pytorch_transformer/file_utils.py:93
↓ 2 callersFunctioncalculate_vp_rel_pos_fts
(a, b, base_heading=0, base_elevation=0, to_clock=False)
NeRF/models/graph_utils.py:21
↓ 2 callersMethodcheck_config_paths_exist
(config: Config)
habitat_extensions/task.py:59
↓ 2 callersMethodcollect_val_traj
(self)
NeRF/common/base_il_trainer.py:732
↓ 2 callersFunctioncolorize_draw_agent_and_fit_to_height
r"""Given the output of the TopDownMap measure, colorizes the map, draws the agent, and fits to a desired output height :param info: The outp
habitat_extensions/utils.py:549
↓ 2 callersMethodcurrent_dist_to_refpath
(self, path)
NeRF/common/environments.py:154
↓ 2 callersFunctiondis_to_con
(path, amount=0.25)
NeRF/common/utils.py:43
↓ 2 callersFunctiondrawline
https://stackoverflow.com/questions/26690932/opencv-rectangle-with-dotted-or-dashed-lines style: "dotted", "dashed", or "filled"
habitat_extensions/maps.py:124
↓ 2 callersMethodextract_roles_from_config
(cls, config: Config)
habitat_extensions/task.py:166
↓ 2 callersMethodfrom_config
( cls, config: Config, observation_space: Space, action_space: Space )
NeRF/models/Policy_ViewSelection_ETP.py:64
↓ 2 callersMethodfrom_json
( self, json_str: str )
habitat_extensions/task.py:293
↓ 2 callersFunctiongenerate_video
Generate video according to specified information. Using a custom verion instead of Habitat's that passes FPS to video maker. Args: v
habitat_extensions/utils.py:711
↓ 2 callersMethodgetSceneMemory
(self, batch_id, only_feature=False)
NeRF/models/Policy_ViewSelection_ETP.py:518
↓ 2 callersFunctionget_camera_orientations12
()
NeRF/common/utils.py:60
↓ 2 callersMethodget_ckpt_id
(self, ckpt_path)
NeRF/common/base_il_trainer.py:891
↓ 2 callersMethodget_node_embeds
(self, vp)
NeRF/models/graph_utils.py:272
↓ 2 callersFunctionget_rays
(args, H, W)
NeRF/models/etp/nerf.py:205
↓ 2 callersMethodget_scenes_to_load
r"""Return a sorted list of scenes
habitat_extensions/task.py:72
↓ 2 callersMethodinference
(self)
NeRF/ss_trainer_ETP.py:695
↓ 2 callersMethodinit_weights
Initialize the weights.
NeRF/waypoint_pred/transformer/pytorch_transformer/modeling_bert.py:550
↓ 2 callersMethodis_active
(self)
NeRF/common/aux_losses.py:34
↓ 2 callersMethodmulti_step_control
(self, path, tryout, vis_info)
NeRF/common/environments.py:432
↓ 2 callersFunctionpano_observations_to_image
Creates a rudimentary frame for a panoramic observation. Includes RGB, depth, and a top-down map. TODO: create a visually-pleasing stitched pa
habitat_extensions/utils.py:116
↓ 2 callersFunctionraw2rgb
Transforms model's predictions to semantically meaningful values. Args: raw: [num_rays, num_samples along ray, 4]. Prediction from model
NeRF/models/etp/nerf.py:125
↓ 2 callersFunctionrun_nerf_feature
(args, model, scene_memory, position, direction, H=8, W=8, clip_fts=None, is_train=True)
NeRF/models/etp/nerf.py:413
↓ 2 callersFunctionrun_nerf_rgb
(args, model, scene_memory, position, direction, H=224, W=224, images=None, depths=None, is_train=True)
NeRF/models/etp/nerf.py:222
↓ 2 callersMethodsingle_step_control
(self, pos, tryout, vis_info)
NeRF/common/environments.py:372
↓ 2 callersFunctionsplit_s3_path
Split a full s3 path into the bucket name and path.
NeRF/waypoint_pred/transformer/pytorch_transformer/file_utils.py:123
↓ 2 callersMethodteleport
(self, pos)
NeRF/common/environments.py:369
next →1–100 of 586, ranked by callers