MCPcopy Create free account

hub / github.com/OpenGVLab/UniFormerV2 / functions

Functions872 in github.com/OpenGVLab/UniFormerV2

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
Functionadd_custom_config
(_C)
slowfast/config/custom_config.py:7
Methodadd_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
Methodadd_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
Methodadd_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
Methodadd_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
Methodadd_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
Methodadd_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
Functionaggregate_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
Functionall_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
Functionall_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
Functionall_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
Functionarea
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
Functionas_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
Functionauto_contrast
(img, **__)
slowfast/datasets/rand_augment.py:144
Methodavg_epoch_time
Calculate the average epoch time among the recorded epochs.
slowfast/utils/meters_co.py:828
Methodbackward
Perform backwarding, gathering the gradients across different process/ GPU group.
slowfast/models/batchnorm_helper.py:146
Functionbenchmark_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
Functionbrightness
(img, factor, **__)
slowfast/datasets/rand_augment.py:189
Functionchange_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
Functioncheck_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
Methodclean
Clean up open video files and windows.
slowfast/visualization/demo_loader.py:130
Methodclean
Clean up open video files and windows.
slowfast/visualization/demo_loader.py:353
Methodclear
Clears the state to prepare for a fresh evaluation.
slowfast/utils/ava_evaluation/object_detection_evaluation.py:346
Methodclear_detections
(self)
slowfast/utils/ava_evaluation/object_detection_evaluation.py:580
Functionclip_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
Functionclip_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
Functionclip_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
Functioncolor
(img, factor, **__)
slowfast/datasets/rand_augment.py:185
Functioncolor_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
Functioncolor_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
Functioncolor_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
Functioncolor_normalization
Perform color nomration on the given images. Args: images (tensor): images to perform color normalization. Dimension is `
slowfast/datasets/transform.py:491
Functioncolor_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
Functioncompute_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
Functioncompute_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
Functioncompute_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
Functioncompute_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
Functionconcatenate
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
Functionconstruct_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
Functionconstruct_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
Functionconstruct_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
Functionconstruct_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
Functioncontrast
(img, factor, **__)
slowfast/datasets/rand_augment.py:181
Functionconvert_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
Functionconvert_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
Functioncpu_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
Functioncreate_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
Functioncreate_class_agnostic_category_index
Creates a category index with a single `object` class.
slowfast/utils/ava_evaluation/label_map_util.py:185
Functioncreate_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
Methoddata_toc
(self)
slowfast/utils/meters.py:362
Methoddata_toc
(self)
slowfast/utils/meters.py:514
Methoddata_toc
(self)
slowfast/utils/meters.py:660
Methoddata_toc
(self)
slowfast/utils/meters_co.py:152
Methoddata_toc
(self)
slowfast/utils/meters_co.py:362
Methoddata_toc
(self)
slowfast/utils/meters_co.py:520
Methoddata_toc
(self)
slowfast/utils/meters_co.py:669
Functiondecode
Decode the video and perform temporal sampling. Args: container (container): pyav container. sampling_rate (int): frame sampl
slowfast/datasets/decoder.py:327
Methoddefault_buffer_size
(self)
slowfast/visualization/async_predictor.py:122
Methoddefault_buffer_size
(self)
slowfast/visualization/async_predictor.py:229
Functiondetection_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
Methoddisplay
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
Methoddisplay
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
Methoddisplay
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
Functiondiv255
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
Methoddtype
(self)
extract_clip/model.py:337
Methodepoch_tic
Start to record time.
slowfast/utils/meters_co.py:807
Methodepoch_toc
Stop to record time.
slowfast/utils/meters_co.py:813
Functionequalize
(img, **__)
slowfast/datasets/rand_augment.py:152
Methodevaluate
Compute evaluation result. Returns: A dictionary of metrics with the following fields - 1. summary_metrics:
slowfast/utils/ava_evaluation/object_detection_evaluation.py:287
Methodevaluate
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
← previousnext →501–600 of 872, ranked by callers