MCPcopy Create free account

hub / github.com/NVlabs/CTG / functions

Functions1,831 in github.com/NVlabs/CTG

↓ 2 callersMethodget_modality_shapes
(self, exp_cfg: ExperimentConfig)
tbsim/evaluation/metric_composers.py:32
↓ 2 callersMethodget_neighbor_future_relative_states
-param x: (B*N, M, T, transition_dim) -return: aux_info with 'neighbor_fut_feat': (B*N, M, M, T_fut, K_neigh)
tbsim/models/scenediffuser.py:852
↓ 2 callersMethodget_neighbor_relative_states
(self, relative_positions, relative_speeds, relative_yaws, data_batch_agent_from_world, data_batch_world_from_
tbsim/models/scenediffuser.py:798
↓ 2 callersMethodget_neighboring_grid_points
(self,coords,radius)
tbsim/envs/env_metrics.py:991
↓ 2 callersMethodget_observation
(self,split_ego=None,return_raw=False)
tbsim/envs/env_trajdata.py:617
↓ 2 callersMethodget_plan
(self, obs, **kwargs)
tbsim/policies/hardcoded.py:112
↓ 2 callersMethodget_plan
(self, obs, **kwargs)
tbsim/policies/wrappers.py:158
↓ 2 callersMethodget_scene_dataset
Differs from parent only in the return type. Instead of doing everything from scratch, we rely on super call and fix the agents_mask
tbsim/l5kit/l5_agent_dataset.py:186
↓ 2 callersFunctionget_state_image_with_boxes_l5kit
(ego_obs, agents_obs, rasterizer)
tbsim/utils/vis_utils.py:188
↓ 2 callersFunctionget_terminal_likelihood_reward
Cost for road departure.
tbsim/utils/planning_utils.py:96
↓ 2 callersMethodget_track_id
(self)
tbsim/utils/rollout_logger.py:239
↓ 2 callersMethodget_trajectory
Get per-scene rollout trajectory in the world coordinate system
tbsim/utils/rollout_logger.py:228
↓ 2 callersMethodinit_disks
(self, num_disks, extents)
tbsim/utils/guidance_loss.py:481
↓ 2 callersMethodinit_mask
(self, batch_scene_index, device)
tbsim/utils/guidance_loss.py:493
↓ 2 callersMethodis_done
(self)
tbsim/envs/env_trajdata.py:123
↓ 2 callersMethodis_done
(self)
tbsim/envs/env_l5kit.py:352
↓ 2 callersFunctionjoin_dimensions
Joins all dimensions between dimensions (@begin_axis, @end_axis) into a flat dimension, for all tensors in nested dictionary or list or tuple
tbsim/utils/tensor_utils.py:590
↓ 2 callersFunctionload_vec_map
(map_name, cache_path="~/.unified_data_cache")
tbsim/utils/trajdata_utils.py:1392
↓ 2 callersFunctionlog_sum_exp
Compute the log(sum(exp(x), dim)) in a numerically stable manner. Adapted from CS 236 at Stanford. Args: x (torch.Tensor): a tens
tbsim/utils/loss_utils.py:189
↓ 2 callersFunctionpad_sequence_single
Pad input tensor or array @seq in the time dimension (dimension 1). Args: seq (np.ndarray or torch.Tensor): sequence to be padded
tbsim/utils/tensor_utils.py:858
↓ 2 callersMethodperturb_video_diffusion
video_diffusion only perturb the gradient and estimate the guidance loss w.r.t. the input trajectory Input: x_ini
tbsim/utils/guidance_loss.py:2284
↓ 2 callersMethodpredict
(self, batch_inputs: dict)
tbsim/models/rasterized_models.py:502
↓ 2 callersMethodpredict_noise_from_start
if self.predict_epsilon, model output is (scaled) noise; otherwise, model predicts x0 directly
tbsim/models/scenediffuser.py:1247
↓ 2 callersMethodpredict_noise_from_start
if self.predict_epsilon, model output is (scaled) noise; otherwise, model predicts x0 directly
tbsim/models/diffuser.py:723
↓ 2 callersFunctionpreprocess
(scene_data, filter_yaw=False)
tbsim/utils/scene_edit_utils.py:1516
↓ 2 callersMethodq_posterior
(self, x_start, x_t, t)
tbsim/models/scenediffuser.py:1261
↓ 2 callersMethodq_posterior
(self, x_start, x_t, t)
tbsim/models/diffuser.py:737
↓ 2 callersFunctionquery_feature_grid
Bilinearly interpolates given positions in feature grid. - pos : (B x T x 2) float - feat_grid : (B x C x H x W) Returns: - (B x
tbsim/models/diffuser_helpers.py:391
↓ 2 callersMethodquery_neigh_feats
-params neighbor_fut : (B*N/B, M, M, T_fut, K_neigh) -output neighbor_fut_feat : (B*N/B, M, T_fut, K_d)
tbsim/models/scenediffuser.py:946
↓ 2 callersFunctionrandom_placing_neighbors
(simscene,num_neighbors,coll_check=True)
tbsim/utils/env_utils.py:28
↓ 2 callersMethodrasterize
( self, ego_translation_m, ego_yaw_rad, )
tbsim/l5kit/vis_rasterizer.py:97
↓ 2 callersFunctionremove_comments
Remove comment lines from a string containing Python source code.
tbsim/utils/gpt_utils.py:6
↓ 2 callersFunctionrender_state_trajdata
( batch: dict, batch_idx: int, action, rgb_idx_groups=None, )
tbsim/utils/vis_utils.py:110
↓ 2 callersMethodreset_multi_episodes_metrics
(self)
tbsim/envs/base.py:16
↓ 2 callersMethodreset_parameters
(self)
tbsim/algos/algos.py:1852
↓ 2 callersMethodreset_parameters
(self)
tbsim/algos/algos.py:2543
↓ 2 callersMethodsample_with_parameters
Take samples using given a batch of distribution parameters, e.g., mean and logvar of a unit Gaussian Args: params (dict
tbsim/models/vaes.py:69
↓ 2 callersMethodset_bounds
(self)
tbsim/rules/stl_traffic_rules.py:25
↓ 2 callersMethodset_constraints
Resets the test-time hard constraints to follow during prediction.
tbsim/algos/algos.py:2117
↓ 2 callersMethodset_dataset_skimp_mode
(self, skimp)
tbsim/envs/env_l5kit.py:439
↓ 2 callersFunctionset_global_trajdata_batch_raster_cfg
(raster_cfg)
tbsim/utils/trajdata_utils.py:52
↓ 2 callersMethodset_guidance
(self, guidance_config_list, example_batch=None)
tbsim/policies/wrappers.py:44
↓ 2 callersMethodset_skimp
(self, skimp)
tbsim/l5kit/l5_ego_dataset.py:47
↓ 2 callersFunctionslice_tensor_single
select a slice of the tensor Args: x (torch.Tensor or np.array): the tensor dim (int): dimension to select start_idx (int
tbsim/utils/tensor_utils.py:823
↓ 2 callersMethodsocial_attn_decoder_fn
:param agents_emb: (T_all, B, M, d_k) :param agent_masks: (B, T_hist, M), T_all = 1 when mlp is used :return: (T_all, B, M, d
tbsim/models/scenetemporal.py:294
↓ 2 callersMethodstep
Step the simulation with control inputs Args: actions (RolloutAction): action for controlling ego and/or agents
tbsim/envs/env_trajdata.py:479
↓ 2 callersMethodsummarize_grid
(self)
tbsim/envs/env_metrics.py:1119
↓ 2 callersFunctiontranslate_l5kit_cfg
Translate a tbsim config to a l5kit config Args: cfg (ExperimentConfig): an ExperimentConfig instance Returns: cfg for
tbsim/utils/config_utils.py:7
↓ 2 callersFunctiontranslate_pass_trajdata_cfg
Translate a unified passthrough config to trajdata.
tbsim/utils/config_utils.py:70
↓ 2 callersFunctiontranslate_trajdata_cfg
(cfg: ExperimentConfig)
tbsim/utils/config_utils.py:35
↓ 2 callersMethodubound
(self, x)
tbsim/dynamics/double_integrator.py:53
↓ 2 callersMethodubound
(self, x)
tbsim/dynamics/unicycle.py:89
↓ 2 callersFunctionunicyle_forward_dynamics
Integrate the state forward with initial state x0, action u Note: Support both agent-centric and scene-centric (extra dimension for t
tbsim/models/diffuser_helpers.py:541
↓ 2 callersMethodupdate
Update any persistant state needed by guidance loss functions. - global_t : the current global timestep of rollout
tbsim/utils/guidance_loss.py:196
↓ 2 callersMethodupdate
(self, description, n=1)
tbsim/utils/diffuser_utils/progress.py:30
↓ 2 callersMethodupdate_model_average
(self, ma_model, current_model)
tbsim/models/diffuser_helpers.py:915
↓ 2 callersFunctionverify_constraint_config
Given a hard constraint config dict, verifies it's structured as expected. Should contain fields 'agents', 'loc', and 'times'
tbsim/utils/guidance_loss.py:141
↓ 1 callersMethodEC_predict
(self,obs,cond_traj,goal_state=None)
tbsim/models/rasterized_models.py:831
↓ 1 callersFunctionIndexing_ROI_result
put the lists of ROI align result into embedding tensor with the help of index
tbsim/models/roi_align.py:213
↓ 1 callersFunctionKLD_0_1_loss
KL divergence loss. Computes D_KL( N(mu, sigma) || N(0, 1) ). Note that this function averages across the batch dimension, but sums across di
tbsim/utils/loss_utils.py:34
↓ 1 callersFunctionKLD_gaussian_loss
KL divergence loss between two Gaussian distributions. This function computes the average loss across the batch. Args: mu_1 (torc
tbsim/utils/loss_utils.py:48
↓ 1 callersFunctionROI_align
Given feature layers and proposals return bilinear interpolated points in feature layer Args: features (torch.Tensor): Tensor of shap
tbsim/models/roi_align.py:59
↓ 1 callersFunctionVEH_PED_collision
(p1, p2, S1, S2)
tbsim/utils/geometry_utils.py:240
↓ 1 callersFunctionVEH_VEH_collision
( p1, p2, S1, S2, alpha=5, return_dis=False, offsetX=1.0, offsetY=0.3 )
tbsim/utils/geometry_utils.py:197
↓ 1 callersMethod__getitem__
(self,key)
tbsim/utils/metrics.py:591
↓ 1 callersMethod__init__
(self)
tbsim/configs/trajdata_nusc_config.py:56
↓ 1 callersMethod__init__
(self, registered_name='')
tbsim/configs/scene_edit_config.py:10
↓ 1 callersMethod__init__
(self)
tbsim/configs/trajdata_nuplan_scene_config.py:64
↓ 1 callersMethod__init__
(self)
tbsim/configs/trajdata_nuplan_all_config.py:54
↓ 1 callersMethod__init__
(self)
tbsim/configs/trajdata_l5kit_config.py:54
↓ 1 callersMethod__init__
(self)
tbsim/configs/orca_config.py:67
↓ 1 callersMethod__init__
(self)
tbsim/configs/trajdata_drivesim_config.py:54
↓ 1 callersMethod__init__
(self)
tbsim/configs/eval_config.py:8
↓ 1 callersMethod__init__
(self)
tbsim/configs/trajdata_nusc_scene_config.py:67
↓ 1 callersMethod__init__
(self)
tbsim/configs/trajdata_eupeds_config.py:60
↓ 1 callersMethod__init__
(self)
tbsim/configs/trajdata_nusc_ped_config.py:56
↓ 1 callersMethod__init__
(self)
tbsim/configs/trajdata_config.py:45
↓ 1 callersMethod__init__
(self)
tbsim/configs/nusc_config.py:41
↓ 1 callersMethod__init__
(self)
tbsim/configs/trajdata_nuplan_config.py:54
↓ 1 callersMethod__init__
(self)
tbsim/configs/trajdata_nuplan_ped_config.py:54
↓ 1 callersMethod__init__
(self)
tbsim/configs/trajdata_nusc_all_config.py:56
↓ 1 callersMethod__init__
(self, acc_limit, target_ind=1)
tbsim/utils/gpt_utils.py:133
↓ 1 callersMethod__init__
Get a PyTorch dataset object that can be used to train DNNs with vectorized input Args: cfg (dict): configuration file
tbsim/l5kit/l5_ego_dataset.py:22
↓ 1 callersMethod__init__
( self, cfg: dict, zarr_dataset: ChunkedDataset, rasterizer: R
tbsim/l5kit/l5_agent_dataset.py:84
↓ 1 callersMethod__init__
(self, algo_config, modality_shapes)
tbsim/algos/multiagent_algos.py:25
↓ 1 callersMethod__init__
Creates networks and places them into @self.nets.
tbsim/algos/metric_algos.py:19
↓ 1 callersMethod__init__
(self, data_config, train_config: TrainConfig)
tbsim/datasets/trajdata_datamodules.py:14
↓ 1 callersMethod__init__
( self, horizon, transition_dim, cond_dim, output_dim, dim=32,
tbsim/models/temporal.py:51
↓ 1 callersMethod__init__
(self, algo_config, modality_shapes, weights_scaling)
tbsim/models/strive.py:111
↓ 1 callersMethod__str__
(self)
tbsim/rules/stl_traffic_rules.py:36
↓ 1 callersMethod_add_per_step_metrics
(self, obs, frame_index=None)
tbsim/envs/env_trajdata.py:384
↓ 1 callersMethod_add_per_step_metrics
(self, obs)
tbsim/envs/env_trajdata.py:743
↓ 1 callersMethod_add_per_step_metrics
(self, obs)
tbsim/envs/env_avdata.py:298
↓ 1 callersMethod_add_per_step_metrics
(self, obs, actions=None)
tbsim/envs/env_l5kit.py:381
↓ 1 callersMethod_append_buffer
scene_index: dict( action_positions=[[num_agent, ...], [num_agent, ...], ], action_yaws=[[num_age
tbsim/utils/rollout_logger.py:107
↓ 1 callersMethod_batching_from_stages
(self,preds)
tbsim/models/rasterized_models.py:1181
↓ 1 callersMethod_batching_from_stages
(self,preds)
tbsim/models/rasterized_models.py:1597
↓ 1 callersMethod_chunk
(self, l, n)
tbsim/utils/diffuser_utils/progress.py:119
↓ 1 callersMethod_combine_action
(self, action: RolloutAction)
tbsim/utils/rollout_logger.py:37
↓ 1 callersMethod_combine_obs
(self, obs)
tbsim/utils/rollout_logger.py:21
← previousnext →301–400 of 1,831, ranked by callers