MCPcopy Create free account

hub / github.com/agrimgupta92/sgan / functions

Functions57 in github.com/agrimgupta92/sgan

↓ 7 callersMethodrepeat
Inputs: -tensor: 2D tensor of any shape -num_reps: Number of times to repeat each row Outpus: -repeat_tensor:
sgan/models.py:188
↓ 5 callersMethod__init__
( self, embedding_dim=64, h_dim=64, mlp_dim=1024, num_layers=1, dropout=0.0 )
sgan/models.py:31
↓ 5 callersFunctionmake_mlp
(dim_list, activation='relu', batch_norm=True, dropout=0)
sgan/models.py:5
↓ 4 callersFunctiondisplacement_error
Input: - pred_traj: Tensor of shape (seq_len, batch, 2). Predicted trajectory. - pred_traj_gt: Tensor of shape (seq_len, batch, 2). Groun
sgan/losses.py:74
↓ 4 callersFunctionfinal_displacement_error
Input: - pred_pos: Tensor of shape (batch, 2). Predicted last pos. - pred_pos_gt: Tensor of shape (seq_len, batch, 2). Groud truth la
sgan/losses.py:98
↓ 4 callersFunctionrelative_to_abs
Inputs: - rel_traj: pytorch tensor of shape (seq_len, batch, 2) - start_pos: pytorch tensor of shape (batch, 2) Outputs: - abs_tr
sgan/utils.py:82
↓ 3 callersFunctionbce_loss
Numerically stable version of the binary cross-entropy loss function. As per https://github.com/pytorch/pytorch/issues/751 See the Tensor
sgan/losses.py:5
↓ 3 callersFunctiondata_loader
(args, path)
sgan/data/loader.py:6
↓ 3 callersFunctionget_dset_path
(dset_name, dset_type)
sgan/utils.py:75
↓ 3 callersFunctionl2_loss
Input: - pred_traj: Tensor of shape (seq_len, batch, 2). Predicted trajectory. - pred_traj_gt: Tensor of shape (seq_len, batch, 2). Groud
sgan/losses.py:52
↓ 3 callersMethodrepeat
Inputs: -tensor: 2D tensor of any shape -num_reps: Number of times to repeat each row Outpus: -repeat_tensor:
sgan/models.py:275
↓ 2 callersFunctioncheck_accuracy
( args, loader, generator, discriminator, d_loss_fn, limit=False )
scripts/train.py:458
↓ 2 callersFunctionevaluate_helper
(error, seq_start_end)
scripts/evaluate_model.py:44
↓ 2 callersFunctionget_total_norm
(parameters, norm_type=2)
sgan/utils.py:33
↓ 2 callersMethodmlp_decoder_needed
(self)
sgan/models.py:486
↓ 1 callersMethodadd_noise
Inputs: - _input: Tensor of shape (_, decoder_h_dim - noise_first_dim) - seq_start_end: A list of tuples which delimit sequen
sgan/models.py:448
↓ 1 callersFunctioncal_ade
(pred_traj_gt, pred_traj_fake, linear_ped, non_linear_ped)
scripts/train.py:558
↓ 1 callersFunctioncal_fde
( pred_traj_gt, pred_traj_fake, linear_ped, non_linear_ped )
scripts/train.py:565
↓ 1 callersFunctioncal_l2_losses
( pred_traj_gt, pred_traj_gt_rel, pred_traj_fake, pred_traj_fake_rel, loss_mask )
scripts/train.py:545
↓ 1 callersFunctiondiscriminator_step
( args, batch, generator, discriminator, d_loss_fn, optimizer_d )
scripts/train.py:362
↓ 1 callersFunctionevaluate
(args, loader, generator, num_samples)
scripts/evaluate_model.py:58
↓ 1 callersFunctiongenerator_step
( args, batch, generator, discriminator, g_loss_fn, optimizer_g )
scripts/train.py:400
↓ 1 callersMethodget_bounds
(self, ped_pos)
sgan/models.py:256
↓ 1 callersFunctionget_dtypes
(args)
scripts/train.py:102
↓ 1 callersFunctionget_generator
(checkpoint)
scripts/evaluate_model.py:18
↓ 1 callersMethodget_grid_locations
(self, top_left, other_pos)
sgan/models.py:265
↓ 1 callersFunctionget_noise
(shape, noise_type)
sgan/models.py:20
↓ 1 callersMethodinit_hidden
(self, batch)
sgan/models.py:48
↓ 1 callersFunctionmain
(args)
scripts/train.py:111
↓ 1 callersFunctionmain
(args)
scripts/print_args.py:12
↓ 1 callersFunctionmain
(args)
scripts/evaluate_model.py:94
↓ 1 callersFunctionpoly_fit
Input: - traj: Numpy array of shape (2, traj_len) - traj_len: Len of trajectory - threshold: Minimum error to be considered for non l
sgan/data/trajectories.py:53
↓ 1 callersFunctionread_file
(_path, delim='\t')
sgan/data/trajectories.py:39
Method__getitem__
(self, index)
sgan/data/trajectories.py:181
Method__init__
( self, seq_len, embedding_dim=64, h_dim=128, mlp_dim=1024, num_layers=1, pool_every_timestep=
sgan/models.py:75
Method__init__
( self, embedding_dim=64, h_dim=64, mlp_dim=1024, bottleneck_dim=1024, activation='relu', batc
sgan/models.py:167
Method__init__
( self, h_dim=64, activation='relu', batch_norm=True, dropout=0.0, neighborhood_size=2.0, grid
sgan/models.py:236
Method__init__
( self, obs_len, pred_len, embedding_dim=64, encoder_h_dim=64, decoder_h_dim=128, mlp_dim=1024
sgan/models.py:355
Method__init__
( self, obs_len, pred_len, embedding_dim=64, h_dim=64, mlp_dim=1024, num_layers=1, activation=
sgan/models.py:550
Method__init__
Args: - data_dir: Directory containing dataset files in the format <frame_id> <ped_id> <x> <y> - obs_len: Number of t
sgan/data/trajectories.py:73
Method__len__
(self)
sgan/data/trajectories.py:178
Functionbool_flag
(s)
sgan/utils.py:20
Functionfind_nan
(variable, var_name)
sgan/utils.py:14
Methodforward
Inputs: - obs_traj: Tensor of shape (obs_len, batch, 2) Output: - final_h: Tensor of shape (self.num_layers, batch, s
sgan/models.py:54
Methodforward
Inputs: - last_pos: Tensor of shape (batch, 2) - last_pos_rel: Tensor of shape (batch, 2) - state_tuple: (hh, ch) eac
sgan/models.py:125
Methodforward
Inputs: - h_states: Tensor of shape (num_layers, batch, h_dim) - seq_start_end: A list of tuples which delimit sequences with
sgan/models.py:201
Methodforward
Inputs: - h_states: Tesnsor of shape (num_layers, batch, h_dim) - seq_start_end: A list of tuples which delimit sequences wit
sgan/models.py:288
Methodforward
Inputs: - obs_traj: Tensor of shape (obs_len, batch, 2) - obs_traj_rel: Tensor of shape (obs_len, batch, 2) - seq_sta
sgan/models.py:495
Methodforward
Inputs: - traj: Tensor of shape (obs_len + pred_len, batch, 2) - traj_rel: Tensor of shape (obs_len + pred_len, batch, 2)
sgan/models.py:590
Functiongan_d_loss
Input: - scores_real: Tensor of shape (N,) giving scores for real samples - scores_fake: Tensor of shape (N,) giving scores for fake samp
sgan/losses.py:36
Functiongan_g_loss
Input: - scores_fake: Tensor of shape (N,) containing scores for fake samples Output: - loss: Tensor of shape (,) giving GAN generat
sgan/losses.py:24
Functionget_gpu_memory
()
sgan/utils.py:61
Functioninit_weights
(m)
scripts/train.py:96
Functionint_tuple
(s)
sgan/utils.py:10
Functionlineno
()
sgan/utils.py:29
Functionseq_collate
(data)
sgan/data/trajectories.py:13
Functiontimeit
(msg, should_time=True)
sgan/utils.py:49