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
Method
__len__
Returns: (int): the number of videos in the dataset.
slowfast/datasets/ava_dataset.py:98
Method
__len__
(self)
slowfast/datasets/imagenet.py:208
Method
__len__
(self)
slowfast/datasets/multigrid_helper.py:82
Method
__len__
Returns: (int): the number of videos in the dataset.
slowfast/datasets/kinetics_sparse.py:408
Method
__len__
Returns: (int): the number of clips per replica in the IterableDataset.
slowfast/datasets/ptv_datasets.py:75
Method
__len__
Returns: (int): the number of videos in the dataset.
slowfast/datasets/anet.py:429
Method
__len__
Returns: (int): the number of videos in the dataset.
slowfast/datasets/charades.py:245
Method
__len__
Returns: (int): the number of videos in the dataset.
slowfast/datasets/sth.py:367
Method
__next__
Read and return the required number of frames for 1 clip. Returns: was_read (bool): False if not enough frames to return.
slowfast/visualization/demo_loader.py:70
Method
__next__
(self)
slowfast/visualization/demo_loader.py:268
Method
__next__
Retrieves the next clip from the dataset.
slowfast/datasets/ptv_datasets.py:61
Method
__repr__
(self)
slowfast/datasets/transform.py:817
Function
_convert_image_to_rgb
(image)
extract_clip/clip.py:75
Function
_convert_weights_to_fp16
(l)
extract_clip/model.py:378
Function
_create_text_labels
Create text labels. Args: classes (list[int]): a list of class ids for each example. scores (list[float] or None): list of sc
slowfast/visualization/video_visualizer.py:18
Function
_enhance_increasing_level_to_arg
(level, _hparams)
slowfast/datasets/rand_augment.py:214
Function
_enhance_level_to_arg
(level, _hparams)
slowfast/datasets/rand_augment.py:209
Method
_get_keyframe_clip
Return a clip corresponding to a keyframe index for visualization. Args: keyframe_idx (int): keyframe index.
slowfast/visualization/ava_demo_precomputed_boxes.py:327
Method
_get_layer
Return a layer (nn.Module Object) given a hierarchical layer name, separated by /. Args: layer_name (str): the name of th
slowfast/visualization/utils.py:178
Method
_init_weights
(self, m)
slowfast/models/uniformer.py:365
Method
_init_weights
(self, m)
slowfast/models/video_model_builder.py:934
Function
_posterize_increasing_level_to_arg
(level, hparams)
slowfast/datasets/rand_augment.py:251
Function
_posterize_original_level_to_arg
(level, _hparams)
slowfast/datasets/rand_augment.py:258
Function
_rotate_level_to_arg
(level, _hparams)
slowfast/datasets/rand_augment.py:202
Function
_shear_level_to_arg
(level, _hparams)
slowfast/datasets/rand_augment.py:222
Function
_solarize_add_level_to_arg
(level, _hparams)
slowfast/datasets/rand_augment.py:277
Function
_solarize_increasing_level_to_arg
(level, _hparams)
slowfast/datasets/rand_augment.py:271
Function
_translate_abs_level_to_arg
(level, hparams)
slowfast/datasets/rand_augment.py:229
Function
_translate_rel_level_to_arg
(level, hparams)
slowfast/datasets/rand_augment.py:236
Function
_update_valid_indices_by_removing_high_iou_boxes
( selected_indices, is_index_valid, intersect_over_union, threshold )
slowfast/utils/ava_evaluation/np_box_list_ops.py:589
Function
add_custom_config
(_C)
slowfast/config/custom_config.py:7
Method
add_single_detected_image_info
Adds detections for a single image to be used for evaluation. Args: image_id: A unique string/integer identifier for the image.
slowfast/utils/ava_evaluation/object_detection_evaluation.py:236
Method
add_single_detected_image_info
Adds detections for a single image to be used for evaluation. Args: image_key: A unique string/integer identifier for the image.
slowfast/utils/ava_evaluation/object_detection_evaluation.py:640
Method
add_single_ground_truth_image_info
Adds groundtruth for a single image to be used for evaluation. Args: image_id: A unique string/integer identifier for the image.
slowfast/utils/ava_evaluation/object_detection_evaluation.py:158
Method
add_single_ground_truth_image_info
Adds groundtruth for a single image to be used for evaluation. Args: image_id: A unique string/integer identifier for the image.
slowfast/utils/ava_evaluation/object_detection_evaluation.py:460
Method
add_single_ground_truth_image_info
Adds groundtruth for a single image to be used for evaluation. Args: image_key: A unique string/integer identifier for the image.
slowfast/utils/ava_evaluation/object_detection_evaluation.py:583
Method
add_video
Add input to tensorboard SummaryWriter as a video. Args: vid_tensor (tensor): shape of (B, T, C, H, W). Values should lie
slowfast/visualization/tensorboard_vis.py:171
Function
aggregate_sub_bn_stats
Recursively find all SubBN modules and aggregate sub-BN stats. Args: module (nn.Module) Returns: count (int): number of S
slowfast/utils/misc.py:265
Function
all_gather
All gathers the provided tensors from all processes across machines. Args: tensors (list): tensors to perform all gather across all p
slowfast/utils/distributed.py:15
Function
all_gather_unaligned
Run all_gather on arbitrary picklable data (not necessarily tensors). Args: data: any picklable object group: a torch proces
slowfast/utils/distributed.py:231
Function
all_reduce
All reduce the provided tensors from all processes across machines. Args: tensors (list): tensors to perform all reduce across all pr
slowfast/utils/distributed.py:37
Function
area
Computes area of masks. Args: box_mask_list: np_box_mask_list.BoxMaskList holding N boxes and masks Returns: a numpy array with
slowfast/utils/ava_evaluation/np_box_mask_list_ops.py:57
Function
as_binary_vector
Construct binary label vector given a list of label indices. Args: labels (list): The input label list. num_classes (int): Nu
slowfast/datasets/utils.py:259
Function
auto_contrast
(img, **__)
slowfast/datasets/rand_augment.py:144
Method
avg_epoch_time
Calculate the average epoch time among the recorded epochs.
slowfast/utils/meters_co.py:828
Method
backward
Perform backwarding, gathering the gradients across different process/ GPU group.
slowfast/models/batchnorm_helper.py:146
Function
benchmark_data_loading
Benchmark the speed of data loading in PySlowFast. Args: cfg (CfgNode): configs. Details can be found in slowfast/config
slowfast/utils/benchmark.py:20
Function
brightness
(img, factor, **__)
slowfast/datasets/rand_augment.py:189
Function
change_coordinate_frame
Change coordinate frame of the boxlist to be relative to window's frame. Given a window of the form [ymin, xmin, ymax, xmax], changes boundin
slowfast/utils/ava_evaluation/np_box_list_ops.py:539
Function
check_nan_losses
Determine whether the loss is NaN (not a number). Args: loss (loss): loss to check whether is NaN.
slowfast/utils/misc.py:26
Method
clean
Clean up open video files and windows.
slowfast/visualization/demo_loader.py:130
Method
clean
Clean up open video files and windows.
slowfast/visualization/demo_loader.py:353
Method
clear
Clears the state to prepare for a fresh evaluation.
slowfast/utils/ava_evaluation/object_detection_evaluation.py:346
Method
clear_detections
(self)
slowfast/utils/ava_evaluation/object_detection_evaluation.py:580
Function
clip_boxes_to_image
Clip an array of boxes to an image with the given height and width. Args: boxes (ndarray): bounding boxes to perform clipping.
slowfast/datasets/transform.py:290
Function
clip_boxes_to_image
Clip the boxes with the height and width of the image size. Args: boxes (ndarray): bounding boxes to peform crop. The dimension is
slowfast/datasets/cv2_transform.py:9
Function
clip_to_window
Clip bounding boxes to a window. This op clips input bounding boxes (represented by bounding box corners) to a window, optionally filtering o
slowfast/utils/ava_evaluation/np_box_list_ops.py:349
Function
color
(img, factor, **__)
slowfast/datasets/rand_augment.py:185
Function
color_jitter
Perfrom a color jittering on the input images. The channels of images should be in order BGR. Args: images (tensor): images to pe
slowfast/datasets/transform.py:350
Function
color_jitter
Perform color jitter on the given image. Args: image (array): image to perform color jitter. img_brightness (float): jitter r
slowfast/datasets/cv2_transform.py:752
Function
color_jitter_list
Perform color jitter on the list of images. Args: images (list): list of images to perform color jitter. img_brightness (floa
slowfast/datasets/cv2_transform.py:240
Function
color_normalization
Perform color nomration on the given images. Args: images (tensor): images to perform color normalization. Dimension is `
slowfast/datasets/transform.py:491
Function
color_normalization
Perform color normalization on the image with the given mean and stddev. Args: image (array): image to perform color normalization.
slowfast/datasets/cv2_transform.py:302
Function
compute_and_update_bn_stats
Compute and update the batch norm stats to make it more precise. During training both bn stats and the weight are changing after every iterat
slowfast/utils/bn_helper.py:11
Function
compute_average_precision
Compute Average Precision according to the definition in VOCdevkit. Precision is modified to ensure that it does not decrease as recall decre
slowfast/utils/ava_evaluation/metrics.py:74
Function
compute_cor_loc
Compute CorLoc according to the definition in the following paper. https://www.robots.ox.ac.uk/~vgg/rg/papers/deselaers-eccv10.pdf Returns n
slowfast/utils/ava_evaluation/metrics.py:128
Function
compute_precision_recall
Compute precision and recall. Args: scores: A float numpy array representing detection score labels: A boolean numpy array representi
slowfast/utils/ava_evaluation/metrics.py:21
Function
concatenate
Concatenate list of box_mask_lists. This op concatenates a list of input box_mask_lists into a larger box_mask_list. It also handles con
slowfast/utils/ava_evaluation/np_box_mask_list_ops.py:365
Function
construct_loader
Constructs the data loader for the given dataset. Args: cfg (CfgNode): configs. Details can be found in slowfast/config/d
slowfast/datasets/loader.py:85
Function
construct_optimizer
Construct a stochastic gradient descent or ADAM optimizer with momentum. Details can be found in: Herbert Robbins, and Sutton Monro. "A s
slowfast/models/optimizer.py:14
Function
construct_optimizer
Construct a stochastic gradient descent or ADAM optimizer with momentum. Details can be found in: Herbert Robbins, and Sutton Monro. "A s
slowfast/models/optimizer_backbone_special.py:14
Function
construct_optimizer
Construct a stochastic gradient descent or ADAM optimizer with momentum. Details can be found in: Herbert Robbins, and Sutton Monro. "A s
slowfast/models/optimizer_backbone.py:14
Function
contrast
(img, factor, **__)
slowfast/datasets/rand_augment.py:181
Function
convert_caffe2_name_to_pytorch
Convert the caffe2_layer_name to pytorch format by apply the list of regular expressions. Args: caffe2_layer_name
slowfast/utils/c2_model_loading.py:107
Function
convert_to_video_level_labels
Aggregate annotations from all frames of a video to form video-level labels. Args: labels (list): The input label list. Returns:
slowfast/datasets/utils.py:290
Function
cpu_mem_usage
Compute the system memory (RAM) usage for the current device (GB). Returns: usage (float): used memory (GB). total (float): t
slowfast/utils/misc.py:64
Function
create_category_index_from_labelmap
Reads a label map and returns a category index. Args: label_map_path: Path to `StringIntLabelMap` proto text file. Returns: A ca
slowfast/utils/ava_evaluation/label_map_util.py:168
Function
create_class_agnostic_category_index
Creates a category index with a single `object` class.
slowfast/utils/ava_evaluation/label_map_util.py:185
Function
create_sampler
Create sampler for the given dataset. Args: dataset (torch.utils.data.Dataset): the given dataset. shuffle (bool): set to ``T
slowfast/datasets/utils.py:400
Method
data_toc
(self)
slowfast/utils/meters.py:362
Method
data_toc
(self)
slowfast/utils/meters.py:514
Method
data_toc
(self)
slowfast/utils/meters.py:660
Method
data_toc
(self)
slowfast/utils/meters_co.py:152
Method
data_toc
(self)
slowfast/utils/meters_co.py:362
Method
data_toc
(self)
slowfast/utils/meters_co.py:520
Method
data_toc
(self)
slowfast/utils/meters_co.py:669
Function
decode
Decode the video and perform temporal sampling. Args: container (container): pyav container. sampling_rate (int): frame sampl
slowfast/datasets/decoder.py:327
Method
default_buffer_size
(self)
slowfast/visualization/async_predictor.py:122
Method
default_buffer_size
(self)
slowfast/visualization/async_predictor.py:229
Function
detection_collate
Collate function for detection task. Concatanate bboxes, labels and metadata from different samples in the first dimension instead of sta
slowfast/datasets/loader.py:48
Method
display
Either display a single frame (BGR image) to a window or write to an output file if output path is provided. Args:
slowfast/visualization/demo_loader.py:115
Method
display
Add the visualized task to the write queue for display/write to outputfile. Args: task (TaskInfo object): task object tha
slowfast/visualization/demo_loader.py:325
Method
display
Either display a single frame (BGR image) to a window or write to an output file if output path is provided.
slowfast/visualization/ava_demo_precomputed_boxes.py:317
Function
div255
Scale clip frames from [0, 255] to [0, 1]. Args: x (Tensor): A tensor of the clip's RGB frames with shape: (channel, time
slowfast/datasets/ptv_datasets.py:129
Method
dtype
(self)
extract_clip/model.py:337
Method
epoch_tic
Start to record time.
slowfast/utils/meters_co.py:807
Method
epoch_toc
Stop to record time.
slowfast/utils/meters_co.py:813
Function
equalize
(img, **__)
slowfast/datasets/rand_augment.py:152
Method
evaluate
Compute evaluation result. Returns: A dictionary of metrics with the following fields - 1. summary_metrics:
slowfast/utils/ava_evaluation/object_detection_evaluation.py:287
Method
evaluate
Compute evaluation result. Returns: A named tuple with the following fields - average_precision: float numpy array of a
slowfast/utils/ava_evaluation/object_detection_evaluation.py:760
← previous
next →
501–600 of 872, ranked by callers