MCPcopy Create free account

hub / github.com/MTLab/MorphMLP / functions

Functions764 in github.com/MTLab/MorphMLP

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
Draw predicted label on video and add it to Tensorboard. Args: vid (array-like): shape (C, T, H, W). Each ima
slowfast/visualization/prediction_vis.py:85
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:22
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:225
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:44
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:184
Functionaugment_raw_frames
(frames, time_diff_prob=0.0, gaussian_prob=0.0)
slowfast/datasets/transform.py:980
Functionauto_contrast
(img, **__)
slowfast/datasets/rand_augment.py:144
Methodbackward
(ctx, grad_output)
slowfast/utils/distributed.py:294
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
Functioncancel_swav_gradients
(model, cfg, epoch_exact)
slowfast/models/contrastive.py:1085
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: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:257
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
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_jitter_video_ssl
( frames, bri_con_sat=[0.4] * 3, hue=0.1, p_convert_gray=0.0, moco_v2_aug=False, gauss
slowfast/datasets/transform.py:929
Functioncolor_normalization
Perform color nomration on the given images. Args: images (tensor): images to perform color normalization. Dimension is `
slowfast/datasets/transform.py:458
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:11
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:215
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:327
Methoddata_toc
(self)
slowfast/utils/meters.py:362
Methoddata_toc
(self)
slowfast/utils/meters.py:514
Methoddata_toc
(self)
slowfast/utils/meters.py:659
Functiondecode
Decode the video and perform temporal sampling. Args: container (container): pyav container. sampling_rate (int): frame sampl
slowfast/datasets/decoder.py:305
Methoddefault_buffer_size
(self)
slowfast/visualization/async_predictor.py:122
Methoddefault_buffer_size
(self)
slowfast/visualization/async_predictor.py:229
Functiondemo
Run inference on an input video or stream from webcam. Args: cfg (CfgNode): configs. Details can be found in slowfast/con
tools/demo_net.py:96
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
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
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
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
Functionevaluate_ava_from_files
Run AVA evaluation given annotation/prediction files.
slowfast/utils/ava_eval_helper.py:127
Methodfinalize_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
Methodforward
(ctx, input)
slowfast/utils/distributed.py:268
Methodforward
(ctx, input)
slowfast/utils/distributed.py:286
Methodforward
(self, x: torch.Tensor)
slowfast/datasets/ptv_datasets.py:104
Methodforward
(self, x: Dict[str, torch.Tensor])
slowfast/datasets/ptv_datasets.py:119
Methodforward
(self, x)
slowfast/models/nonlocal_helper.py:105
Methodforward
(self, x, bboxes=None)
slowfast/models/ptv_model_builder.py:209
Methodforward
(self, x, bboxes=None)
slowfast/models/ptv_model_builder.py:410
Methodforward
(self, x, bboxes=None)
slowfast/models/ptv_model_builder.py:505
Methodforward
(self, x, bboxes=None)
slowfast/models/ptv_model_builder.py:590
Methodforward
(self, x, bboxes=None)
slowfast/models/ptv_model_builder.py:691
Methodforward
(self, x, bboxes=None)
slowfast/models/ptv_model_builder.py:770
Methodforward
(self, x)
slowfast/models/batchnorm_helper.py:101
Methodforward
(self, x)
slowfast/models/video_model_builder.py:155
Methodforward
(self, x, bboxes=None)
slowfast/models/video_model_builder.py:418
Methodforward
(self, x, bboxes=None)
slowfast/models/video_model_builder.py:638
Methodforward
(self, x, bboxes=None)
slowfast/models/video_model_builder.py:796
Methodforward
(self, x)
slowfast/models/video_model_builder.py:1084
Methodforward
(self, inputs, dummy_labels=None)
slowfast/models/losses.py:21
Methodforward
(self, x)
slowfast/models/resnet_helper.py:110
Methodforward
(self, x)
slowfast/models/resnet_helper.py:255
Methodforward
(self, x)
slowfast/models/resnet_helper.py:379
Methodforward
(self, x)
slowfast/models/resnet_helper.py:514
Methodforward
(self, inputs)
slowfast/models/resnet_helper.py:701
Methodforward
(self, x)
slowfast/models/stem_helper.py:115
Methodforward
(self, x)
slowfast/models/stem_helper.py:198
Methodforward
(self, x)
slowfast/models/stem_helper.py:284
Methodforward
(self, x)
slowfast/models/stem_helper.py:319
Methodforward
( self, clips, index=None, time=None, epoch_exact=None, keys=None )
slowfast/models/contrastive.py:375
Methodforward
(self, x)
slowfast/models/contrastive.py:931
Methodforward
(self, inputs)
slowfast/models/contrastive.py:1040
Methodforward
(self, x)
slowfast/models/common.py:26
Methodforward
(self, x)
slowfast/models/common.py:42
Methodforward
(self, x)
slowfast/models/common.py:69
Methodforward
(self, x, thw_shape)
slowfast/models/attention.py:307
Methodforward
(self, x, thw_shape)
slowfast/models/attention.py:533
Methodforward
(self, inputs, bboxes)
slowfast/models/head_helper.py:114
Methodforward
(self, x)
slowfast/models/head_helper.py:188
Methodforward
(self, inputs)
slowfast/models/head_helper.py:309
Methodforward
(self, inputs)
slowfast/models/head_helper.py:467
← previousnext →501–600 of 764, ranked by callers