MCPcopy Create free account

hub / github.com/NVlabs/CTG / functions

Functions1,831 in github.com/NVlabs/CTG

↓ 1 callersFunctionmake_segments
Create list of line segments from x and y coordinates, in the correct format for LineCollection: an array of the form numlines x (points per
tbsim/utils/scene_edit_utils.py:899
↓ 1 callersFunctionmake_transformer_model
first generate the building blocks, attn networks, encoders, decoders, PEs and Feedforward nets
tbsim/models/Transformer.py:688
↓ 1 callersFunctionmaybe_pad_neighbor
Pad neighboring agent's history to the same length as that of the ego using NaNs
tbsim/utils/trajdata_utils.py:223
↓ 1 callersFunctionmerge_guidance_configs
(cfg1, cfg2)
tbsim/utils/scene_edit_utils.py:166
↓ 1 callersFunctionnamed_reduce_single
Reduce tensor at a dimension by named reduction functions. Args: x (torch.Tensor): tensor to be reduced reduction (str): one
tbsim/utils/tensor_utils.py:684
↓ 1 callersFunctionnormalize
scales `x` to [0, 1]
tbsim/utils/diffuser_utils/arrays.py:72
↓ 1 callersMethodnum_channels
(self)
tbsim/datasets/l5kit_datamodules.py:50
↓ 1 callersFunctionnum_tokens_from_messages
Returns the number of tokens used by a list of messages.
tbsim/utils/gpt_utils.py:21
↓ 1 callersMethodobtain_lane_flag
(self,grid_points,raster_from_world,lane_map)
tbsim/envs/env_metrics.py:1016
↓ 1 callersFunctionoptimize_trajectories
An optimization-based trajectory generator
tbsim/algos/algo_utils.py:164
↓ 1 callersMethodoutput_shape
(self, input_shape=None)
tbsim/models/base_models.py:614
↓ 1 callersMethodoutput_shape
(self, input_shape=None)
tbsim/models/base_models.py:831
↓ 1 callersMethodp_losses
(self, x_start_init, t, data_batch, aux_info={})
tbsim/models/scenediffuser.py:1585
↓ 1 callersMethodp_losses
(self, x_start_init, t, data_batch, aux_info={})
tbsim/models/diffuser.py:1013
↓ 1 callersMethodp_mean_variance
(self, x, t, aux_info={}, class_free_guide_w=0.0, data_batch=None, x_clean_model_out=None)
tbsim/models/scenediffuser.py:1270
↓ 1 callersMethodp_mean_variance
(self, x, t, aux_info={}, class_free_guide_w=0.0)
tbsim/models/diffuser.py:746
↓ 1 callersMethodp_sample
(self, x, t, data_batch, aux_info={}, num_samp=1, class_free_guide_w=0.0, apply_guidance=True, guide_clean=Fal
tbsim/models/scenediffuser.py:1403
↓ 1 callersMethodp_sample
(self, x, t, data_batch, aux_info={}, num_samp=1, class_free_guide_w=0.0, apply_guidance=True, guide_clean=Fal
tbsim/models/diffuser.py:844
↓ 1 callersMethodp_sample_loop
shape: (5), batch_size, num_samp, num_agents, horizon, self.transition_dim
tbsim/models/scenediffuser.py:1490
↓ 1 callersMethodp_sample_loop
(self, shape, data_batch, num_samp, aux_info={}, verbose=True,
tbsim/models/diffuser.py:932
↓ 1 callersFunctionparam_to_module
(param)
tbsim/utils/diffuser_utils/arrays.py:108
↓ 1 callersFunctionparse
(args)
scripts/parse_scene_edit_results.py:295
↓ 1 callersFunctionparse_node_centric
(batch: dict, overwrite_nan=True)
tbsim/utils/trajdata_utils.py:346
↓ 1 callersFunctionparse_scene_centric
(batch: dict)
tbsim/utils/trajdata_utils.py:243
↓ 1 callersFunctionparse_single_result
(results_dir, eval_out_dir, save_hist_data=False, gt_hist_path=None)
scripts/parse_scene_edit_results.py:43
↓ 1 callersMethodpause
(self)
tbsim/utils/diffuser_utils/progress.py:43
↓ 1 callersMethodperturb
perturb the gradient and estimate the guidance loss w.r.t. the input trajectory Input: x_initial: [batch_size*num_samp, (
tbsim/utils/guidance_loss.py:2221
↓ 1 callersFunctionplot_agent_batch_dict
( batch_original: dict, batch_idx: int, ax: Optional[Axes] = None, legend: bool = True, sh
tbsim/utils/trajdata_utils.py:1524
↓ 1 callersFunctionplot_vec_map_lanes
(ax, batch, batch_idx, lane_segs=50)
tbsim/utils/trajdata_utils.py:1509
↓ 1 callersFunctionpred2obs
generate observation for the predicted scene f_step steps into the future Args: src_pos (torch.tensor[torch.float]): xy position in src
tbsim/models/GAN_regularizer.py:7
↓ 1 callersFunctionpred2obs_static
generate observation for every step of the predictions Args: data_batch (dict): input data dictionary pos_pred (torch.tensor[torc
tbsim/models/GAN_regularizer.py:103
↓ 1 callersFunctionprepare_hist_in
INPUTS: - pos : (B, T, 2) - yaw : (B, T, 1) - speed : (B, T) - extent: (B, 3) - avail: (B, T) - norm_info : tuple of (add
tbsim/models/diffuser_helpers.py:69
↓ 1 callersFunctionproject_onto
Project the given points onto this Polyline. Args: xyh: Points to project, of shape (B, N, T, 3) points: lane points to project o
tbsim/utils/trajdata_utils.py:726
↓ 1 callersMethodq_sample
(self, x_start, t, noise)
tbsim/models/scenediffuser.py:1578
↓ 1 callersMethodq_sample
(self, x_start, t, noise)
tbsim/models/diffuser.py:1006
↓ 1 callersFunctionquery_gpt
(openai_key : str, user_final_query : str, system_message : str=None, few_shot_examples=None)
tbsim/utils/gpt_utils.py:40
↓ 1 callersFunctionquery_gpt_wrapper
(openai_key : str, user_query : str, context_description : str="")
tbsim/utils/gpt_utils.py:64
↓ 1 callersFunctionrandom_initial_adjust_plan
(env,adjust_recipe)
tbsim/utils/env_utils.py:96
↓ 1 callersMethodrasterise_agents_frame_batch
Rasterise agents for each scene in the batch at a given frame. :param state_index: the frame index in the scene :return: a dict mappi
tbsim/l5kit/simulation_dataset.py:194
↓ 1 callersMethodrasterise_agents_frame_batch_gt
Rasterise agents for each scene in the batch at a given frame. :param state_index: the frame index in the scene :return: a dict mappi
tbsim/l5kit/simulation_dataset.py:205
↓ 1 callersMethodrasterise_frame_batch
Get a frame from all scenes :param state_index: the frame index :return: a list of dict from EgoDatasets
tbsim/l5kit/simulation_dataset.py:132
↓ 1 callersMethodrasterise_frame_batch_gt
Get a frame from all scenes :param state_index: the frame index :return: a list of dict from EgoDatasets
tbsim/l5kit/simulation_dataset.py:146
↓ 1 callersMethodrasterize
(self, *args, **kwargs)
tbsim/datasets/l5kit_datamodules.py:44
↓ 1 callersMethodrasterize_agent_future
(self,obs_dict)
tbsim/algos/metric_algos.py:149
↓ 1 callersFunctionrasterize_agents
Paint agent histories onto an agent-centric map image
tbsim/utils/trajdata_utils.py:123
↓ 1 callersFunctionrasterize_agents_scene
Paint agent histories onto an agent-centric map image
tbsim/utils/trajdata_utils.py:83
↓ 1 callersFunctionraw2feature
map raw src into features of dim 21+lane dim
tbsim/utils/l5_utils.py:132
↓ 1 callersMethodreassign_values
(obs)
tbsim/policies/wrappers.py:728
↓ 1 callersMethodreformatting
(self,new_form_batch)
tbsim/policies/differential_stack_policy.py:314
↓ 1 callersMethodrender
(self, ras_pos, ras_yaw, scene_name)
tbsim/utils/scene_edit_utils.py:960
↓ 1 callersMethodrender
(self, actions_to_take)
tbsim/envs/env_trajdata.py:231
↓ 1 callersMethodrender
(self, actions_to_take)
tbsim/envs/env_avdata.py:188
↓ 1 callersMethodrender
(self, actions_to_take: RolloutAction, **kwargs)
tbsim/envs/env_l5kit.py:359
↓ 1 callersMethodrender_semantic_map
Renders the semantic map at given x,y coordinates. Args: center_in_world (np.ndarray): XY of the image center in world ref system
tbsim/l5kit/vis_rasterizer.py:112
↓ 1 callersFunctionrender_state_l5kit_ego_view
Render ego-centric view, possibly with a location heatmap (if using SpatialPlanner)
tbsim/utils/vis_utils.py:224
↓ 1 callersFunctionreparameterize
Reparameterize for the backpropagation of z instead of q. This makes it so that we can backpropagate through the sampling of z from our e
tbsim/utils/torch_utils.py:56
↓ 1 callersMethodreset
Reset the previous simulation episode. Randomly sample a batch of new scenes unless specified in @scene_indices Args: sc
tbsim/envs/env_trajdata.py:154
↓ 1 callersMethodreset
(self)
tbsim/envs/env_metrics.py:32
↓ 1 callersMethodresume
(self)
tbsim/utils/diffuser_utils/progress.py:37
↓ 1 callersFunctionrgetattr
recursively get attributes
tbsim/utils/torch_utils.py:204
↓ 1 callersFunctionrollout_episodes
Rollout an environment for a number of episodes Args: env (BaseEnv): a base simulation environment (gym-like) policy (Rollout
tbsim/utils/env_utils.py:175
↓ 1 callersFunctionrun_scene_editor
(eval_cfg, save_cfg, data_to_disk, render_to_video, render_to_img, render_cfg)
scripts/scene_editor.py:31
↓ 1 callersMethodsample
Draw data samples (x') given a batch of condition inputs (x_c) and the VAE prior. Args: condition_inputs (dict, torch.Te
tbsim/models/vaes.py:498
↓ 1 callersMethodsample_z
(self, condition_inputs, n: int, condition_feature=None)
tbsim/models/vaes.py:374
↓ 1 callersFunctionscene_diffusion_video
(rasterizer, scene_data, scene_name, output_dir, n_step_action=5,
tbsim/utils/scene_edit_utils.py:1646
↓ 1 callersFunctionscene_to_video
(rasterizer, scene_data, scene_name, output_dir, guidance_config=None,
tbsim/utils/scene_edit_utils.py:1534
↓ 1 callersFunctionselect_agents_np
Filter agents from zarr INPUT_FOLDER according to multiple thresholds and store a boolean array of the same shape.
tbsim/l5kit/l5_agent_dataset.py:34
↓ 1 callersMethodself_temporal_attn_decoder_fn
:param agents_emb: (T_all, B, M, d_k) :param agent_masks: (B, T_obs, M) :return: (T_all, B, M, d_k)
tbsim/models/scenetemporal.py:235
↓ 1 callersMethodset_constraints
Resets the test-time hard constraints to follow during prediction.
tbsim/algos/algos.py:2859
↓ 1 callersMethodset_constraints
Instantiates test-time hard constraints using the config (dict) passed in.
tbsim/models/diffuser.py:330
↓ 1 callersMethodset_diffusion_specific_params
(self, diffusion_specific_params)
tbsim/algos/algos.py:2137
↓ 1 callersMethodset_diffusion_specific_params
(self, diffusion_specific_params)
tbsim/models/diffuser.py:350
↓ 1 callersMethodset_guidance
(self, guidance_config_list, example_batch=None)
tbsim/utils/guidance_loss.py:2196
↓ 1 callersMethodset_guidance
Resets the test-time guidance functions to follow during prediction.
tbsim/algos/algos.py:2099
↓ 1 callersMethodset_guidance
Resets the test-time guidance functions to follow during prediction.
tbsim/algos/algos.py:2841
↓ 1 callersMethodset_guidance
(self, guidance_config_list, example_batch=None)
tbsim/models/rasterized_models.py:530
↓ 1 callersMethodset_guidance_optimization_params
(self, guidance_optimization_params)
tbsim/models/rasterized_models.py:527
↓ 1 callersMethodset_guidance_optimization_params
(self, guidance_optimization_params)
tbsim/models/vaes.py:391
↓ 1 callersMethodset_stl_rules
Always([in stop sign region] -> Eventually( Always_[0, 3](low speed And in stop region) ) <=> Always( Not(in stop region) Or Eventual
tbsim/rules/stl_traffic_rules.py:74
↓ 1 callersMethodset_target
(self, target_pos, target_time)
tbsim/utils/guidance_loss.py:644
↓ 1 callersMethodset_target
(self, target_pos)
tbsim/utils/guidance_loss.py:686
↓ 1 callersMethodset_target
(self, target_pos, target_time)
tbsim/utils/guidance_loss.py:963
↓ 1 callersMethodset_target
(self, target_pos)
tbsim/utils/guidance_loss.py:1066
↓ 1 callersMethodsetup
(self, stage: Optional[str] = None)
tbsim/datasets/l5kit_datamodules.py:138
↓ 1 callersMethodsocial_attn_fn
:param agents_emb: (T_obs, B, M, d_k) :param agent_masks: (B, T_obs, M) :return: (T_obs, B, M, d_k)
tbsim/models/scenetemporal.py:215
↓ 1 callersMethodsocial_attn_with_edge_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 :param aux_info: dict
tbsim/models/scenetemporal.py:323
↓ 1 callersMethodsplit_ego_and_agent_obs
(obs)
tbsim/policies/wrappers.py:363
↓ 1 callersMethodsplit_ego_and_agent_obs
(obs)
tbsim/policies/wrappers.py:744
↓ 1 callersMethodsrc2pos
extract positional info from src for all datatypes, e.g., for vehicles, the first two dimensions are x and y
tbsim/models/Transformer.py:43
↓ 1 callersMethodsrc2pos
extract positional info from src for all datatypes, e.g., for vehicles, the first two dimensions are x and y
tbsim/models/Transformer.py:302
↓ 1 callersMethodstamp
(self)
tbsim/utils/diffuser_utils/progress.py:137
↓ 1 callersMethodstep
Step the simulation with control inputs Args: actions (RolloutAction): action for controlling ego and/or agents
tbsim/envs/env_avdata.py:357
↓ 1 callersMethodstep
(self, x, u, dt, bound=True)
tbsim/dynamics/base.py:32
↓ 1 callersMethodstep_ema
(self, step)
tbsim/algos/algos.py:1855
↓ 1 callersMethodstep_ema
(self, step)
tbsim/algos/algos.py:2546
↓ 1 callersMethodtemporal_attn_decoder_fn
:param agents_emb: (T_fut, B, M, d_k) :param context: (T_obs, B, M, d_k) :param agent_masks: (B, T_obs, M) :return: (
tbsim/models/scenetemporal.py:268
↓ 1 callersMethodtemporal_attn_fn
:param agents_emb: (T_obs, B, M, d_k) :param agent_masks: (B, T_obs, M) :return: (T_obs, B, M, d_k)
tbsim/models/scenetemporal.py:200
↓ 1 callersFunctiontiled_to_tree
Turning a trajectory tree in tiled form to a tree data structure Args: total_traj (torch.tensor or np.ndarray): tiled trajectory tree
tbsim/utils/planning_utils.py:230
↓ 1 callersFunctionto_device
Sends all torch tensors in nested dictionary or list or tuple to device @device, and returns a new nested structure. Args: x (di
tbsim/utils/tensor_utils.py:295
↓ 1 callersFunctionto_device
(x, device=DEVICE)
tbsim/utils/diffuser_utils/arrays.py:28
← previousnext →601–700 of 1,831, ranked by callers