MCPcopy Create free account

hub / github.com/coperception/star / functions

Functions236 in github.com/coperception/star

↓ 72 callersFunctionprint
(*args, **kwargs)
star/utils/misc.py:176
↓ 19 callersMethodbuild_local_communication_matrix
(feature_list: list)
star/models/CNNNet.py:336
↓ 14 callersMethodstate_dict
(self)
star/utils/misc.py:273
↓ 12 callersMethodload_state_dict
(self, state_dict)
star/utils/misc.py:276
↓ 11 callersMethodbuild_feature_list
(self, batch_size: int, feat_maps: dict)
star/models/CNNNet.py:322
↓ 8 callersMethodagents_to_batch
(feats)
star/models/CNNNet.py:379
↓ 8 callersMethodbuild_neighbors_feature_list
(self, b, agent_idx, all_warp, num_agent, local_com_mat, device, size)
star/models/CNNNet.py:365
↓ 8 callersMethodfusion
(self, mode="sum")
star/models/CNNNet.py:372
↓ 8 callersMethodget_feature_maps_size
(self, feature_maps: tuple)
star/models/CNNNet.py:314
↓ 8 callersFunctionprint_and_write_log
(log_str)
completion/test_codet.py:450
↓ 7 callersMethod__init__
(self, in_channels, num_hiddens, num_residual_hiddens)
star/models/VQVAE.py:8
↓ 7 callersMethodmax
(self)
star/utils/misc.py:70
↓ 7 callersMethodstep
(self, data, num_agent, batch_size, loss=True)
star/utils/SegModule.py:45
↓ 6 callersMethodforward_encoder
x_next: [bxa, ts-1, C, H, W] beq_next_frames
star/models/multiagent_mae.py:142
↓ 6 callersMethodunpatchify
x: (N, L, patch_size**2 *chans) imgs: (N, chans, H, W)
star/models/mae_base.py:392
↓ 5 callersFunctioncheck_folder
(folder_path)
completion/test_codet.py:30
↓ 5 callersMethodpatchify
imgs: (N, chs, H, W) x: (N, L, patch_size**2 *chns)
star/models/mae_base.py:377
↓ 5 callersMethodrandom_masking
Perform per-sample random masking by per-sample shuffling. Per-sample shuffling is done by argsort random noise. x: [N, L, D]
star/models/mae_base.py:408
↓ 5 callersMethodreset
(self)
star/utils/metrics.py:30
↓ 4 callersMethod__init__
(self, input_size=32, output_size=256, input_chans=512, output_chans=13)
star/models/mae_base.py:22
↓ 4 callersFunctioncheck_folder
(folder_path)
completion/train_completion.py:35
↓ 4 callersMethodget_confusion
(self)
star/utils/metrics.py:80
↓ 4 callersMethodupdate
(self, **kwargs)
star/utils/misc.py:91
↓ 3 callersMethod__init__
(self, img_size=224, patch_size=16, in_chans=3, embed_dim=1024, depth=24, num_heads=16,
star/models/multiagent_mae.py:266
↓ 3 callersMethod__init__
( self, config, layer=3, in_channels=13, kd_flag=True, num_age
star/models/CNNNet.py:296
↓ 3 callersMethodaddBatch
(self, x, y)
star/utils/metrics.py:35
↓ 3 callersMethodbuild_local_communication_matrix
(feature_list: list)
star/models/VQVAE.py:300
↓ 3 callersMethodforward_decoder
overwrite the original forward_decoder, now input latent are fused
star/models/multiagent_mae.py:1028
↓ 3 callersMethodget_occupancy_IoU
(self, scale)
star/utils/metrics.py:199
↓ 3 callersMethodinference
Encoder encodes each timestamp alone Decoder fuses multi timestamp together
star/models/VQSTAR.py:446
↓ 3 callersFunctionis_dist_avail_and_initialized
()
star/utils/misc.py:187
↓ 3 callersMethodstep_completion
(self, data, batch_size, loss_fn='ce', trainable=False)
star/utils/CoModule.py:44
↓ 3 callersMethodstep_vae_completion
(self, data, batch_size, loss_fn='ce', trainable=False)
star/utils/CoModule.py:158
↓ 2 callersMethodbuild_feature_list
(self, batch_size: int, feat_maps: dict)
star/models/VQVAE.py:286
↓ 2 callersMethodforward_bce_loss
(self, target, pred)
star/models/multiagent_mae.py:1076
↓ 2 callersMethodforward_bce_loss
(self, target, pred)
star/models/VQSTAR.py:413
↓ 2 callersMethodforward_decoder
overwrite the original forward_decoder, now input latent are fused
star/models/VQSTAR.py:359
↓ 2 callersMethodgetStats
(self)
star/utils/metrics.py:54
↓ 2 callersFunctionget_1d_sincos_pos_embed_from_grid
embed_dim: output dimension for each position pos: a list of positions to be encoded: size (M,) out: (M, D)
star/utils/pos_embed.py:49
↓ 2 callersFunctionget_2d_sincos_pos_embed
grid_size: int of the grid height and width return: pos_embed: [grid_size*grid_size, embed_dim] or [1+grid_size*grid_size, embed_dim] (w/
star/utils/pos_embed.py:20
↓ 2 callersFunctionget_world_size
()
star/utils/misc.py:195
↓ 2 callersMethodinfer_mae_completion
(self, data, batch_size, mask_ratio, loss_fn='mse')
star/utils/CoModule.py:134
↓ 2 callersMethodresume_from_cpu
This function load state dict to model and optimizer on cpu, and move it back to device. This avoids a GPU memory surge issue.
star/utils/CoModule.py:24
↓ 2 callersFunctionsetup_for_distributed
This function disables printing when not in master process
star/utils/misc.py:170
↓ 2 callersMethodupdate
(self, value, n=1)
star/utils/misc.py:37
↓ 1 callersMethod__init__
(self, split)
star/datasets/MultiTempSeg.py:14
↓ 1 callersMethodadd_batch
(self, prediction, target)
star/utils/metrics.py:146
↓ 1 callersMethodagents_to_batch
(feats)
star/models/VQVAE.py:346
↓ 1 callersMethodbuild_neighbors_feature_list
(self, b, agent_idx, all_warp, num_agent, local_com_mat, device, size)
star/models/VQVAE.py:329
↓ 1 callersMethoddecode
Decode the input features. Args: x (tensor): layer-0 features. x_1 (tensor): layer-1 features. x_2 (tenso
star/models/CNNNet.py:158
↓ 1 callersMethodego_late_fusion
aggregation, ego use ground truth input, used specifically in inference time
star/models/VQVAE.py:354
↓ 1 callersMethodego_late_fusion
aggregation, ego use ground truth input, used specifically in inference time
star/models/multiagent_mae.py:907
↓ 1 callersMethodego_late_fusion
aggregation, ego use ground truth input, used specifically in inference time
star/models/CNNNet.py:387
↓ 1 callersMethodego_late_fusion
aggregation, ego use ground truth input, used specifically in inference time
star/models/VQSTAR.py:248
↓ 1 callersMethodencode
Encode the input BEV features. Args: x (tensor): the input BEV features. Returns: A list that contains all t
star/models/CNNNet.py:102
↓ 1 callersMethodfeature_transformation
(b, nb_agent_idx, local_com_mat, all_warp, device, size)
star/models/VQVAE.py:305
↓ 1 callersMethodfeature_transformation
(b, nb_agent_idx, local_com_mat, all_warp, device, size)
star/models/mae_base.py:591
↓ 1 callersMethodfeature_transformation
(b, nb_agent_idx, local_com_mat, all_warp, device, size)
star/models/CNNNet.py:341
↓ 1 callersMethodforward_bce_loss
(self, target, pred)
star/models/multiagent_mae.py:651
↓ 1 callersMethodforward_decoder
overwrite the original forward_decoder, now input latent are fused
star/models/multiagent_mae.py:180
↓ 1 callersMethodforward_decoder
overwrite the original forward_decoder, now input latent are fused
star/models/multiagent_mae.py:606
↓ 1 callersMethodforward_decoder
(self, x, ids_restore)
star/models/mae_base.py:688
↓ 1 callersMethodforward_encoder
x1: [bxa, C, H, W] x_next: [bxa, ts-1, C, H, W] beq_next_frames
star/models/multiagent_mae.py:563
↓ 1 callersMethodforward_encoder
(self, x1, x_next, mask_ratio)
star/models/mae_base.py:646
↓ 1 callersMethodforward_fusion
as the pre process of the decoder, handles: 1) add mask, restore feature maps shape like (b x agent x channel x h x w) 2) com
star/models/multiagent_mae.py:65
↓ 1 callersMethodforward_fusion
as the pre process of the decoder, handles: 1) add mask, restore feature maps shape like (b x agent x channel x h x w) 2) com
star/models/multiagent_mae.py:505
↓ 1 callersMethodforward_loss
overwrite the original forward_loss, now calculate loss on the entire image
star/models/multiagent_mae.py:216
↓ 1 callersMethodforward_loss
overwrite the original forward_loss, now calculate loss on the entire image
star/models/multiagent_mae.py:1060
↓ 1 callersMethodforward_loss
imgs: [N, 3, H, W] pred: [N, L, p*p*3] mask: [N, L], 0 is keep, 1 is remove,
star/models/mae_base.py:719
↓ 1 callersMethodfusion
(self, mode="sum")
star/models/VQVAE.py:336
↓ 1 callersMethodgetIoU
(self)
star/utils/metrics.py:65
↓ 1 callersFunctionget_2d_sincos_pos_embed_from_grid
(embed_dim, grid)
star/utils/pos_embed.py:38
↓ 1 callersMethodget_average_IoU
(self)
star/utils/metrics.py:216
↓ 1 callersMethodget_feature_maps_size
(self, feature_maps: tuple)
star/models/VQVAE.py:278
↓ 1 callersFunctionget_grad_norm_
(parameters, norm_type: float = 2.0)
star/utils/misc.py:280
↓ 1 callersMethodget_kd_loss
(self, batch_size, data, fused_layer, num_agent, x5, x6, x7)
star/utils/SegModule.py:123
↓ 1 callersFunctionget_rank
()
star/utils/misc.py:201
↓ 1 callersMethodinfer_vqstar_completion
(self, data, batch_size, mask_ratio, loss_fn='mse')
star/utils/CoModule.py:231
↓ 1 callersMethodinitialize_weights
(self)
star/models/mae_base.py:344
↓ 1 callersFunctionis_main_process
()
star/utils/misc.py:207
↓ 1 callersMethodlate_fusion
reshape the model's predictions back to 256x256x13, do aggregation on this
star/models/multiagent_mae.py:298
↓ 1 callersMethodlate_fusion
reshape the model's predictions back to 256x256x13, do aggregation on this
star/models/multiagent_mae.py:870
↓ 1 callersMethodlate_fusion
reshape the model's predictions back to 256x256x13, do aggregation on this
star/models/VQSTAR.py:211
↓ 1 callersFunctionmain
(args)
completion/test_codet.py:37
↓ 1 callersFunctionmain
(args)
completion/train_completion.py:41
↓ 1 callersFunctionmain
(config, args)
completion/test_coseg.py:37
↓ 1 callersFunctionmain
(args)
completion/test_completion.py:41
↓ 1 callersFunctionoptimizer_to
(optim, device)
star/utils/move_optim.py:3
↓ 1 callersFunctionsave_on_master
(*args, **kwargs)
star/utils/misc.py:211
↓ 1 callersMethodstep_mae_completion
(self, data, batch_size, mask_ratio, loss_fn='mse', trainable = False)
star/utils/CoModule.py:91
↓ 1 callersMethodstep_vqstar_completion
(self, data, batch_size, mask_ratio, loss_fn='mse', trainable = False)
star/utils/CoModule.py:193
↓ 1 callersMethodupdate_IoU
(self)
star/utils/metrics.py:210
Method__call__
(self, loss, optimizer, clip_grad=None, parameters=None, create_graph=False, update_grad=True)
star/utils/misc.py:257
Method__call__
(self, img, label)
star/datasets/MultiTempSeg.py:19
Method__getattr__
(self, attr)
star/utils/misc.py:100
Method__init__
(self, window_size=20, fmt=None)
star/utils/misc.py:29
Method__init__
(self, delimiter="\t")
star/utils/misc.py:87
Method__init__
(self)
star/utils/misc.py:254
Method__init__
(self, model, optimizer, com)
star/utils/CoModule.py:14
Method__init__
(self, alpha=0.25, gamma=2, reduction="mean")
star/utils/softmax_focal_loss.py:6
next →1–100 of 236, ranked by callers