Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVlabs/CTG
/ functions
Functions
1,831 in github.com/NVlabs/CTG
⨍
Functions
1,831
◇
Types & classes
354
Function
squeeze
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
Method
state2pos
(self, x)
tbsim/dynamics/bicycle.py:138
Method
state2pos
(x)
tbsim/dynamics/double_integrator.py:86
Method
state2pos
(x)
tbsim/dynamics/unicycle.py:132
Method
state2pos
(x)
tbsim/dynamics/single_integrator.py:51
Method
state2yaw
(self, x)
tbsim/dynamics/bicycle.py:141
Method
state2yaw
(x)
tbsim/dynamics/double_integrator.py:90
Method
state2yaw
(x)
tbsim/dynamics/unicycle.py:136
Method
state_action_grad_inner_transform
(self, x_guidance, data_batch, transform_params, **kwargs)
tbsim/models/scenediffuser.py:1372
Method
state_action_grad_inner_transform
(self, x_guidance, data_batch, transform_params, **kwargs)
tbsim/models/diffuser.py:814
Method
state_action_no_dyn_grad_inner_transform
(self, x_guidance, data_batch, transform_params, **kwargs)
tbsim/models/scenediffuser.py:1382
Method
state_action_no_dyn_grad_inner_transform
(self, x_guidance, data_batch, transform_params, **kwargs)
tbsim/models/diffuser.py:824
Function
state_grad_general_transform
Transform state to state and action using curr_speed. x_guidance: (B*N, T, 3)
tbsim/models/diffuser_helpers.py:749
Method
state_grad_inner_transform
(self, x_guidance, data_batch, transform_params, **kwargs)
tbsim/models/scenediffuser.py:1392
Method
state_grad_inner_transform
(self, x_guidance, data_batch, transform_params, **kwargs)
tbsim/models/diffuser.py:834
Method
step
Step the simulation with control inputs Args: actions (RolloutAction): action for controlling ego and/or agents
tbsim/envs/env_l5kit.py:443
Method
step
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
Method
step
(self, x, u, dt, bound=True)
tbsim/dynamics/double_integrator.py:27
Method
step
(self, x, u, dt, bound=True)
tbsim/dynamics/unicycle.py:41
Method
step
(self, x, u, dt, bound=True)
tbsim/dynamics/single_integrator.py:21
Function
subsequent_mask
Mask out subsequent positions.
tbsim/models/Transformer.py:531
Method
test_dataloader
(self)
tbsim/datasets/l5kit_datamodules.py:121
Method
test_dataloader
(self)
tbsim/datasets/trajdata_datamodules.py:98
Method
test_dataloader
(self)
tbsim/datasets/trajdata_datamodules.py:216
Method
tgt_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
Function
time_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
Function
to_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
Method
to_dict
(self)
tbsim/policies/common.py:155
Function
to_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
Function
to_img
(x)
tbsim/utils/diffuser_utils/arrays.py:80
Function
to_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
Function
to_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
Method
to_numpy
(self)
tbsim/policies/common.py:165
Function
to_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
Method
to_rgb
(self, in_im: np.ndarray, **kwargs: dict)
tbsim/l5kit/vis_rasterizer.py:178
Method
to_rgb
(self,*args, **kwargs)
tbsim/datasets/l5kit_datamodules.py:47
Function
to_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
Function
to_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
Function
to_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
Method
total_num_scenes
(self)
tbsim/envs/env_trajdata.py:120
Method
total_num_scenes
(self)
tbsim/envs/env_avdata.py:105
Method
total_num_scenes
(self)
tbsim/envs/env_l5kit.py:179
Method
train_dataloader
(self)
tbsim/datasets/l5kit_datamodules.py:101
Method
train_dataloader
(self)
tbsim/datasets/trajdata_datamodules.py:76
Method
train_dataloader
(self)
tbsim/datasets/trajdata_datamodules.py:194
Method
training_step
(self, batch, batch_idx)
tbsim/algos/multiagent_algos.py:62
Method
training_step
(self, batch, batch_idx, optimizer_idx)
tbsim/algos/multiagent_algos.py:210
Method
training_step
(self, batch, batch_idx)
tbsim/algos/multiagent_algos.py:362
Method
training_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
Method
training_step
(self, batch, batch_idx)
tbsim/algos/metric_algos.py:266
Method
training_step
Training on a single batch of data. Args: batch (dict): dictionary with torch.Tensors sampled from a dat
tbsim/algos/algos.py:115
Method
training_step
(self, batch, batch_idx)
tbsim/algos/algos.py:401
Method
training_step
Training on a single batch of data. Args: batch (dict): dictionary with torch.Tensors sampled from a dat
tbsim/algos/algos.py:518
Method
training_step
Training on a single batch of data. Args: batch (dict): dictionary with torch.Tensors sampled from a dat
tbsim/algos/algos.py:636
Method
training_step
Training on a single batch of data. Args: batch (dict): dictionary with torch.Tensors sampled from a dat
tbsim/algos/algos.py:810
Method
training_step
(self, batch, batch_idx, optimizer_idx)
tbsim/algos/algos.py:989
Method
training_step
Training on a single batch of data. Args: batch (dict): dictionary with torch.Tensors sampled from a dat
tbsim/algos/algos.py:1089
Method
training_step
Training on a single batch of data. Args: batch (dict): dictionary with torch.Tensors sampled from a dat
tbsim/algos/algos.py:1216
Method
training_step
Training on a single batch of data. Args: batch (dict): dictionary with torch.Tensors sampled from a dat
tbsim/algos/algos.py:1335
Method
training_step
Training on a single batch of data. Args: batch (dict): dictionary with torch.Tensors sampled from a dat
tbsim/algos/algos.py:1485
Method
training_step
Training on a single batch of data. Args: batch (dict): dictionary with torch.Tensors sampled from a dat
tbsim/algos/algos.py:1864
Method
training_step
Training on a single batch of data. Args: batch (dict): dictionary with torch.Tensors sampled from a dat
tbsim/algos/algos.py:2196
Method
training_step
Training on a single batch of data. Args: batch (dict): dictionary with torch.Tensors sampled from a dat
tbsim/algos/algos.py:2555
Method
training_step_end
(self, batch_parts)
tbsim/algos/algos.py:1861
Method
training_step_end
(self, batch_parts)
tbsim/algos/algos.py:2552
Method
trajectories
(self)
tbsim/policies/common.py:20
Method
transform
(self, trans_mats, rot_rads)
tbsim/policies/common.py:52
Method
transform
(self, ego_trans_mats, ego_rot_rads, agents_trans_mats=None, agents_rot_rads=None)
tbsim/policies/common.py:130
Function
transform_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
Function
transform_points_np
(points, transf_matrix)
tbsim/utils/geometry_utils.py:94
Method
type
(self)
tbsim/dynamics/bicycle.py:135
Method
type
(self)
tbsim/dynamics/double_integrator.py:50
Method
type
(self)
tbsim/dynamics/unicycle.py:86
Method
type
(self)
tbsim/dynamics/single_integrator.py:35
Method
ubound
(self, x)
tbsim/dynamics/bicycle.py:147
Method
ubound
(self, x)
tbsim/dynamics/base.py:44
Method
unravel_index
(index, shape)
tbsim/models/scenediffuser.py:1669
Method
unravel_index
(index, shape)
tbsim/models/diffuser.py:1065
Method
update
(self, **kwargs)
tbsim/utils/guidance_loss.py:2136
Method
update
(self, **kwargs)
tbsim/utils/guidance_loss.py:2193
Method
update_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
Method
update_guidance
(self, **kwargs)
tbsim/models/scenediffuser.py:417
Method
update_guidance
(self, **kwargs)
tbsim/models/diffuser.py:340
Method
update_random_seed
(self, seed)
tbsim/envs/env_trajdata.py:78
Method
update_random_seed
(self, seed)
tbsim/envs/env_avdata.py:63
Method
update_random_seed
(self,seed)
tbsim/envs/env_l5kit.py:84
Function
upload_codebase_to_ngc_workspace
Upload local codebase to NGC workspace Args: ngc_config (dict): NGC config
tbsim/utils/experiment_utils.py:402
Method
val_dataloader
(self)
tbsim/datasets/l5kit_datamodules.py:111
Method
val_dataloader
(self)
tbsim/datasets/trajdata_datamodules.py:87
Method
val_dataloader
(self)
tbsim/datasets/trajdata_datamodules.py:205
Method
validation_epoch_end
(self, outputs)
tbsim/algos/multiagent_algos.py:85
Method
validation_epoch_end
(self, outputs)
tbsim/algos/multiagent_algos.py:240
Method
validation_epoch_end
(self, outputs)
tbsim/algos/multiagent_algos.py:410
Method
validation_epoch_end
(self, outputs)
tbsim/algos/metric_algos.py:96
Method
validation_epoch_end
(self, outputs)
tbsim/algos/metric_algos.py:292
Method
validation_epoch_end
(self, outputs)
tbsim/algos/algos.py:158
Method
validation_epoch_end
(self, outputs)
tbsim/algos/algos.py:427
Method
validation_epoch_end
(self, outputs)
tbsim/algos/algos.py:560
Method
validation_epoch_end
(self, outputs)
tbsim/algos/algos.py:679
Method
validation_epoch_end
(self, outputs)
tbsim/algos/algos.py:853
← previous
next →
1,701–1,800 of 1,831, ranked by callers