MCPcopy Create free account

hub / github.com/NVlabs/CTG / functions

Functions1,831 in github.com/NVlabs/CTG

↓ 3 callersMethodquery_map_feats
- x : (B, T, D) - map_grid_feat : (B, C, H, W) - raster_from_agent: (B, 3, 3)
tbsim/models/diffuser.py:481
↓ 3 callersFunctionrasterized_ROI_align
( lane_mask, pos, yaw, raster_from_agent, mask, patch_size, out_dim )
tbsim/models/cnn_roi_encoder.py:462
↓ 3 callersMethodreset
(self, scene_indices=None, start_frame_index=None)
tbsim/envs/base.py:12
↓ 3 callersFunctionreshape_dimensions
Reshape selected dimensions for all tensors in nested dictionary or list or tuple to a target dimension. Args: x (dict or list o
tbsim/utils/tensor_utils.py:561
↓ 3 callersMethodscene_forward
added for scenediffuser - net_in : (B, M, T, 8) - net_out : (B*M, d_k)
tbsim/models/diffuser_helpers.py:138
↓ 3 callersFunctionset_global_batch_type
(batch_type)
tbsim/utils/batch_utils.py:13
↓ 3 callersMethodset_guidance_optimization_params
(self, guidance_optimization_params)
tbsim/algos/algos.py:201
↓ 3 callersMethodstate2pos
(x)
tbsim/dynamics/base.py:48
↓ 3 callersMethodstate2yaw
(x)
tbsim/dynamics/base.py:52
↓ 3 callersMethodtic
(self, key)
tbsim/utils/timer.py:47
↓ 3 callersFunctionto_np
(x)
tbsim/utils/diffuser_utils/arrays.py:13
↓ 3 callersMethodtoc
(self, key)
tbsim/utils/timer.py:52
↓ 3 callersMethodunlocked
(self)
tbsim/configs/config.py:184
↓ 3 callersMethodupdate_guidance
(self, **kwargs)
tbsim/models/strive.py:258
↓ 3 callersFunctionverify_map
Verify and expand map to the number of necessary channels if necessary.
tbsim/utils/trajdata_utils.py:477
↓ 2 callersFunctionNLL_GMM_loss
Log probability of tensor x under a uniform mixture of Gaussians. Adapted from CS 236 at Stanford. Args: x (torch.Tensor): tensor
tbsim/utils/loss_utils.py:136
↓ 2 callersMethod__delattr__
(self, name)
tbsim/configs/config.py:84
↓ 2 callersMethod__init__
(self)
tbsim/configs/l5kit_config.py:5
↓ 2 callersMethod__init__
(self, l5_config, data_manager)
tbsim/datasets/l5kit_datamodules.py:32
↓ 2 callersMethod__init__
(self, d_k=64, dropout=0.1, c=10)
tbsim/models/context_encoders.py:19
↓ 2 callersMethod_compute_losses
(self, pred_batch, data_batch)
tbsim/algos/metric_algos.py:218
↓ 2 callersMethod_compute_metrics
(self, pred_batch, data_batch)
tbsim/algos/metric_algos.py:45
↓ 2 callersMethod_compute_metrics
(self, pred_batch, data_batch)
tbsim/algos/metric_algos.py:241
↓ 2 callersMethod_compute_metrics
(self, pred_batch, data_batch)
tbsim/algos/algos.py:77
↓ 2 callersMethod_compute_metrics
(self, pred_batch, sample_batch, data_batch)
tbsim/algos/algos.py:487
↓ 2 callersMethod_compute_metrics
(self, pred_batch, sample_batch, data_batch)
tbsim/algos/algos.py:696
↓ 2 callersMethod_compute_metrics
(self, pred_batch, data_batch)
tbsim/algos/algos.py:870
↓ 2 callersMethod_compute_metrics
(self, pred_batch, data_batch, sample_batch = None)
tbsim/algos/algos.py:953
↓ 2 callersMethod_compute_metrics
(self, predictions, batch)
tbsim/algos/algos.py:1155
↓ 2 callersMethod_compute_metrics
(self, pout, batch)
tbsim/algos/algos.py:1189
↓ 2 callersMethod_compute_metrics
(self, pred_batch, sample_batch, data_batch)
tbsim/algos/algos.py:1393
↓ 2 callersMethod_compute_metrics
(self, pred_batch, sample_batch, data_batch)
tbsim/algos/algos.py:1544
↓ 2 callersMethod_compute_metrics
(self, pred_batch, data_batch)
tbsim/algos/algos.py:1816
↓ 2 callersMethod_compute_metrics
(self, pred_batch, sample_batch, data_batch)
tbsim/algos/algos.py:2165
↓ 2 callersMethod_compute_metrics
(self, pred_batch, data_batch)
tbsim/algos/algos.py:2516
↓ 2 callersMethod_create_dynamics
(self)
tbsim/models/base_models.py:1168
↓ 2 callersMethod_filter_agents
Filter agents according to a set of rules: if new agent (not in tracked_agents) then: - must be a car - must be in dis
tbsim/l5kit/simulation_dataset.py:274
↓ 2 callersMethod_forward_dynamics
(self, current_states, actions)
tbsim/models/base_models.py:1192
↓ 2 callersMethod_forward_dynamics
(self, current_states, actions)
tbsim/models/base_models.py:1419
↓ 2 callersFunction_get_frame_data
Get visualisation objects for the current frame. :param mapAPI: mapAPI object (used for lanes, crosswalks etc..) :param frame: the current fr
tbsim/l5kit/visualizer.py:71
↓ 2 callersMethod_get_goal_states
(self, data_batch, plan=None)
tbsim/models/multiagent_models.py:205
↓ 2 callersMethod_get_goal_states
(self, data_batch)
tbsim/models/rasterized_models.py:1032
↓ 2 callersMethod_get_learned_metrics
(self)
tbsim/evaluation/env_builders.py:54
↓ 2 callersMethod_get_predictor
(self)
tbsim/evaluation/policy_composers.py:234
↓ 2 callersMethod_get_scene_indices
(self)
tbsim/l5kit/l5_ego_dataset.py:170
↓ 2 callersMethod_loss
(self, pred, targ)
tbsim/models/diffuser_helpers.py:854
↓ 2 callersMethod_rasterise_agents_frame
Rasterise agents of interest for a given frame in a given scene. :param scene_index: index of the scene :param state_index: frame ind
tbsim/l5kit/simulation_dataset.py:216
↓ 2 callersMethodadjust_scene
(self,adjust_plan)
tbsim/envs/env_trajdata.py:495
↓ 2 callersMethodadversarial_loss
(self, y_hat, y)
tbsim/algos/algos.py:1213
↓ 2 callersFunctionapply_constraints
Applies hard constraints to positions (x,y) specified by the given configuration. - x : trajectory to update with constraints. (B, N, T, D) w
tbsim/utils/guidance_loss.py:162
↓ 2 callersFunctionbuild_vectorizer
Factory function for vectorizers, reads the config, loads required data and initializes the vectorizer. Args: cfg (dict): Config.
tbsim/l5kit/vectorizer.py:208
↓ 2 callersFunctioncheck_consistency
(keywords, agent_centric_obs, agent_obs_gt, agent_obs_in_scene_format=False)
tbsim/utils/trajdata_utils.py:1432
↓ 2 callersMethodcombine_observations
Get a combined observation by concatenating ego and agents
tbsim/envs/env_l5kit.py:340
↓ 2 callersMethodcompute_kl_loss
Compute KL Divergence loss Args: outputs (dict): outputs of the self.forward() call Returns: a dict
tbsim/models/vaes.py:595
↓ 2 callersMethodcompute_likelihood
(self, occupancy_map, traj_pos, raster_from_agent)
tbsim/algos/metric_algos.py:191
↓ 2 callersMethodcompute_losses_generator
(self, pred_batch, data_batch)
tbsim/models/rasterized_models.py:356
↓ 2 callersFunctioncompute_pred_loss
(recon_loss_type,pred_batch,target_traj,avails,prob,weights_scaling=None)
tbsim/utils/loss_utils.py:577
↓ 2 callersFunctioncompute_progress_loss
Evaluate progress towards a goal that we want to hit. - pos_pred : (B x N x T x 2) - tgt_pos : (B x 2) - urgency : (B) in (0.0, 1.0]
tbsim/utils/guidance_loss.py:876
↓ 2 callersFunctioncompute_valid_map_mask
- batch_maps (B, C, H, W)
tbsim/utils/trajdata_utils.py:494
↓ 2 callersFunctionconvert_lyft_type_to_nusc_type
(agent_type)
tbsim/utils/trajdata_utils.py:1494
↓ 2 callersFunctionconvert_nusc_type_to_lyft_type
(agent_type)
tbsim/utils/trajdata_utils.py:1501
↓ 2 callersFunctionconvert_scene_obs_to_agent_prep
This will convert 9 fields (some of which only have center values) from scene-centric to agent-centric and return a new dict consisting only of t
tbsim/utils/trajdata_utils.py:1306
↓ 2 callersFunctioncosine_beta_schedule
cosine schedule as proposed in https://openreview.net/forum?id=-NEXDKk8gZ
tbsim/models/diffuser_helpers.py:451
↓ 2 callersFunctioncv2_subpixel
Cast coordinates to numpy.int but keep fractional part by previously multiplying by 2**CV2_SHIFT cv2 calls will use shift to restore original
tbsim/l5kit/vis_rasterizer.py:64
↓ 2 callersMethoddecode
(self, memory, src_mask)
tbsim/models/Transformer.py:328
↓ 2 callersMethoddecode_z
(self, z, cond_feat, decoder_kwargs=None)
tbsim/models/vaes.py:382
↓ 2 callersFunctiondetect_collision
Computes whether a collision occured between ego and any another agent. Also computes the type of collision: rear, front, or side. For th
tbsim/utils/geometry_utils.py:339
↓ 2 callersMethoddo_render_map
whether the map needs to be rendered
tbsim/utils/scene_edit_utils.py:955
↓ 2 callersFunctiondownload_checkpoints_from_ngc
( ngc_job_id, ckpt_root_dir, ckpt_path_func=None, tmp_dir="/tmp" )
tbsim/utils/experiment_utils.py:472
↓ 2 callersFunctiondraw_action_traj
(ax, action_traj, raster_from_world, world_from_agent, linewidth,alpha=0.9)
tbsim/utils/scene_edit_utils.py:1039
↓ 2 callersFunctiondraw_scene_data
(ax, scene_name, scene_data, starting_frame, rasterizer, guidance_config=None,
tbsim/utils/scene_edit_utils.py:1145
↓ 2 callersFunctionego_sample_planning
A basic cost function for prediction-and-planning
tbsim/utils/planning_utils.py:128
↓ 2 callersMethodencode
(self, src, src_mask, src_pos, map_emb)
tbsim/models/Transformer.py:325
↓ 2 callersFunctionextract_data_batch_for_guidance
(data_batch, mode='testing')
tbsim/utils/trajdata_utils.py:1398
↓ 2 callersMethodfind_scene
(self,scene_id)
tbsim/policies/differential_stack_policy.py:354
↓ 2 callersFunctionflatten
Flatten all tensors in nested dictionary or list or tuple, from @begin_axis onwards. Args: x (dict or list or tuple): a possibly nes
tbsim/utils/tensor_utils.py:514
↓ 2 callersMethodforward
(self, obs_dict)
tbsim/algos/multiagent_algos.py:355
↓ 2 callersMethodforward
(self, obs_dict, mask_drivable=False, num_samples=None, clearance=None)
tbsim/algos/metric_algos.py:178
↓ 2 callersMethodforward
(self, data_batch: Dict[str, torch.Tensor], plan=None)
tbsim/models/multiagent_models.py:368
↓ 2 callersMethodforward_generator
(self, data_batch: Dict[str, torch.Tensor])
tbsim/models/rasterized_models.py:268
↓ 2 callersFunctiongather_along_dim_with_dim_single
This function indexes out a target dimension of a tensor in a structured way, by allowing a different value to be selected for each member of
tbsim/utils/tensor_utils.py:727
↓ 2 callersMethodgenerate_config
(self, base_cfg: Dict)
tbsim/utils/experiment_utils.py:58
↓ 2 callersMethodgenerate_decoder_mask
For masking out the subsequent info.
tbsim/models/scenetemporal.py:195
↓ 2 callersFunctiongenerate_edges
( raw_type, extents, pos_pred, yaw_pred, )
tbsim/utils/l5_utils.py:491
↓ 2 callersMethodget_action
Predict an action based on the input observation
tbsim/policies/base.py:9
↓ 2 callersMethodget_adv_loss_function
(self)
tbsim/models/rasterized_models.py:347
↓ 2 callersFunctionget_agent_from_world_tf
(curr_state)
tbsim/utils/scene_edit_utils.py:214
↓ 2 callersFunctionget_agent_masks
PERCEPTION_LABELS = [ "PERCEPTION_LABEL_NOT_SET", "PERCEPTION_LABEL_UNKNOWN", "PERCEPTION_LABEL_DONTCARE", "PERCEPTION_LABEL_CAR"
tbsim/utils/l5_utils.py:10
↓ 2 callersFunctionget_agt_cmap
(agt_idx)
tbsim/utils/scene_edit_utils.py:860
↓ 2 callersMethodget_aux_info
(self, data_batch, include_class_free_cond=False)
tbsim/models/scenediffuser.py:640
↓ 2 callersMethodget_aux_info
(self, data_batch, plan=None, include_class_free_cond=False)
tbsim/models/diffuser.py:368
↓ 2 callersFunctionget_closest_lane_point_for_one_agent
Output: lanes_points: (S_seg, S_point, 4)
tbsim/utils/trajdata_utils.py:882
↓ 2 callersFunctionget_closest_lane_point_wrapper
(vec_map_params={})
tbsim/utils/trajdata_utils.py:959
↓ 2 callersFunctionget_collision_loss
Get veh-veh and veh-ped collision loss.
tbsim/utils/planning_utils.py:27
↓ 2 callersFunctionget_current_lane_projection
(pos_pred, yaw_pred, data_batch, visualize_projection='')
tbsim/utils/trajdata_utils.py:570
↓ 2 callersFunctionget_drivable_area_loss
Cost for road departure.
tbsim/utils/planning_utils.py:62
↓ 2 callersFunctionget_drivable_region_map
(rasterized_map)
tbsim/utils/l5_utils.py:721
↓ 2 callersMethodget_gt_action
(self, obs)
tbsim/envs/env_l5kit.py:159
↓ 2 callersMethodget_info
(self)
tbsim/envs/base.py:40
↓ 2 callersMethodget_modality_shapes
(cfg: ExperimentConfig)
tbsim/utils/batch_utils.py:104
← previousnext →201–300 of 1,831, ranked by callers