Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/InhwanBae/GPGraph
/ functions
Functions
56 in github.com/InhwanBae/GPGraph
⨍
Functions
56
◇
Types & classes
14
↓ 8 callers
Method
__init__
(self)
model_baseline.py:84
↓ 3 callers
Function
generate_identity_matrix
(v)
model_groupwrapper.py:171
↓ 3 callers
Method
randn
(self, n, k, d)
utils.py:238
↓ 2 callers
Method
__init__
(self, baseline_model, in_channels=2, out_channels=5, obs_seq_len=8, pred_seq_len=12, d_type=
model_groupwrapper.py:179
↓ 2 callers
Function
graph_loss
(V_pred, V_target)
train.py:31
↓ 2 callers
Function
seq_to_graph
(seq_, seq_rel, pos_enc=False)
utils.py:36
↓ 2 callers
Method
split_heads
(self, x)
model_baseline.py:108
↓ 1 callers
Method
__init__
(self, stack_n=1000, fast_sample=True)
utils.py:233
↓ 1 callers
Function
bivariate_loss
(V_pred,V_trgt)
metrics.py:70
↓ 1 callers
Function
compute_batch_metric
Get ADE, FDE, TCC scores for each pedestrian
utils.py:270
↓ 1 callers
Method
find_group_indices
(self, v, dist_mat)
model_groupwrapper.py:21
↓ 1 callers
Function
generate_statistics_matrices
r"""generate mean and covariance matrices from the network output.
utils.py:253
↓ 1 callers
Method
group_backprop_trick_threshold
The main trick for hard is to do (v_hard - v_soft).detach() + v_soft Sample hard categorical using "Straight-through" trick I
model_groupwrapper.py:52
↓ 1 callers
Function
loc_pos
(seq_)
utils.py:20
↓ 1 callers
Function
main
(args)
train.py:144
↓ 1 callers
Method
ped_group_mask
(indices)
model_groupwrapper.py:111
↓ 1 callers
Method
ped_group_pool
(v, indices)
model_groupwrapper.py:94
↓ 1 callers
Method
ped_group_unpool
(v, indices)
model_groupwrapper.py:106
↓ 1 callers
Function
poly_fit
Input: - traj: Numpy array of shape (2, traj_len) - traj_len: Len of trajectory - threshold: Minimum error to be considered for non l
utils.py:55
↓ 1 callers
Function
read_file
(_path, delim='\t')
utils.py:73
↓ 1 callers
Function
test
(SAMPLES=20, TRIALS=100)
test.py:11
↓ 1 callers
Function
train
(epoch, model, optimizer, checkpoint_dir, loader_train)
train.py:39
↓ 1 callers
Function
valid
(epoch, model, checkpoint_dir, loader_val)
train.py:96
Method
__getitem__
(self, index)
utils.py:220
Method
__init__
Args: - data_dir: Directory containing dataset files in the format <frame_id> <ped_id> <x> <y> - obs_len: Number of t
utils.py:90
Method
__init__
(self, d_type='learned', th=1., in_channels=16, hid_channels=32, n_head=1, dropout=0)
model_groupwrapper.py:6
Method
__init__
(self, mix_type='mean', n_mix=3, out_channels=5, pred_seq_len=12)
model_groupwrapper.py:121
Method
__init__
(self, in_cha, out_cha)
model_baseline.py:11
Method
__init__
(self, number_asymmetric_conv_layer=7, spatial_channels=4, temporal_channels=4)
model_baseline.py:39
Method
__init__
(self, in_dims=2, d_model=64, num_heads=4)
model_baseline.py:96
Method
__init__
(self, obs_len=8)
model_baseline.py:145
Method
__init__
(self, spa_in_dims=2, tem_in_dims=3, embedding_dims=64, obs_len=8, dropout=0, number_asymmetr
model_baseline.py:163
Method
__init__
(self, in_dims=2, embedding_dims=16, dropout=0)
model_baseline.py:217
Method
__init__
(self, in_dims=16, embedding_dims=16, dropout=0)
model_baseline.py:237
Method
__init__
(self, number_asymmetric_conv_layer=7, embedding_dims=64, number_gcn_layers=1, dropout=0,
model_baseline.py:277
Method
__len__
(self)
utils.py:217
Function
ade
(predAll,targetAll,count_)
metrics.py:8
Function
anorm
(p1, p2)
utils.py:13
Function
closer_to_zero
(current,new_v)
metrics.py:63
Function
fde
(predAll,targetAll,count_)
metrics.py:26
Method
find_group_indices_ratio
(self, v, dist_mat)
model_groupwrapper.py:36
Method
forward
(self, v, v_abs, tau=0.1, hard=True)
model_groupwrapper.py:64
Method
forward
(self, v_stack)
model_groupwrapper.py:134
Method
forward
(self, v_abs, v_rel)
model_groupwrapper.py:198
Method
forward
(self, x)
model_baseline.py:26
Method
forward
(self, dense_spatial_interaction, dense_temporal_interaction, threshold=0.5)
model_baseline.py:58
Method
forward
(self, x, dim=0, eps=1e-5)
model_baseline.py:87
Method
forward
(self, x, mask=False, multi_head=False)
model_baseline.py:116
Method
forward
(self, x)
model_baseline.py:155
Method
forward
(self, graph, identity, mask=None)
model_baseline.py:182
Method
forward
(self, graph, adjacency)
model_baseline.py:225
Method
forward
(self, graph, normalized_spatial_adjacency_matrix, normalized_temporal_adjacency_matrix)
model_baseline.py:251
Method
forward
(self, graph, identity, mask=None)
model_baseline.py:313
Function
generate_adjacency_matrix
(v, mask=None)
model_groupwrapper.py:152
Function
nodes_rel_to_nodes_abs
(nodes,init_node)
metrics.py:55
Function
seq_to_nodes
(seq_,max_nodes = 88)
metrics.py:43