MCPcopy Create free account

hub / github.com/NVlabs/CTG / functions

Functions1,831 in github.com/NVlabs/CTG

↓ 5 callersMethodlog_step
(self, obs, action: RolloutAction)
tbsim/utils/rollout_logger.py:246
↓ 5 callersFunctionobtain_active_agent_index
(state_buffer)
tbsim/envs/env_metrics.py:961
↓ 5 callersFunctionobtain_map_enc
( image, map_encoder, pos, yaw, raster_from_agent, mask,
tbsim/models/cnn_roi_encoder.py:499
↓ 5 callersMethodpredict
Generate a prediction based on latent prior (instead of sample) and condition inputs Args: condition_inputs (dict, torch
tbsim/models/vaes.py:408
↓ 5 callersMethodreset
(self)
tbsim/utils/guidance_metrics.py:803
↓ 5 callersMethodscale_traj
scale the trajectory from original scale to standard normal distribution Note: Support both agent-centric and scene-centr
tbsim/models/scenediffuser.py:1065
↓ 5 callersMethodtimed
(self)
tbsim/utils/timer.py:37
↓ 4 callersFunctionROI_align
Given feature layers and proposals return bilinear interpolated points in feature layer Args: features (torch.Tensor): Tensor of shap
tbsim/models/cnn_roi_encoder.py:186
↓ 4 callersMethod__init__
- scene_idx : which scene index this guidance is used for (within each batch, i.e. the LOCAL scene index) - params : param dict that
tbsim/utils/guidance_metrics.py:36
↓ 4 callersMethod__init__
(self, device)
tbsim/policies/hardcoded.py:99
↓ 4 callersMethod__setattr__
(self, name, value)
tbsim/configs/config.py:35
↓ 4 callersMethod_clear
(self)
tbsim/utils/diffuser_utils/progress.py:88
↓ 4 callersFunction_get_in_out_as_trajectories
Convert the input (log-replayed) and output (simulated) trajectories into world space. Apply availability on the log-replayed one :param in_o
tbsim/l5kit/visualizer.py:144
↓ 4 callersMethod_hook
(cls, item)
tbsim/configs/config.py:69
↓ 4 callersFunctionagent_index_by_scene
(agent_scene_index, all_scene_index)
tbsim/envs/env_metrics.py:98
↓ 4 callersFunctionagent_to_raster_np
(pt_tensor, trans_mat)
tbsim/utils/vis_utils.py:24
↓ 4 callersFunctioncat
(arr, dim)
tbsim/models/diffuser_helpers.py:714
↓ 4 callersMethodclear_guidance
(self)
tbsim/algos/algos.py:207
↓ 4 callersFunctioncollision_loss
Calculate collision loss among predicted edges along a batch of trajectories Args: pred_edges (dict): A dict that maps collision type
tbsim/utils/loss_utils.py:510
↓ 4 callersMethodcompute_kl_loss
Compute KL Divergence loss Args: outputs (dict): outputs of the self.forward() call Returns: a dict
tbsim/models/vaes.py:450
↓ 4 callersFunctiondraw_agent_boxes
(image, pos, yaw, extent, raster_from_agent, outline_color, fill_color)
tbsim/utils/vis_utils.py:95
↓ 4 callersFunctiondraw_trajectories
(ax, trajectories, raster_from_world, linewidth, alpha=1.0, use_agt_color=False, agt_color=None, z=None)
tbsim/utils/scene_edit_utils.py:1009
↓ 4 callersMethodextract_features
(self, data_batch, return_encoder_feats=False)
tbsim/models/multiagent_models.py:260
↓ 4 callersMethodforward
U-Net forward by concatenating input feature (x1) with mirroring encoding feature maps channel-wise (x2) Args: x1 (torch.
tbsim/models/base_models.py:272
↓ 4 callersMethodget_current_states_all_agents
(cls, batch: dict, step_time, dyn_type: dynamics.DynType)
tbsim/utils/batch_utils.py:68
↓ 4 callersMethodget_frame
( self, scene_index: int, state_index: int, track_id: Optional[int] = None )
tbsim/l5kit/l5_ego_dataset.py:92
↓ 4 callersMethodget_min_len
Return the minimum number of frames between the scenes :return: the minimum number of frames
tbsim/l5kit/simulation_dataset.py:117
↓ 4 callersMethodget_observation
(self)
tbsim/envs/base.py:44
↓ 4 callersMethodget_observation
(self)
tbsim/envs/env_avdata.py:264
↓ 4 callersFunctionget_raster_pix2m
()
tbsim/utils/trajdata_utils.py:63
↓ 4 callersMethodis_done
(self)
tbsim/envs/base.py:52
↓ 4 callersFunctionlog_normal
Log probability of tensor x under diagonal multivariate normal with mean m and variance v. The last dimension of the tensors is treated a
tbsim/utils/loss_utils.py:78
↓ 4 callersMethodpredict_start_from_noise
if self.predict_epsilon, model output is (scaled) noise; otherwise, model predicts x0 directly
tbsim/models/scenediffuser.py:1234
↓ 4 callersMethodpredict_start_from_noise
if self.predict_epsilon, model output is (scaled) noise; otherwise, model predicts x0 directly
tbsim/models/diffuser.py:710
↓ 4 callersFunctionreshape_dimensions_single
Reshape selected dimensions in a tensor to a target dimension. Args: x (torch.Tensor): tensor to reshape begin_axis (int): b
tbsim/utils/tensor_utils.py:533
↓ 4 callersFunctionround_2pi
(x)
tbsim/utils/tensor_utils.py:1087
↓ 4 callersMethodsample
(self, data_batch, n)
tbsim/models/rasterized_models.py:322
↓ 4 callersMethodscale_traj
- traj: B x T x D
tbsim/models/diffuser.py:559
↓ 4 callersMethodset_description
(self, params=[])
tbsim/utils/diffuser_utils/progress.py:47
↓ 4 callersFunctionset_global_trajdata_batch_env
(batch_env)
tbsim/utils/trajdata_utils.py:48
↓ 4 callersMethodset_guidance
(self, guidance_config, example_batch=None)
tbsim/algos/algos.py:204
↓ 4 callersMethodset_target
invoked 1.at initialization 2.by GlobalStopSignLoss forward to reset stop sign pos at each rollout step
tbsim/utils/guidance_loss.py:1248
↓ 4 callersFunctionsoftmax
(x,y,gamma=10)
tbsim/utils/ftocp.py:166
↓ 4 callersFunctiontorch_bmm
(a, b)
tbsim/models/diffuser_helpers.py:535
↓ 4 callersFunctiontransform_yaw
- yaw : (B) - tf_mat : (B, 3, 3) matrix to transform yaw by
tbsim/utils/geometry_utils.py:6
↓ 4 callersMethodunlock
(self)
tbsim/configs/config.py:180
↓ 4 callersFunctionverify_guidance_config_list
Returns true if there list contains some valid guidance that needs to be applied. Does not check to make sure each guidance dict is structure
tbsim/utils/guidance_loss.py:129
↓ 3 callersFunctionIndexing_ROI_result
put the lists of ROI align result into embedding tensor with the help of index
tbsim/models/cnn_roi_encoder.py:445
↓ 3 callersFunctionMultiModal_trajectory_loss
Aggregated per-step loss between gt and predicted trajectories Args: predictions (torch.Tensor): predicted trajectory [B, M, (A), T,
tbsim/utils/loss_utils.py:282
↓ 3 callersMethod__init__
(self)
tbsim/configs/base.py:50
↓ 3 callersMethod__init__
d_edge: applies only when neigh_hist_embed_method is 'edge_interaction' k_attr: number of attributes of history trajectories
tbsim/models/scenetemporal.py:43
↓ 3 callersMethod_get_analytical_metrics
(self)
tbsim/evaluation/env_builders.py:35
↓ 3 callersMethod_get_controller
(self)
tbsim/evaluation/policy_composers.py:340
↓ 3 callersMethod_get_goal_states
(self, data_batch)
tbsim/models/rasterized_models.py:464
↓ 3 callersMethod_get_goal_states
(self, data_batch)
tbsim/models/rasterized_models.py:628
↓ 3 callersFunction_to_str
(num)
tbsim/utils/diffuser_utils/arrays.py:98
↓ 3 callersMethod_traj_to_preds
(self, traj)
tbsim/models/rasterized_models.py:456
↓ 3 callersMethod_traj_to_preds
(self, traj)
tbsim/models/rasterized_models.py:620
↓ 3 callersMethod_traj_to_preds
(self, traj)
tbsim/models/rasterized_models.py:1024
↓ 3 callersMethod_traj_to_preds
(self, traj)
tbsim/models/rasterized_models.py:1370
↓ 3 callersMethod_traj_to_preds
(self, traj)
tbsim/models/strive.py:177
↓ 3 callersFunction_transform
(points: torch.Tensor, transf_matrix: torch.Tensor)
tbsim/utils/geometry_utils.py:144
↓ 3 callersMethodadd
(self, param: Param)
tbsim/utils/experiment_utils.py:40
↓ 3 callersFunctionadd_scene_dim_to_agent_data
A dummy wrapper that add one dimension to each field.
tbsim/utils/trajdata_utils.py:1375
↓ 3 callersFunctionbatch_detect_off_road
Compute whether the given positions are out of drivable region Args: positions (torch.Tensor): a position (x, y) in rasterized frame
tbsim/utils/metrics.py:451
↓ 3 callersMethodbatch_to_raw_all_agents
(data_batch, step_time)
tbsim/utils/batch_utils.py:76
↓ 3 callersMethodcheck_inclusion
-pos: [B*N, T, 1, 2] -in_stop_box: [B*N, T, 1]
tbsim/rules/stl_traffic_rules.py:62
↓ 3 callersFunctionchoose_action_from_gt
preds: dict of predictions from model, preds["positions"] (M, N, T, 2) or (B, N, M, T, 2)
tbsim/utils/guidance_loss.py:67
↓ 3 callersFunctionchoose_action_from_guidance
preds: dict of predictions from model, preds["positions"] (M, N, T, 2) or (B, N, M, T, 2)
tbsim/utils/guidance_loss.py:22
↓ 3 callersFunctionckpt_path_func
(x)
tbsim/utils/experiment_utils.py:479
↓ 3 callersFunctioncollision_loss_masked
(edges, type_mask, weight=None, col_funcs=None)
tbsim/utils/loss_utils.py:546
↓ 3 callersFunctioncolorline
http://nbviewer.ipython.org/github/dpsanders/matplotlib-examples/blob/master/colorline.ipynb http://matplotlib.org/examples/pylab_examples/mu
tbsim/utils/scene_edit_utils.py:869
↓ 3 callersMethodcompute_losses
(self,outputs,targets,gamma=1)
tbsim/models/vaes.py:609
↓ 3 callersMethodcompute_per_step
(state_info: dict, all_scene_index: np.ndarray)
tbsim/envs/env_metrics.py:1451
↓ 3 callersFunctioncreate_video
Creates a video from a format for frame e.g. 'data_out/frame%04d.png'. Saves in out_path.
tbsim/utils/scene_edit_utils.py:1525
↓ 3 callersFunctiondraw_actions
( state_image, trans_mat, pred_action=None, pred_plan=None, pred_plan_
tbsim/utils/vis_utils.py:29
↓ 3 callersMethodfeature_channels
(self)
tbsim/models/base_models.py:620
↓ 3 callersMethodfeature_scales
(self)
tbsim/models/base_models.py:637
↓ 3 callersMethodforward
(self, obs_dict, mask_drivable=False, num_samples=None, clearance=None)
tbsim/algos/algos.py:281
↓ 3 callersMethodgen_ego_edges
(ego_trajectories, agent_trajectories, ego_extents, agent_extents, raw_types)
tbsim/utils/batch_utils.py:92
↓ 3 callersFunctiongenerate_ROIs
This version generates ROI for all agents only at most recent time step unless specified otherwise
tbsim/models/cnn_roi_encoder.py:355
↓ 3 callersFunctionget_agents_curr
Queries the sim scene for current state of all agents returns: - curr_agent_state: (N x 8) [pos, vel, acc, heading_angle]
tbsim/utils/scene_edit_utils.py:200
↓ 3 callersMethodget_agents_predictions
(pred_batch)
tbsim/models/multiagent_models.py:139
↓ 3 callersFunctionget_drivable_region_map
(maps)
tbsim/utils/trajdata_utils.py:159
↓ 3 callersFunctionget_edge
(lane,dir,W=2.0,num_pts = None)
tbsim/utils/lane_utils.py:6
↓ 3 callersMethodget_edges_from_batch
(data_batch, ego_predictions=None, all_predictions=None)
tbsim/utils/batch_utils.py:84
↓ 3 callersMethodget_env
(self)
tbsim/evaluation/env_builders.py:209
↓ 3 callersMethodget_episode_metrics
(self)
tbsim/envs/env_metrics.py:1462
↓ 3 callersFunctionget_lane_projection
Query projected lane points in agent coordinate by passing in predicted trajectories in agent coordinate. - param pos_pred (B, N, T, 2) -
tbsim/utils/trajdata_utils.py:573
↓ 3 callersMethodget_observation
(self)
tbsim/envs/env_trajdata.py:313
↓ 3 callersMethodget_prediction
If using the model as a trajectory predictor (generating trajs for non-ego agents)
tbsim/algos/multiagent_algos.py:167
↓ 3 callersMethodget_robustness
return stl robustness for the passed signal
tbsim/rules/stl_traffic_rules.py:163
↓ 3 callersMethodget_state_dict
Returns state dictionary from pl_module. Override if you want filter some parameters and/or buffers out. For example, in pl_module has metrics
tbsim/utils/ema.py:39
↓ 3 callersFunctionget_stationary_mask
This function is called when disable_control_on_stationary is not False.
tbsim/utils/trajdata_utils.py:1091
↓ 3 callersFunctioninit
This function provides weight and bias initializations for linear layers.
tbsim/models/context_encoders.py:6
↓ 3 callersMethodlinearize
(self)
tbsim/utils/experiment_utils.py:23
↓ 3 callersMethodmulti_episode_reset
(self)
tbsim/envs/env_metrics.py:46
↓ 3 callersFunctionpad_nan
(x)
tbsim/policies/differential_stack_policy.py:473
↓ 3 callersMethodprint_if_verbose
(self, msg)
tbsim/utils/env_utils.py:362
↓ 3 callersMethodquery_map_feats
- x : (B, M, T, D) - map_grid_feat : (B, M, C, H, W) - raster_from_agent: (B, M, 3, 3) - output feats_out : (B, M, T
tbsim/models/scenediffuser.py:982
← previousnext →101–200 of 1,831, ranked by callers