MCPcopy Create free account

hub / github.com/FudanCVL/MOVE / functions

Functions231 in github.com/FudanCVL/MOVE

↓ 20 callersMethodwrite
(self, data)
libs/utils/Logger.py:246
↓ 13 callersMethodupdate
(self, val, n=1)
libs/utils/Logger.py:265
↓ 9 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
libs/models/DMA/video_swin_referfomer/swin_transformer.py:32
↓ 8 callersMethodextract_features
Extract multi-scale features using backbone network
libs/models/DMA/DMA.py:169
↓ 7 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
libs/models/DMA/video_swin_referfomer/video_swin_transformer.py:20
↓ 7 callersMethodget_frames
Get frames and corresponding masks for a specific action Args: video_id: ID of the video frame_indices: List
libs/dataset/MOVE.py:258
↓ 7 callersMethodreset
(self)
libs/utils/Logger.py:492
↓ 6 callersMethod__init__
(self, n_way=1, k_shot=1, num_support_frames=5,
libs/models/DMA/DMA.py:27
↓ 5 callersMethodavg
(self)
libs/utils/Logger.py:270
↓ 5 callersFunctionconv3x3
3x3 convolution with padding
libs/models/DMA/resnet.py:9
↓ 5 callersFunctiondb_eval_iou
Compute region similarity as the Jaccard Index. Arguments: annotation (ndarray): binary annotation map. segmentation (ndarray
libs/utils/davis_JF.py:128
↓ 5 callersMethodmask_pooling
(self, mask_feats, mask)
libs/models/DMA/DMA.py:226
↓ 4 callersMethod__init__
(self, input_dim, hidden_dim, output_dim, num_layers)
libs/models/DMA/transformers.py:189
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1)
libs/models/DMA/resnet.py:120
↓ 4 callersMethodextract_motion_features
(self, s_f8, s_f4)
libs/models/DMA/DMA.py:251
↓ 4 callersMethodget_valid_frames
Get valid frames for specified action in video Args: video_id: video ID action_name: action name category:
libs/dataset/MOVE.py:349
↓ 4 callersMethodwith_pos_embed
(self, tensor, pos: Optional[Tensor])
libs/models/DMA/transformers.py:89
↓ 3 callersFunction_get_activation_fn
Return an activation function given a string
libs/models/DMA/transformers.py:175
↓ 3 callersFunctiondb_eval_boundary
Compute mean,recall and decay from per-frame evaluation. Calculates precision/recall for boundaries between foreground_mask and gt_mask using morp
libs/utils/davis_JF.py:14
↓ 3 callersFunctionpoint_sample
A wrapper around :function:`torch.nn.functional.grid_sample` to support 3D point_coords tensors. Unlike :function:`torch.nn.functional.grid_s
libs/models/DMA/loss.py:23
↓ 2 callersMethod__gettrainitem__
(self, idx, proposal_mask=False)
libs/dataset/MOVE.py:525
↓ 2 callersMethod__init__
(self, block, layers, num_classes=1000, deep_base=True, pretrained=True)
libs/models/DMA/resnet.py:86
↓ 2 callersMethod_freeze_stages
(self)
libs/models/DMA/video_swin_referfomer/video_swin_transformer.py:547
↓ 2 callersMethod_freeze_stages
(self)
libs/models/DMA/video_swin_referfomer/swin_transformer.py:553
↓ 2 callersFunctionbuild_criterion
(loss_type="default")
libs/models/DMA/loss.py:226
↓ 2 callersFunctionc2_xavier_fill
Initialize `module.weight` using the "XavierFill" implemented in Caffe2. Also initializes `module.bias` to 0. Args: module (torc
libs/models/DMA/DMA.py:12
↓ 2 callersFunctioncleanup_ddp
Cleanup DDP environment
tools/inference.py:38
↓ 2 callersMethoddecode_mask
(self, mask_data)
libs/dataset/MOVE.py:335
↓ 2 callersMethodget_sinusoid_encoding
Sinusoidal position encoding table supporting single sequence
libs/models/DMA/DMA.py:745
↓ 2 callersFunctionget_window_size
(x_size, window_size, shift_size=None)
libs/models/DMA/video_swin_referfomer/video_swin_transformer.py:69
↓ 2 callersFunctionproto_dist_loss
(proto_token)
tools/train.py:467
↓ 2 callersFunctionresnet50
Constructs a ResNet-50 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
libs/models/DMA/resnet.py:156
↓ 2 callersMethodsample_frames_with_action_support
Sample frames ensuring at least specified number of action frames, uniformly sampling from entire action sequence Args: valid_fram
libs/dataset/MOVE.py:416
↓ 2 callersFunctionseg2bmap
From a segmentation, compute a binary boundary map with 1 pixel wide boundaries. The boundary pixels are offset by 1/2 pixel towards the origin f
libs/utils/davis_JF.py:71
↓ 2 callersMethodsetup
(self)
libs/utils/Logger.py:339
↓ 2 callersFunctionsetup_metrics
Initialize evaluation metrics
tools/evaluate.py:12
↓ 2 callersFunctionwindow_partition
Args: x: (B, D, H, W, C) window_size (tuple[int]): window size Returns: windows: (B*num_windows, window_size*window_
libs/models/DMA/video_swin_referfomer/video_swin_transformer.py:38
↓ 2 callersFunctionwindow_partition
Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
libs/models/DMA/video_swin_referfomer/swin_transformer.py:50
↓ 2 callersMethodwith_pos_embed
(self, tensor, pos: Optional[Tensor])
libs/models/DMA/transformers.py:31
↓ 1 callersMethod__gettestitem__
(self, idx)
libs/dataset/MOVE.py:663
↓ 1 callersMethod__init__
(self, func)
libs/utils/track_progress_rich.py:13
↓ 1 callersMethod_build_hierarchy
(self)
libs/dataset/MOVE.py:43
↓ 1 callersMethod_load_action_groups
(self)
libs/dataset/MOVE.py:39
↓ 1 callersMethod_reset_parameters
(self)
libs/models/DMA/transformers.py:26
↓ 1 callersMethod_reset_parameters
(self)
libs/models/DMA/transformers.py:84
↓ 1 callersMethod_reset_parameters
(self)
libs/models/DMA/transformers.py:149
↓ 1 callersFunction_tasks_with_index
Add index to tasks.
libs/utils/track_progress_rich.py:42
↓ 1 callersFunctionbatch_cos_sim
(a: torch.Tensor, b: torch.Tensor)
tools/train.py:478
↓ 1 callersMethodbuild_backbone
Build backbone network
libs/models/DMA/DMA.py:121
↓ 1 callersFunctioncalculate_uncertainty
We estimate uncerainty as L1 distance between 0.0 and the logit prediction in 'logits' for the foreground class in `classes`. Args:
libs/models/DMA/loss.py:157
↓ 1 callersFunctioncat
Efficient version of torch.cat that avoids a copy if there is only a single element in a list
libs/models/DMA/loss.py:13
↓ 1 callersFunctioncleanup_ddp
Cleanup DDP environment
tools/train.py:42
↓ 1 callersFunctioncompute_mask
(D, H, W, window_size, shift_size, device)
libs/models/DMA/video_swin_referfomer/video_swin_transformer.py:315
↓ 1 callersFunctioncross_entropy_loss
(pred, target, bootstrap=0.4, eps=0.001,weight=1)
libs/utils/loss.py:18
↓ 1 callersMethoddevice
(self)
libs/models/DMA/DMA.py:118
↓ 1 callersFunctiondice_loss
Compute the DICE loss, similar to generalized IOU for masks Args: inputs: A float tensor of arbitrary shape. The pred
libs/models/DMA/loss.py:105
↓ 1 callersFunctionevaluate_move_results
Evaluate MoVe inference results.
tools/evaluate.py:165
↓ 1 callersMethodforward_part1
(self, x, mask_matrix)
libs/models/DMA/video_swin_referfomer/video_swin_transformer.py:213
↓ 1 callersMethodforward_part2
(self, x)
libs/models/DMA/video_swin_referfomer/video_swin_transformer.py:249
↓ 1 callersMethodforward_post
(self, tgt, tgt_mask: Optional[Tensor] = None, tgt_key_padding_mask:
libs/models/DMA/transformers.py:34
↓ 1 callersMethodforward_post
(self, tgt, memory, memory_mask: Optional[Tensor] = None, memory_key
libs/models/DMA/transformers.py:92
↓ 1 callersMethodforward_post
(self, tgt)
libs/models/DMA/transformers.py:157
↓ 1 callersMethodforward_pre
(self, tgt, tgt_mask: Optional[Tensor] = None, tgt_key_padding_mask: O
libs/models/DMA/transformers.py:46
↓ 1 callersMethodforward_pre
(self, tgt, memory, memory_mask: Optional[Tensor] = None, memory_key_p
libs/models/DMA/transformers.py:106
↓ 1 callersMethodforward_pre
(self, tgt)
libs/models/DMA/transformers.py:163
↓ 1 callersMethodforward_test
The parameter require_cls and oracle_mask only used for visualization and ablation study Please dont use them during normally trainin
libs/models/DMA/DMA.py:451
↓ 1 callersMethodforward_train
(self, query_video, support_video, support_mask, query_mask=None)
libs/models/DMA/DMA.py:268
↓ 1 callersFunctionget_arguments
Parse command line arguments
tools/train.py:47
↓ 1 callersFunctionget_arguments
()
tools/inference.py:43
↓ 1 callersFunctionget_metrics
Get all evaluation metrics
tools/evaluate.py:211
↓ 1 callersMethodget_similar_actions
Get similar actions list for given action Args: action: target action num_actions: number of similar actions
libs/dataset/MOVE.py:62
↓ 1 callersFunctionget_uncertain_point_coords_with_randomness
Sample points in [0, 1] x [0, 1] coordinate space based on their uncertainty. The unceratinties are calculated for each point using 'unce
libs/models/DMA/loss.py:49
↓ 1 callersFunctionget_warmup_cosine_schedule_with_warmup
Create learning rate scheduler with warmup and cosine annealing
tools/train.py:78
↓ 1 callersMethodinit_weights
(self)
libs/models/DMA/DMA.py:737
↓ 1 callersMethodinit_weights
Initialize the weights in backbone. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to Non
libs/models/DMA/video_swin_referfomer/swin_transformer.py:570
↓ 1 callersFunctionmain
()
tools/evaluate.py:252
↓ 1 callersFunctionmask_iou
param: pred of size [N x H x W] param: target of size [N x H x W]
libs/utils/loss.py:46
↓ 1 callersFunctionmask_iou_loss
(pred, mask)
libs/utils/loss.py:66
↓ 1 callersFunctionmeasure
(y_in, pred_in)
libs/utils/Logger.py:316
↓ 1 callersMethodreset
(self)
libs/utils/Logger.py:260
↓ 1 callersMethodreset
(self)
libs/utils/Logger.py:284
↓ 1 callersMethodsample_fine_grained_episode
(self, num_ways: int)
libs/dataset/MOVE.py:102
↓ 1 callersMethodsample_frames_with_action
Sample frames ensuring at least specified number of action frames Args: valid_frames: frames containing target action
libs/dataset/MOVE.py:380
↓ 1 callersFunctionsave_checkpoint
(args, state, is_best, filename='checkpoint.pth.tar')
libs/utils/Restore.py:68
↓ 1 callersFunctionset_random_seed
设置随机种子以确保实验的可重复性,特别是在多GPU训练环境中。 Args: seed (int): 随机种子值,默认为1234 deterministic (bool): 是否使用确定性算法,默认为True
libs/utils/misc.py:8
↓ 1 callersFunctionsetup_ddp
Initialize DDP environment
tools/train.py:34
↓ 1 callersFunctionsetup_ddp
Initialize DDP environment
tools/inference.py:30
↓ 1 callersFunctionsigmoid_ce_loss
Args: inputs: A float tensor of arbitrary shape. The predictions for each example. targets: A float tensor with t
libs/models/DMA/loss.py:132
↓ 1 callersFunctiontest
()
tools/inference.py:61
↓ 1 callersMethodtest_in_train
(self, query_label, pred)
libs/utils/Logger.py:411
↓ 1 callersFunctiontrack_progress_rich
Track the progress of parallel task execution with a progress bar. The built-in :mod:`multiprocessing` module is used for process pools and tasks
libs/utils/track_progress_rich.py:48
↓ 1 callersFunctiontrain
Main training function
tools/train.py:88
↓ 1 callersMethodtrain
Convert the model into training mode while keep layers freezed.
libs/models/DMA/video_swin_referfomer/swin_transformer.py:619
↓ 1 callersFunctionwindow_reverse
Args: windows: (B*num_windows, window_size, window_size, C) window_size (tuple[int]): Window size H (int): Height of imag
libs/models/DMA/video_swin_referfomer/video_swin_transformer.py:53
↓ 1 callersFunctionwindow_reverse
Args: windows: (num_windows*B, window_size, window_size, C) window_size (int): Window size H (int): Height of image
libs/models/DMA/video_swin_referfomer/swin_transformer.py:64
FunctionDAN_optimizer
(model)
libs/utils/optimer.py:6
Method__call__
(self, inputs)
libs/utils/track_progress_rich.py:16
Method__call__
(self, imgs, annos)
libs/dataset/transform.py:18
Method__call__
(self, imgs, annos)
libs/dataset/transform.py:29
Method__call__
(self, imgs, annos)
libs/dataset/transform.py:44
next →1–100 of 231, ranked by callers