MCPcopy Create free account

hub / github.com/OpenGVLab/unmasked_teacher / functions

Functions1,198 in github.com/OpenGVLab/unmasked_teacher

Methodforward
(self, x)
single_modality/action_detection/alphaction/modeling/nonlocal_block.py:61
Methodforward
(self, x, boxes)
single_modality/action_detection/alphaction/modeling/poolers.py:37
Methodforward
(self, x)
single_modality/action_detection/alphaction/modeling/common_blocks.py:21
Methodforward
(self, x)
single_modality/action_detection/alphaction/modeling/common_blocks.py:48
Methodforward
(self, x)
single_modality/action_detection/alphaction/modeling/common_blocks.py:81
Methodforward
(self, x)
single_modality/action_detection/alphaction/modeling/common_blocks.py:138
Methodforward
(self, x)
single_modality/action_detection/alphaction/modeling/backbone/slowfast.py:100
Methodforward
(self, x)
single_modality/action_detection/alphaction/modeling/backbone/slowfast.py:171
Methodforward
(self, x, lateral_connection=None)
single_modality/action_detection/alphaction/modeling/backbone/slowfast.py:250
Methodforward
(self, slow_x, fast_x)
single_modality/action_detection/alphaction/modeling/backbone/slowfast.py:289
Methodforward
(self, _, x)
single_modality/action_detection/alphaction/modeling/backbone/i3d.py:117
Methodforward
(self, slow_features, fast_features, boxes, objects=None, extras={}, part_forward=-1)
single_modality/action_detection/alphaction/modeling/roi_heads/roi_heads_3d.py:11
Methodforward
(self, slow_features, fast_features, proposals, objects=None, extras={}, part_forward=-1)
single_modality/action_detection/alphaction/modeling/roi_heads/action_head/roi_action_feature_extractor.py:74
Methodforward
(self, slow_features, fast_features, boxes, objects=None, extras={}, part_forward=-1)
single_modality/action_detection/alphaction/modeling/roi_heads/action_head/action_head.py:26
Methodforward
(self, x)
single_modality/action_detection/alphaction/modeling/roi_heads/action_head/roi_action_predictors.py:21
Methodforward
(self, x, boxes)
single_modality/action_detection/alphaction/modeling/roi_heads/action_head/inference.py:13
Methodforward
:param person: [n, channels, t, h, w] :param others: [n, num_other, channels, t, h, w]
single_modality/action_detection/alphaction/modeling/roi_heads/action_head/IA_structure.py:61
Methodforward
(self, person, person_boxes, obj_feature, object_boxes, mem_feature, )
single_modality/action_detection/alphaction/modeling/roi_heads/action_head/IA_structure.py:167
Methodforward
(self, slow_video, fast_video, boxes, objects=None, extras={}, part_forward=-1)
single_modality/action_detection/alphaction/modeling/detector/action_detector.py:13
Methodforward
(ctx, logits, targets, gamma, alpha)
single_modality/action_detection/alphaction/layers/softmax_focal_loss.py:11
Methodforward
(self, logits, targets)
single_modality/action_detection/alphaction/layers/softmax_focal_loss.py:52
Methodforward
(ctx, logits, targets, gamma, alpha)
single_modality/action_detection/alphaction/layers/sigmoid_focal_loss.py:11
Methodforward
(self, logits, targets)
single_modality/action_detection/alphaction/layers/sigmoid_focal_loss.py:52
Methodforward
(ctx, input, roi, output_size, spatial_scale)
single_modality/action_detection/alphaction/layers/roi_pool_3d.py:11
Methodforward
(self, input, rois)
single_modality/action_detection/alphaction/layers/roi_pool_3d.py:54
Methodforward
(self, input)
single_modality/action_detection/alphaction/layers/batch_norm.py:40
Methodforward
(self, input, rois)
single_modality/action_detection/alphaction/layers/roi_align_3d.py:58
Methodforward
(self, x)
single_modality/models/modeling_finetune.py:28
Methodforward
(self, x)
single_modality/models/modeling_finetune.py:45
Methodforward
(self, x)
single_modality/models/modeling_finetune.py:79
Methodforward
(self, x)
single_modality/models/modeling_finetune.py:122
Methodforward
(self, x, **kwargs)
single_modality/models/modeling_finetune.py:148
Methodforward
(self, x)
single_modality/models/modeling_finetune.py:323
Methodforward
(self, x)
single_modality/models/clip.py:21
Methodforward
(self, x)
single_modality/models/clip.py:28
Methodforward
(self, x, return_attn=False)
single_modality/models/clip.py:53
Methodforward
(self, x)
single_modality/models/clip.py:85
Methodforward
(self, x, mask=None)
single_modality/models/clip.py:135
Methodforward
(self, x, mask)
single_modality/models/modeling_pretrain.py:99
Methodforward
(self, x, return_token_num)
single_modality/models/modeling_pretrain.py:154
Methodforward
(self, x, mask)
single_modality/models/modeling_pretrain.py:264
Methodforward
(self, x, mask)
single_modality/models/modeling_pretrain_umt.py:128
Methodforward
(self, x)
single_modality/models/modeling_pretrain_umt.py:156
Methodforward
(self, x, mask)
single_modality/models/modeling_pretrain_umt.py:255
Functiongather_tensor_along_batch
Performs all_gather operation on the provided tensors. *** Warning ***: torch.distributed.all_gather has no gradient.
multi_modality/utils/distributed.py:143
Functiongather_tensor_along_batch_with_backward
(tensor, dim=0)
multi_modality/utils/distributed.py:131
Functionget_anno_by_id
TODO: Docstring for get_anno_by_id. Args: cur (sqlite3.Cursor): The dataset cursor. id (int): The annotation id. Returns:
multi_modality/dataset/sqlite_dataset.py:18
Methodget_attention_map
(self)
multi_modality/models/backbones/bert/xbert.py:382
Methodget_attn_gradients
(self)
multi_modality/models/backbones/bert/xbert.py:376
Methodget_classifier
(self)
single_modality/action_detection/modeling_finetune.py:275
Methodget_classifier
(self)
single_modality/models/modeling_finetune.py:296
Methodget_classifier
(self)
single_modality/models/modeling_pretrain.py:73
Methodget_classifier
(self)
single_modality/models/modeling_pretrain.py:147
Methodget_classifier
(self)
single_modality/models/modeling_pretrain_umt.py:97
Functionget_frame_indices_by_fps
()
multi_modality/dataset/video_utils.py:44
Methodget_input_embeddings
(self)
multi_modality/models/backbones/bert/xbert.py:1035
Functionget_label_map_dict
Reads a label map and returns a dictionary of label names to id. Args: label_map_path: path to label_map. use_display_name: whether to use
single_modality/action_detection/alphaction/dataset/datasets/evaluation/ava/pascal_evaluation/label_map_util.py:138
Methodget_layer_id
(self, var_name)
single_modality/optim_factory.py:52
Methodget_layer_id
(self, var_name)
single_modality/action_detection/optim_factory.py:47
Functionget_loss_scale_for_deepspeed
(model)
single_modality/action_detection/engine_for_finetuning.py:35
Methodget_lr
(self)
single_modality/action_detection/alphaction/solver/lr_scheduler.py:37
Methodget_lr
(self)
single_modality/action_detection/alphaction/solver/lr_scheduler.py:73
Functionget_max_label_map_index
Get maximum index in label map. Args: label_map: a StringIntLabelMapProto Returns: an integer
single_modality/action_detection/alphaction/dataset/datasets/evaluation/ava/pascal_evaluation/label_map_util.py:57
Methodget_num_layers
(self)
single_modality/models/modeling_pretrain.py:66
Methodget_num_layers
(self)
single_modality/models/modeling_pretrain.py:140
Methodget_num_layers
(self)
single_modality/models/modeling_pretrain.py:257
Methodget_num_layers
(self)
single_modality/models/modeling_pretrain_umt.py:90
Methodget_num_layers
(self)
single_modality/models/modeling_pretrain_umt.py:248
Methodget_output_embeddings
(self)
multi_modality/models/backbones/bert/xbert.py:1307
Methodget_output_embeddings
(self)
multi_modality/models/backbones/bert/xbert.py:1414
Methodget_output_embeddings
(self)
multi_modality/models/backbones/bert/xbert.py:1599
Methodget_scale
(self, layer_id)
single_modality/optim_factory.py:49
Methodget_scale
(self, layer_id)
single_modality/action_detection/optim_factory.py:44
Methodget_special_tokens_mask
Retrieve sequence ids from a token list that has no special tokens added. This method is called when adding special tokens using the
multi_modality/models/backbones/bert/tokenization_bert.py:270
Methodget_video_info
(self, idx)
single_modality/action_detection/alphaction/dataset/datasets/concat_dataset.py:20
Methodget_vocab
(self)
multi_modality/models/backbones/bert/tokenization_bert.py:218
Methodglobal_avg
(self)
multi_modality/utils/basic_utils.py:64
Methodglobal_avg
(self)
single_modality/utils.py:63
Methodglobal_avg
(self)
single_modality/action_detection/utils.py:63
Methodglobal_avg
(self)
single_modality/action_detection/alphaction/utils/metric_logger.py:36
Functioninit_distributed_mode
(args)
single_modality/utils.py:311
Functioninit_distributed_mode
(args)
single_modality/action_detection/utils.py:249
Functioninterpolate_pos_embed
Args: pos_embed_old: (1, L_old, d), pre-trained pos_embed_new: (1, L_new, d), newly initialized, to be replaced by interpolated w
multi_modality/models/utils.py:74
Functioninterpolate_pos_relative_bias_beit
Args: state_dict_old: loaded state dict state_dict_new: state dict for model with new image size patch_shape_new: new mod
multi_modality/models/utils.py:109
Functionintersection
Compute pairwise intersection areas between masks. Args: box_mask_list1: BoxMaskList holding N boxes and masks box_mask_list2: BoxMaskList
single_modality/action_detection/alphaction/dataset/datasets/evaluation/ava/pascal_evaluation/np_box_mask_list_ops.py:63
Functionintersection
Compute pairwise intersection areas between boxes. Args: boxlist1: BoxList holding N boxes boxlist2: BoxList holding M boxes Returns:
single_modality/action_detection/alphaction/dataset/datasets/evaluation/ava/pascal_evaluation/np_box_list_ops.py:51
Functioninvert
(img, **__)
single_modality/datasets/rand_augment.py:146
Functionioa
Computes pairwise intersection-over-area between box collections. Intersection-over-area (ioa) between two boxes box1 and box2 is defined as thei
single_modality/action_detection/alphaction/dataset/datasets/evaluation/ava/pascal_evaluation/np_box_ops.py:81
Functionioa
Computes pairwise intersection-over-area between box collections. Intersection-over-area (ioa) between two masks, mask1 and mask2 is defined as t
single_modality/action_detection/alphaction/dataset/datasets/evaluation/ava/pascal_evaluation/np_mask_ops.py:96
Functioniou
Computes pairwise intersection-over-union between box and mask collections. Args: box_mask_list1: BoxMaskList holding N boxes and masks box
single_modality/action_detection/alphaction/dataset/datasets/evaluation/ava/pascal_evaluation/np_box_mask_list_ops.py:77
Functioniou
Computes pairwise intersection-over-union between box collections. Args: boxes1: a numpy array with shape [N, 4] holding N boxes. boxes2: a
single_modality/action_detection/alphaction/dataset/datasets/evaluation/ava/pascal_evaluation/np_box_ops.py:63
Functioniou
Computes pairwise intersection-over-union between box collections. Args: boxlist1: BoxList holding N boxes boxlist2: BoxList holding M boxe
single_modality/action_detection/alphaction/dataset/datasets/evaluation/ava/pascal_evaluation/np_box_list_ops.py:64
Functioniou
Computes pairwise intersection-over-union between mask collections. Args: masks1: a numpy array with shape [N, height, width] holding N masks.
single_modality/action_detection/alphaction/dataset/datasets/evaluation/ava/pascal_evaluation/np_mask_ops.py:71
Functioniterate_dataloaders
Alternatively generate data from multiple dataloaders, since we use `zip` to concat multiple dataloaders, the loop will end when the smaller d
multi_modality/dataset/__init__.py:264
Functionlighting_jitter
Perform AlexNet-style PCA jitter on the given images. Args: images (tensor): images to perform lighting jitter. Dimension is
single_modality/datasets/video_transforms.py:406
Functionload_json
(filename)
multi_modality/utils/basic_utils.py:241
Functionload_state_dict
(model, state_dict, prefix='', ignore_missing="relative_position_index")
single_modality/utils.py:355
Functionload_state_dict
(model, state_dict, prefix='', ignore_missing="relative_position_index")
single_modality/action_detection/utils.py:293
Functionload_temp_embed_with_mismatch
Add/Remove extra temporal_embeddings as needed. https://arxiv.org/abs/2104.00650 shows adding zero paddings works. temp_embed_old: (1, n
multi_modality/models/utils.py:29
Functionload_tf_weights_in_bert
Load tf checkpoints in a pytorch model.
multi_modality/models/backbones/bert/xbert.py:191
← previousnext →1,001–1,100 of 1,198, ranked by callers