MCPcopy Create free account

hub / github.com/NVlabs/CTG / functions

Functions1,831 in github.com/NVlabs/CTG

↓ 1 callersMethodcompute_per_step
(self, all_scene_index)
tbsim/envs/env_metrics.py:882
↓ 1 callersMethodcompute_per_step
(self, all_scene_index)
tbsim/envs/env_metrics.py:1336
↓ 1 callersMethodconditional_sample
(self, data_batch, horizon=None, num_samp=1, class_free_guide_w=0.0, **kwargs)
tbsim/models/scenediffuser.py:1569
↓ 1 callersMethodconditional_sample
(self, data_batch, horizon=None, num_samp=1, class_free_guide_w=0.0, **kwargs)
tbsim/models/diffuser.py:997
↓ 1 callersFunctionconstraint_metrics_from_config
(constraint_config)
tbsim/utils/guidance_metrics.py:918
↓ 1 callersMethodconvert_agent_centric_action_to_scene_centric
(action, info, ego_obs, agent_obs)
tbsim/policies/wrappers.py:988
↓ 1 callersMethodconvert_agent_centric_obs_to_scene_centric
(ego_obs, agent_obs, max_num_agents=None)
tbsim/policies/wrappers.py:382
↓ 1 callersMethodconvert_agent_centric_obs_to_scene_centric
(agent_centric_obs)
tbsim/policies/wrappers.py:1058
↓ 1 callersMethodconvert_scene_centric_action_to_agent_centric
(action, info, ego_obs, agent_obs)
tbsim/policies/wrappers.py:552
↓ 1 callersMethodconvert_scene_centric_action_to_agent_centric
(action, info)
tbsim/policies/wrappers.py:1065
↓ 1 callersMethodconvert_scene_centric_obs_to_agent_centric
(ego_obs,agent_obs)
tbsim/policies/wrappers.py:762
↓ 1 callersFunctioncreate_node
(global_x, global_y, vx, vy, ax, ay, yaw, nusc_map, scene, node_type, node_id="custom", is_robot=False, )
tbsim/policies/differential_stack_policy.py:496
↓ 1 callersFunctiondatamodule_factory
A factory for creating pl.DataModule. Valid module class names: "L5MixedDataModule", "L5RasterizedDataModule" Args: cls_name (st
tbsim/datasets/factory.py:6
↓ 1 callersMethoddecode
(self, memory, src_mask, tgt, tgt_mask, tgt_mask_agent, pos)
tbsim/models/Transformer.py:77
↓ 1 callersFunctiondiscriminator_loss
(likelihood_pred,likelihood_GT)
tbsim/utils/loss_utils.py:573
↓ 1 callersMethoddiscriminator_loss
(self, pred_batch)
tbsim/algos/multiagent_algos.py:204
↓ 1 callersFunctiondraw_action_samples
(ax, action_samples, raster_from_world, world_from_agent, linewidth,alpha=0.5, cmap="RdPu")
tbsim/utils/scene_edit_utils.py:1052
↓ 1 callersFunctiondraw_agent_boxes_plt
(ax, pos, yaw, extent, raster_from_agent, outline_colors=None,
tbsim/utils/scene_edit_utils.py:1065
↓ 1 callersFunctiondraw_diffusion_prof
(ax, scene_data, frame_i, diffusion_step, val_inds=[4,5], val_
tbsim/utils/scene_edit_utils.py:1625
↓ 1 callersFunctiondump_episode_buffer
(buffer, scene_index, start_frames, h5_path)
scripts/scene_editor.py:348
↓ 1 callersMethodencode
(self, src, src_mask, src_pos, map_emb)
tbsim/models/Transformer.py:74
↓ 1 callersMethodestimate_history_reconstruction_loss
noise_hist: [B, M, T_hist, 2] TBD: get history diffuser norm info to apply
tbsim/models/scenediffuser.py:1676
↓ 1 callersFunctionexpand_at
Expand all tensors in nested dictionary or list or tuple at a single dimension @dim by @size. Args: x (dict or list or tuple): a
tbsim/utils/tensor_utils.py:636
↓ 1 callersFunctionexpand_at_single
Expand a tensor at a single dimension @dim by @size Args: x (torch.Tensor): input tensor size (int): size to expand
tbsim/utils/tensor_utils.py:617
↓ 1 callersFunctionflatten_nested_dict_list
Flatten a nested dict or list to a list. For example, given a dict { a: 1 b: { c: 2 } c: 3
tbsim/utils/tensor_utils.py:1009
↓ 1 callersFunctionflatten_single
Flatten a tensor in all dimensions from @begin_axis onwards. Args: x (torch.Tensor): tensor to flatten begin_axis (int): whi
tbsim/utils/tensor_utils.py:498
↓ 1 callersMethodflush
(self)
tbsim/utils/log_utils.py:22
↓ 1 callersMethodforward
(self, obs_dict)
tbsim/algos/metric_algos.py:42
↓ 1 callersMethodforward
Get a batch of prior parameters. Args: inputs (torch.Tensor): (Optional) A feature vector for priors that are input-cond
tbsim/models/vaes.py:29
↓ 1 callersMethodforward
Get a batch of prior parameters. Args: inputs (torch.Tensor): (Optional) A feature vector for priors that are input-cond
tbsim/models/vaes.py:263
↓ 1 callersMethodforward
(self, pred, targ, data_batch={})
tbsim/models/diffuser_helpers.py:822
↓ 1 callersMethodforward_discriminator
(self, data_batch: Dict[str, torch.Tensor])
tbsim/models/rasterized_models.py:296
↓ 1 callersMethodforward_prediction
(self, all_feats, data_batch, plan=None, with_guidance=False, data_batch_raw=None, num_samp=1, **kwargs)
tbsim/models/multiagent_models.py:319
↓ 1 callersMethodfrom_dataset_indices
Create a SimulationDataset by picking indices from the provided dataset :param dataset: the EgoDataset :param scene_indices: scenes f
tbsim/l5kit/simulation_dataset.py:95
↓ 1 callersMethodfrom_dict
(config_dict)
tbsim/utils/guidance_loss.py:121
↓ 1 callersFunctiongather_along_dim_with_dim
Apply @gather_along_dim_with_dim_single to all tensors in a nested dictionary or list or tuple. Args: x (dict or list or tuple):
tbsim/utils/tensor_utils.py:767
↓ 1 callersMethodgen_agt_coords
- pos : B x 2 - yaw : B x 1 - lw : B x 2
tbsim/utils/guidance_loss.py:736
↓ 1 callersFunctiongenerate_ROIs
This version generates ROI for all agents only at most recent time step unless specified otherwise
tbsim/models/roi_align.py:123
↓ 1 callersFunctiongenerate_proxy_mask
mask out area near the existing samples to boost diversity Args: orig_loc (torch.tensor): original sample location, 1 for sample, 0 for
tbsim/algos/algo_utils.py:12
↓ 1 callersMethodget_EC_pred
(self,obs,cond_traj,goal_state=None)
tbsim/algos/algos.py:931
↓ 1 callersFunctionget_alternative_egos_as_agents_vis
(frames)
tbsim/l5kit/visualizer.py:168
↓ 1 callersFunctionget_box_world_coords_np
(pos, yaw, extent)
tbsim/utils/geometry_utils.py:55
↓ 1 callersMethodget_clipped_controls
(self, u)
tbsim/dynamics/bicycle.py:73
↓ 1 callersFunctionget_current_states
(batch: dict, dyn_type: dynamics.DynType)
tbsim/utils/l5_utils.py:688
↓ 1 callersMethodget_ego_sampler
(self)
tbsim/policies/hardcoded.py:748
↓ 1 callersMethodget_ego_samples
(self,obs)
tbsim/policies/hardcoded.py:429
↓ 1 callersMethodget_episode_experience
Get episodic experience in the form of datasets
tbsim/envs/env_l5kit.py:532
↓ 1 callersFunctionget_group_color
(agt_idx)
tbsim/utils/scene_edit_utils.py:864
↓ 1 callersFunctionget_hyperparams
(diffstack_args)
tbsim/policies/differential_stack_policy.py:82
↓ 1 callersFunctionget_lane_info
( yaw, vectorizer, world_pos, world_yaw, local_pos, local_yaw, world_from_agent,
tbsim/l5kit/agent_sampling_mixed.py:321
↓ 1 callersFunctionget_last_available_index
Args: avails (torch.Tensor): target availabilities [B, (A), T] Returns: last_indices (torch.Tensor): index of the last avail
tbsim/utils/l5_utils.py:673
↓ 1 callersFunctionget_left_lane_projection
(pos_pred, yaw_pred, data_batch, visualize_projection='')
tbsim/utils/trajdata_utils.py:564
↓ 1 callersFunctionget_local_ngc_checkpoint_dir
(ngc_job_id, ckpt_root_dir)
tbsim/utils/experiment_utils.py:490
↓ 1 callersMethodget_loss_weights
sets loss coefficients for trajectory action_weight : float coefficient on first action loss d
tbsim/models/scenediffuser.py:1201
↓ 1 callersMethodget_loss_weights
sets loss coefficients for trajectory action_weight : float coefficient on first action loss d
tbsim/models/diffuser.py:677
↓ 1 callersMethodget_mean
Extract the "mean" of a prior distribution (not supported by all priors) Args: prior_params (torch.Tensor): a batch of p
tbsim/models/vaes.py:42
↓ 1 callersMethodget_metrics
(self, eval_config, perturbations=None, rolling=False, env="l5kit", **kwargs)
tbsim/evaluation/metric_composers.py:40
↓ 1 callersMethodget_metrics
(self, eval_config, perturbations = None, rolling=False, env="l5kit", **kwargs)
tbsim/evaluation/metric_composers.py:66
↓ 1 callersMethodget_multi_episode_metrics
(self)
tbsim/envs/base.py:32
↓ 1 callersMethodget_neighbor_history_relative_states
get the neighbor history relative states (only need once per data_batch). We do this because fields like all_other_agents_history_positions i
tbsim/models/scenediffuser.py:915
↓ 1 callersFunctionget_neighbor_lane
Get left/right lane of current lane - param current_lane: lane object - param neighbor_lanes: (S_seg, S_point, 3) - param agent_from_
tbsim/utils/trajdata_utils.py:666
↓ 1 callersMethodget_normalized_controls
(self, u)
tbsim/dynamics/bicycle.py:67
↓ 1 callersMethodget_observation_gt
(self)
tbsim/envs/env_l5kit.py:299
↓ 1 callersMethodget_observation_skimp
(self)
tbsim/envs/env_trajdata.py:371
↓ 1 callersMethodget_observation_skimp
(self,split_ego=True)
tbsim/envs/env_trajdata.py:723
↓ 1 callersMethodget_per_agent_metrics
(self)
tbsim/envs/env_metrics.py:610
↓ 1 callersMethodget_plan
(self, preds)
tbsim/algos/multiagent_algos.py:427
↓ 1 callersMethodget_policy
(self, planner=None, predictor=None, controller=None)
tbsim/evaluation/policy_composers.py:449
↓ 1 callersMethodget_prediction_nc
(self,obs,ego_trajs,max_ego_size = 15)
tbsim/policies/hardcoded.py:510
↓ 1 callersMethodget_prediction_sc
(self,scene_obs,scene_goal,ego_trajs,max_ego_size = 100)
tbsim/policies/hardcoded.py:470
↓ 1 callersFunctionget_progress_reward
(ego_trajectories,d_sat = 10)
tbsim/utils/planning_utils.py:113
↓ 1 callersFunctionget_results_info_ngc
(ngc_job_id)
tbsim/utils/experiment_utils.py:431
↓ 1 callersMethodget_road_pts_mask
(self, roads)
tbsim/models/context_encoders.py:69
↓ 1 callersMethodget_road_pts_mask
(self, roads)
tbsim/models/context_encoders.py:127
↓ 1 callersMethodget_scene_obs
(ego_obs,agent_obs,goal=None,max_num_agents=None)
tbsim/policies/hardcoded.py:306
↓ 1 callersMethodget_state_and_action_from_data_batch
Extract state and(or) action from the data_batch from data_batch Note: Support both agent-centric and scene-centric (extr
tbsim/models/scenediffuser.py:1018
↓ 1 callersMethodget_state_and_action_from_data_batch
Extract state and(or) action from the data_batch from data_batch Input: data_batch: dict Output: x: (
tbsim/models/diffuser.py:510
↓ 1 callersFunctionget_total_distance
Reward that incentivizes progress.
tbsim/utils/planning_utils.py:118
↓ 1 callersFunctionget_trajdata_renderer
(desired_data, data_dirs, future_sec=2.0, history_sec=1.0, raster_size=500, px_per
tbsim/utils/scene_edit_utils.py:910
↓ 1 callersFunctionget_upright_box
(pos, extent)
tbsim/utils/geometry_utils.py:66
↓ 1 callersFunctionguidance_metrics_from_config
Returns metrics objects to measure success of each guidance.
tbsim/utils/guidance_metrics.py:896
↓ 1 callersMethodguidance_optim
(self, condition_inputs, num_samp, decoder_kwargs, data_batch, lr=0.02,
tbsim/models/strive.py:267
↓ 1 callersFunctionguided_rollout
Rollout an environment. Args: env (BaseEnv): a base simulation environment (gym-like) policy (RolloutWrapper): a policy that
tbsim/utils/scene_edit_utils.py:15
↓ 1 callersFunctionheuristic_global_target_pos_at_time
Sets a global target pos and time using GT.
tbsim/utils/scene_edit_utils.py:280
↓ 1 callersFunctionheuristic_target_pos_at_time
Sets a local target pos and time using GT.
tbsim/utils/scene_edit_utils.py:345
↓ 1 callersMethodidentify_branch
(self,ego_node,scene_traj)
tbsim/utils/planning_utils.py:182
↓ 1 callersFunctioninit
(module, weight_init, bias_init, gain=1)
tbsim/models/scenetemporal.py:12
↓ 1 callersMethodinit_disks
(self, num_disks, extents)
tbsim/utils/guidance_loss.py:328
↓ 1 callersMethodinit_for_batch
Initializes this loss to be used repeatedly only for the given scenes/agents in the example_batch. e.g. this function could use the e
tbsim/utils/guidance_loss.py:188
↓ 1 callersMethodintegrate_forward
Integrate the state forward with initial state x0, action u Args: x0 (Torch.tensor): state tensor of size [B,Num_agent,1,
tbsim/models/transformer_model.py:151
↓ 1 callersMethodinverse_dyn
(x,xp,dt)
tbsim/dynamics/unicycle.py:186
↓ 1 callersMethodis_done
(self)
tbsim/envs/env_avdata.py:108
↓ 1 callersMethodkl_loss
Compute kl loss between the prior and the posterior distributions. Args: posterior_params (dict): a batch of distributio
tbsim/models/vaes.py:82
↓ 1 callersMethodload_agents_mask
Loads a boolean mask of the agent availability stored into the zarr. Performs some sanity check against cfg. Returns: a boolean mask
tbsim/l5kit/l5_agent_dataset.py:125
↓ 1 callersFunctionlog_mean_exp
Compute the log(mean(exp(x), dim)) in a numerically stable manner. Adapted from CS 236 at Stanford. Args: x (torch.Tensor): a ten
tbsim/utils/loss_utils.py:176
↓ 1 callersMethodloss
(self, x, data_batch, aux_info={})
tbsim/models/scenediffuser.py:1662
↓ 1 callersMethodloss
(self, x, data_batch, aux_info={})
tbsim/models/diffuser.py:1058
↓ 1 callersFunctionmain
(cfg, auto_remove_exp_dir=False, debug=False)
scripts/train.py:21
↓ 1 callersFunctionmain
()
tbsim/policies/differential_stack_policy.py:579
↓ 1 callersFunctionmain_discrete
()
tbsim/models/vaes.py:1108
← previousnext →501–600 of 1,831, ranked by callers