MCPcopy Create free account

hub / github.com/NVlabs/CTG / functions

Functions1,831 in github.com/NVlabs/CTG

Functionsqueeze
Reduce dimension of size 1 at dimension @dim in all torch tensors and numpy arrays in nested dictionary or list or tuple and returns a new ne
tbsim/utils/tensor_utils.py:252
Methodstate2pos
(self, x)
tbsim/dynamics/bicycle.py:138
Methodstate2pos
(x)
tbsim/dynamics/double_integrator.py:86
Methodstate2pos
(x)
tbsim/dynamics/unicycle.py:132
Methodstate2pos
(x)
tbsim/dynamics/single_integrator.py:51
Methodstate2yaw
(self, x)
tbsim/dynamics/bicycle.py:141
Methodstate2yaw
(x)
tbsim/dynamics/double_integrator.py:90
Methodstate2yaw
(x)
tbsim/dynamics/unicycle.py:136
Methodstate_action_grad_inner_transform
(self, x_guidance, data_batch, transform_params, **kwargs)
tbsim/models/scenediffuser.py:1372
Methodstate_action_grad_inner_transform
(self, x_guidance, data_batch, transform_params, **kwargs)
tbsim/models/diffuser.py:814
Methodstate_action_no_dyn_grad_inner_transform
(self, x_guidance, data_batch, transform_params, **kwargs)
tbsim/models/scenediffuser.py:1382
Methodstate_action_no_dyn_grad_inner_transform
(self, x_guidance, data_batch, transform_params, **kwargs)
tbsim/models/diffuser.py:824
Functionstate_grad_general_transform
Transform state to state and action using curr_speed. x_guidance: (B*N, T, 3)
tbsim/models/diffuser_helpers.py:749
Methodstate_grad_inner_transform
(self, x_guidance, data_batch, transform_params, **kwargs)
tbsim/models/scenediffuser.py:1392
Methodstate_grad_inner_transform
(self, x_guidance, data_batch, transform_params, **kwargs)
tbsim/models/diffuser.py:834
Methodstep
Step the simulation with control inputs Args: actions (RolloutAction): action for controlling ego and/or agents
tbsim/envs/env_l5kit.py:443
Methodstep
Take a step with the dynamics model Args: x (torch.Tensor): current state [B, ..., 6] (x, y, h, speed, dh, veh_length)
tbsim/dynamics/bicycle.py:78
Methodstep
(self, x, u, dt, bound=True)
tbsim/dynamics/double_integrator.py:27
Methodstep
(self, x, u, dt, bound=True)
tbsim/dynamics/unicycle.py:41
Methodstep
(self, x, u, dt, bound=True)
tbsim/dynamics/single_integrator.py:21
Functionsubsequent_mask
Mask out subsequent positions.
tbsim/models/Transformer.py:531
Methodtest_dataloader
(self)
tbsim/datasets/l5kit_datamodules.py:121
Methodtest_dataloader
(self)
tbsim/datasets/trajdata_datamodules.py:98
Methodtest_dataloader
(self)
tbsim/datasets/trajdata_datamodules.py:216
Methodtgt_temporal_mask
use a binomial distribution with parameter p to mask out the first k steps of the tgt
tbsim/models/transformer_model.py:141
Functiontime_distributed
Apply function @op to all tensors in nested dictionary or list or tuple @inputs in both the batch (B) and time (T) dimension, where the tenso
tbsim/utils/tensor_utils.py:1049
Functionto_batch
Introduces a leading batch dimension of 1 for all torch tensors and numpy arrays in nested dictionary or list or tuple and returns a new nest
tbsim/utils/tensor_utils.py:166
Methodto_dict
(self)
tbsim/policies/common.py:155
Functionto_float
Converts all torch tensors and numpy arrays in nested dictionary or list or tuple to float type entries, and returns a new nested structure.
tbsim/utils/tensor_utils.py:405
Functionto_img
(x)
tbsim/utils/diffuser_utils/arrays.py:80
Functionto_list
Converts all torch tensors and numpy arrays in nested dictionary or list or tuple to a list, and returns a new nested structure. Useful for
tbsim/utils/tensor_utils.py:376
Functionto_numpy
Converts all torch tensors in nested dictionary or list or tuple to numpy (and leaves existing numpy arrays as-is), and returns a new nes
tbsim/utils/tensor_utils.py:344
Methodto_numpy
(self)
tbsim/policies/common.py:165
Functionto_one_hot
Convert all tensors in nested dictionary or list or tuple to one-hot representation, assuming a certain number of total class labels. Ar
tbsim/utils/tensor_utils.py:483
Methodto_rgb
(self, in_im: np.ndarray, **kwargs: dict)
tbsim/l5kit/vis_rasterizer.py:178
Methodto_rgb
(self,*args, **kwargs)
tbsim/datasets/l5kit_datamodules.py:47
Functionto_sequence
Introduces a time dimension of 1 at dimension 1 for all torch tensors and numpy arrays in nested dictionary or list or tuple and returns a ne
tbsim/utils/tensor_utils.py:187
Functionto_torch
Converts all numpy arrays and torch tensors in nested dictionary or list or tuple to torch tensors on device @device and returns a new nested
tbsim/utils/tensor_utils.py:447
Functionto_uint8
Converts all torch tensors and numpy arrays in nested dictionary or list or tuple to uint8 type entries, and returns a new nested structure.
tbsim/utils/tensor_utils.py:426
Methodtotal_num_scenes
(self)
tbsim/envs/env_trajdata.py:120
Methodtotal_num_scenes
(self)
tbsim/envs/env_avdata.py:105
Methodtotal_num_scenes
(self)
tbsim/envs/env_l5kit.py:179
Methodtrain_dataloader
(self)
tbsim/datasets/l5kit_datamodules.py:101
Methodtrain_dataloader
(self)
tbsim/datasets/trajdata_datamodules.py:76
Methodtrain_dataloader
(self)
tbsim/datasets/trajdata_datamodules.py:194
Methodtraining_step
(self, batch, batch_idx)
tbsim/algos/multiagent_algos.py:62
Methodtraining_step
(self, batch, batch_idx, optimizer_idx)
tbsim/algos/multiagent_algos.py:210
Methodtraining_step
(self, batch, batch_idx)
tbsim/algos/multiagent_algos.py:362
Methodtraining_step
Training on a single batch of data. Args: batch (dict): dictionary with torch.Tensors sampled from a dat
tbsim/algos/metric_algos.py:53
Methodtraining_step
(self, batch, batch_idx)
tbsim/algos/metric_algos.py:266
Methodtraining_step
Training on a single batch of data. Args: batch (dict): dictionary with torch.Tensors sampled from a dat
tbsim/algos/algos.py:115
Methodtraining_step
(self, batch, batch_idx)
tbsim/algos/algos.py:401
Methodtraining_step
Training on a single batch of data. Args: batch (dict): dictionary with torch.Tensors sampled from a dat
tbsim/algos/algos.py:518
Methodtraining_step
Training on a single batch of data. Args: batch (dict): dictionary with torch.Tensors sampled from a dat
tbsim/algos/algos.py:636
Methodtraining_step
Training on a single batch of data. Args: batch (dict): dictionary with torch.Tensors sampled from a dat
tbsim/algos/algos.py:810
Methodtraining_step
(self, batch, batch_idx, optimizer_idx)
tbsim/algos/algos.py:989
Methodtraining_step
Training on a single batch of data. Args: batch (dict): dictionary with torch.Tensors sampled from a dat
tbsim/algos/algos.py:1089
Methodtraining_step
Training on a single batch of data. Args: batch (dict): dictionary with torch.Tensors sampled from a dat
tbsim/algos/algos.py:1216
Methodtraining_step
Training on a single batch of data. Args: batch (dict): dictionary with torch.Tensors sampled from a dat
tbsim/algos/algos.py:1335
Methodtraining_step
Training on a single batch of data. Args: batch (dict): dictionary with torch.Tensors sampled from a dat
tbsim/algos/algos.py:1485
Methodtraining_step
Training on a single batch of data. Args: batch (dict): dictionary with torch.Tensors sampled from a dat
tbsim/algos/algos.py:1864
Methodtraining_step
Training on a single batch of data. Args: batch (dict): dictionary with torch.Tensors sampled from a dat
tbsim/algos/algos.py:2196
Methodtraining_step
Training on a single batch of data. Args: batch (dict): dictionary with torch.Tensors sampled from a dat
tbsim/algos/algos.py:2555
Methodtraining_step_end
(self, batch_parts)
tbsim/algos/algos.py:1861
Methodtraining_step_end
(self, batch_parts)
tbsim/algos/algos.py:2552
Methodtrajectories
(self)
tbsim/policies/common.py:20
Methodtransform
(self, trans_mats, rot_rads)
tbsim/policies/common.py:52
Methodtransform
(self, ego_trans_mats, ego_rot_rads, agents_trans_mats=None, agents_rot_rads=None)
tbsim/policies/common.py:130
Functiontransform_matrices
Creates a 3x3 transformation matrix for each angle and translation in the input. Args: angles (Tensor): The (N,)-shaped angles tensor to
tbsim/utils/geometry_utils.py:434
Functiontransform_points_np
(points, transf_matrix)
tbsim/utils/geometry_utils.py:94
Methodtype
(self)
tbsim/dynamics/bicycle.py:135
Methodtype
(self)
tbsim/dynamics/double_integrator.py:50
Methodtype
(self)
tbsim/dynamics/unicycle.py:86
Methodtype
(self)
tbsim/dynamics/single_integrator.py:35
Methodubound
(self, x)
tbsim/dynamics/bicycle.py:147
Methodubound
(self, x)
tbsim/dynamics/base.py:44
Methodunravel_index
(index, shape)
tbsim/models/scenediffuser.py:1669
Methodunravel_index
(index, shape)
tbsim/models/diffuser.py:1065
Methodupdate
(self, **kwargs)
tbsim/utils/guidance_loss.py:2136
Methodupdate
(self, **kwargs)
tbsim/utils/guidance_loss.py:2193
Methodupdate_global_t
Update any persistant state needed by guidance loss functions. - global_t : the current global timestep of rollout
tbsim/utils/guidance_metrics.py:55
Methodupdate_guidance
(self, **kwargs)
tbsim/models/scenediffuser.py:417
Methodupdate_guidance
(self, **kwargs)
tbsim/models/diffuser.py:340
Methodupdate_random_seed
(self, seed)
tbsim/envs/env_trajdata.py:78
Methodupdate_random_seed
(self, seed)
tbsim/envs/env_avdata.py:63
Methodupdate_random_seed
(self,seed)
tbsim/envs/env_l5kit.py:84
Functionupload_codebase_to_ngc_workspace
Upload local codebase to NGC workspace Args: ngc_config (dict): NGC config
tbsim/utils/experiment_utils.py:402
Methodval_dataloader
(self)
tbsim/datasets/l5kit_datamodules.py:111
Methodval_dataloader
(self)
tbsim/datasets/trajdata_datamodules.py:87
Methodval_dataloader
(self)
tbsim/datasets/trajdata_datamodules.py:205
Methodvalidation_epoch_end
(self, outputs)
tbsim/algos/multiagent_algos.py:85
Methodvalidation_epoch_end
(self, outputs)
tbsim/algos/multiagent_algos.py:240
Methodvalidation_epoch_end
(self, outputs)
tbsim/algos/multiagent_algos.py:410
Methodvalidation_epoch_end
(self, outputs)
tbsim/algos/metric_algos.py:96
Methodvalidation_epoch_end
(self, outputs)
tbsim/algos/metric_algos.py:292
Methodvalidation_epoch_end
(self, outputs)
tbsim/algos/algos.py:158
Methodvalidation_epoch_end
(self, outputs)
tbsim/algos/algos.py:427
Methodvalidation_epoch_end
(self, outputs)
tbsim/algos/algos.py:560
Methodvalidation_epoch_end
(self, outputs)
tbsim/algos/algos.py:679
Methodvalidation_epoch_end
(self, outputs)
tbsim/algos/algos.py:853
← previousnext →1,701–1,800 of 1,831, ranked by callers