Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenGVLab/UniFormerV2
/ functions
Functions
872 in github.com/OpenGVLab/UniFormerV2
⨍
Functions
872
◇
Types & classes
124
Function
evaluate_ava_from_files
Run AVA evaluation given annotation/prediction files.
slowfast/utils/ava_eval_helper.py:127
Method
finalize_metrics
Calculate and log the final ensembled metrics. ks (tuple): list of top-k values for topk_accuracies. For example, ks = (1
slowfast/utils/meters.py:366
Method
finalize_metrics
Calculate and log the final ensembled metrics. ks (tuple): list of top-k values for topk_accuracies. For example, ks = (1
slowfast/utils/meters_co.py:366
Method
forward
(self, x: torch.Tensor)
extract_clip/model.py:42
Method
forward
(self, x)
extract_clip/model.py:68
Method
forward
(self, x)
extract_clip/model.py:138
Method
forward
(self, x: torch.Tensor)
extract_clip/model.py:160
Method
forward
(self, x: torch.Tensor)
extract_clip/model.py:167
Method
forward
(self, x: torch.Tensor)
extract_clip/model.py:189
Method
forward
(self, x: torch.Tensor)
extract_clip/model.py:202
Method
forward
(self, x: torch.Tensor)
extract_clip/model.py:223
Method
forward
(self, x: torch.Tensor)
slowfast/datasets/ptv_datasets.py:104
Method
forward
(self, x: Dict[str, torch.Tensor])
slowfast/datasets/ptv_datasets.py:119
Method
forward
(self, x)
slowfast/models/nonlocal_helper.py:105
Method
forward
(self, x, bboxes=None)
slowfast/models/ptv_model_builder.py:207
Method
forward
(self, x, bboxes=None)
slowfast/models/ptv_model_builder.py:413
Method
forward
(self, x, bboxes=None)
slowfast/models/ptv_model_builder.py:508
Method
forward
(self, x, bboxes=None)
slowfast/models/ptv_model_builder.py:593
Method
forward
(self, x, bboxes=None)
slowfast/models/ptv_model_builder.py:694
Method
forward
(self, x)
slowfast/models/batchnorm_helper.py:98
Method
forward
(self, input)
slowfast/models/batchnorm_helper.py:194
Method
forward
(self, x)
slowfast/models/uniformer.py:59
Method
forward
(self, x)
slowfast/models/uniformer.py:81
Method
forward
(self, x)
slowfast/models/uniformer.py:106
Method
forward
(self, x)
slowfast/models/uniformer.py:130
Method
forward
(self, x)
slowfast/models/uniformer.py:153
Method
forward
(self, x)
slowfast/models/uniformer.py:184
Method
forward
(self, x)
slowfast/models/uniformer.py:215
Method
forward
(self, x)
slowfast/models/uniformer.py:245
Method
forward
(self, x)
slowfast/models/uniformer.py:447
Method
forward
(self, x)
slowfast/models/video_model_builder.py:146
Method
forward
(self, x, bboxes=None)
slowfast/models/video_model_builder.py:402
Method
forward
(self, x, bboxes=None)
slowfast/models/video_model_builder.py:602
Method
forward
(self, x, bboxes=None)
slowfast/models/video_model_builder.py:758
Method
forward
(self, x)
slowfast/models/video_model_builder.py:968
Method
forward
(self, x)
slowfast/models/uniformerv2_model.py:29
Method
forward
(self, x)
slowfast/models/uniformerv2_model.py:36
Method
forward
(self, x)
slowfast/models/uniformerv2_model.py:58
Method
forward
(self, x, T=8, use_checkpoint=False)
slowfast/models/uniformerv2_model.py:97
Method
forward
(self, x, y)
slowfast/models/uniformerv2_model.py:179
Method
forward
(self, x)
slowfast/models/uniformerv2_model.py:243
Method
forward
(self, x)
slowfast/models/uniformerv2_model.py:319
Method
forward
(self, x, y)
slowfast/models/losses.py:25
Method
forward
(self, x)
slowfast/models/resnet_helper.py:105
Method
forward
(self, x)
slowfast/models/resnet_helper.py:250
Method
forward
(self, x)
slowfast/models/resnet_helper.py:372
Method
forward
(self, x)
slowfast/models/resnet_helper.py:507
Method
forward
(self, inputs)
slowfast/models/resnet_helper.py:694
Method
forward
(self, x)
slowfast/models/stem_helper.py:115
Method
forward
(self, x)
slowfast/models/stem_helper.py:196
Method
forward
(self, x)
slowfast/models/stem_helper.py:282
Method
forward
(self, x)
slowfast/models/stem_helper.py:317
Method
forward
(self, x)
slowfast/models/common.py:26
Method
forward
(self, x)
slowfast/models/common.py:42
Method
forward
(self, x)
slowfast/models/common.py:69
Method
forward
(self, x, thw_shape)
slowfast/models/attention.py:163
Method
forward
(self, x, thw_shape)
slowfast/models/attention.py:276
Method
forward
(self, x)
slowfast/models/uniformerv2.py:106
Method
forward
(self, inputs)
slowfast/models/head_helper.py:198
Method
forward
(self, inputs)
slowfast/models/head_helper.py:333
Method
forward
(self, x)
slowfast/models/head_helper.py:401
Method
forward
(self, x)
slowfast/models/operators.py:16
Method
forward
(ctx, x)
slowfast/models/operators.py:24
Method
forward
(self, x)
slowfast/models/operators.py:78
Function
frozen_bn_stats
Set all the bn layers to eval mode. Args: model (model): model to set bn layers to eval mode.
slowfast/utils/misc.py:254
Method
get
Get the visualized clips if any.
slowfast/visualization/async_predictor.py:264
Method
get_activations
(module, input, output)
slowfast/visualization/gradcam_utils.py:57
Function
get_best_checkpoint
Get the best checkpoint from the checkpointing folder.
slowfast/utils/checkpoint.py:74
Method
get_classifier
(self)
slowfast/models/uniformer.py:378
Function
get_confusion_matrix
Calculate confusion matrix on the provided preds and labels. Args: preds (tensor or lists of tensors): predictions. Each tensor is in
slowfast/visualization/utils.py:16
Function
get_epoch_lr
Retrieves the lr for the given epoch (as specified by the lr policy). Args: cfg (config): configs of hyper-parameters of ADAM, includ
slowfast/models/optimizer.py:106
Function
get_epoch_lr
Retrieves the lr for the given epoch (as specified by the lr policy). Args: cfg (config): configs of hyper-parameters of ADAM, includ
slowfast/models/optimizer_backbone_special.py:144
Function
get_epoch_lr
Retrieves the lr for the given epoch (as specified by the lr policy). Args: cfg (config): configs of hyper-parameters of ADAM, includ
slowfast/models/optimizer_backbone.py:129
Method
get_fn
(self)
slowfast/visualization/demo_loader.py:295
Method
get_global_avg
Calculate the global mean value.
slowfast/utils/meters.py:451
Method
get_global_avg
Calculate the global mean value.
slowfast/utils/meters_co.py:451
Method
get_gradients
(module, grad_input, grad_output)
slowfast/visualization/gradcam_utils.py:54
Function
get_keyframe_data
Getting keyframe indices, boxes and labels in the dataset. Args: boxes_and_labels (list[dict]): a list which maps from video_idx to
slowfast/datasets/ava_helper.py:116
Function
get_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 t
slowfast/utils/ava_evaluation/label_map_util.py:148
Function
get_local_rank
Returns: The rank of the current process within the local (per-machine) process group.
slowfast/utils/distributed.py:301
Function
get_local_size
Returns: The size of the per-machine process group, i.e. the number of processes per machine.
slowfast/utils/distributed.py:288
Function
get_loss_func
Retrieve the loss given the loss name. Args (int): loss_name: the name of the loss to use.
slowfast/models/losses.py:43
Function
get_lr_at_epoch
Retrieve the learning rate of the current epoch with the option to perform warm up in the beginning of the training stage. Args:
slowfast/utils/lr_policy.py:9
Function
get_max_label_map_index
Get maximum index in label map. Args: label_map: a StringIntLabelMapProto Returns: an integer
slowfast/utils/ava_evaluation/label_map_util.py:62
Function
get_num_boxes_used
Get total number of used boxes. Args: keyframe_indices (list): a list of indices of the keyframes. keyframe_boxes_and_labels
slowfast/datasets/ava_helper.py:162
Function
get_random_sampling_rate
When multigrid training uses a fewer number of frames, we randomly increase the sampling rate so that some clips cover the original span.
slowfast/datasets/utils.py:371
Function
get_video_container
Given the path to the video, return the pyav video container. Args: path_to_vid (str): path to the video. multi_thread_decode
slowfast/datasets/video_container.py:9
Method
get_win_avg
Calculate the current average value of the deque.
slowfast/utils/meters.py:445
Method
get_win_avg
Calculate the current average value of the deque.
slowfast/utils/meters_co.py:445
Method
hook_fn
(module, input, output)
slowfast/visualization/utils.py:198
Function
horizontal_flip
Perform horizontal flip on the given images and corresponding boxes. Args: prob (float): probility to flip the images. images
slowfast/datasets/transform.py:153
Function
horizontal_flip
Horizontally flip the image. Args: prob (float): probability to flip. image (array): image to pad. order (str): order
slowfast/datasets/cv2_transform.py:344
Function
horizontal_flip_list
Horizontally flip the list of image and optional boxes. Args: prob (float): probability to flip. image (list): ilist of image
slowfast/datasets/cv2_transform.py:134
Function
horizontal_flip_with_label
Perform horizontal flip on the given images and corresponding boxes. Args: prob (float): probility to flip the images. images
slowfast/datasets/transform.py:188
Function
init_distributed_training
Initialize variables needed for distributed training.
slowfast/utils/distributed.py:270
Function
init_process_group
Initializes the default process group. Args: local_rank (int): the rank on the current local machine. local_world_size (int):
slowfast/utils/distributed.py:56
Function
init_weights
Performs ResNet style weight initialization. Args: fc_init_std (float): the expected standard deviation for fc layer. zero_in
slowfast/utils/weight_init_helper.py:10
Function
intersection
Compute pairwise intersection areas between masks. Args: box_mask_list1: BoxMaskList holding N boxes and masks box_mask_list2: BoxMas
slowfast/utils/ava_evaluation/np_box_mask_list_ops.py:69
Function
intersection
Compute pairwise intersection areas between boxes. Args: boxlist1: BoxList holding N boxes boxlist2: BoxList holding M boxes Ret
slowfast/utils/ava_evaluation/np_box_list_ops.py:58
Function
invert
(img, **__)
slowfast/datasets/rand_augment.py:148
← previous
next →
601–700 of 872, ranked by callers