MCPcopy Create free account

hub / github.com/BCV-Uniandes/TAPIR / functions

Functions422 in github.com/BCV-Uniandes/TAPIR

Method__init__
Constructs box collection. Args: data: a numpy array of shape [N, 4] representing box coordinates Raises: ValueError: if bbox da
slowfast/evaluate/ava_evaluation/np_box_list.py:39
Method__init__
Initialized PerImageEvaluation by evaluation parameters. Args: num_groundtruth_classes: Number of ground truth object classes matchin
slowfast/evaluate/ava_evaluation/per_image_evaluation.py:42
Method__init__
Constructs box collection. Args: box_data: a numpy array of shape [N, 4] representing box coordinates mask_data: a numpy array of sha
slowfast/evaluate/ava_evaluation/np_box_mask_list.py:37
Method__init__
Constructor. Args: categories: A list of dicts, each of which has the following keys - 'id': (required) an integer id uniquely iden
slowfast/evaluate/ava_evaluation/object_detection_evaluation.py:110
Method__init__
(self, categories, matching_iou_threshold=0.5)
slowfast/evaluate/ava_evaluation/object_detection_evaluation.py:356
Method__init__
(self, categories, matching_iou_threshold=0.5)
slowfast/evaluate/ava_evaluation/object_detection_evaluation.py:380
Method__init__
(self, categories, matching_iou_threshold=0.5)
slowfast/evaluate/ava_evaluation/object_detection_evaluation.py:393
Method__init__
(self, categories, matching_iou_threshold=0.5)
slowfast/evaluate/ava_evaluation/object_detection_evaluation.py:418
Method__init__
Constructor. Args: categories: A list of dicts, each of which has the following keys - 'id': (required) an integer id uniquely iden
slowfast/evaluate/ava_evaluation/object_detection_evaluation.py:436
Method__init__
( self, num_groundtruth_classes, matching_iou_threshold=0.5, nms_iou_threshold
slowfast/evaluate/ava_evaluation/object_detection_evaluation.py:529
Method__init__
(self, cfg, split)
slowfast/datasets/ava_dataset.py:26
Method__init__
( self, size, scale=(0.08, 1.0), ratio=(3.0 / 4.0, 4.0 / 3.0), interpo
slowfast/datasets/transform.py:737
Method__init__
Args: dim (int): number of dimension for the input. dim_inner (int): number of dimension inside of the Non-local bloc
slowfast/models/nonlocal_helper.py:20
Method__init__
Naive version of Synchronized 3D BatchNorm. Args: num_sync_devices (int): number of device to sync. args (lis
slowfast/models/batchnorm_helper.py:175
Method__init__
Args: dim_in (int): the channel dimension of the input. fusion_conv_channel_ratio (int): channel ratio for the convol
slowfast/models/video_model_builder.py:111
Method__init__
The `__init__` method of any subclass should also contain these arguments. Args: cfg (CfgNode): model buildin
slowfast/models/video_model_builder.py:174
Method__init__
Args: reduction (str): specifies reduction to apply to the output. It can be "mean" (default) or "none".
slowfast/models/losses.py:16
Method__init__
Args: dim_in (int): the channel dimensions of the input. dim_out (int): the channel dimension of the output.
slowfast/models/resnet_helper.py:34
Method__init__
Args: dim_in (int): the channel dimensions of the input. dim_out (int): the channel dimension of the output.
slowfast/models/resnet_helper.py:122
Method__init__
Args: dim_in (int): the channel dimensions of the input. dim_out (int): the channel dimension of the output.
slowfast/models/resnet_helper.py:262
Method__init__
The `__init__` method of any subclass should also contain these arguments. ResStage builds p streams, where p can be greater or equal
slowfast/models/resnet_helper.py:529
Method__init__
(self, dim, window_size, num_heads, qkv_bias=False, qk_scale=None, attn_drop=0., proj_drop=0.)
slowfast/models/swin_transformer.py:107
Method__init__
(self, dim, num_heads, window_size=(2,7,7), shift_size=(0,0,0), mlp_ratio=4., qkv_bias=True,
slowfast/models/swin_transformer.py:197
Method__init__
(self, dim, norm_layer=nn.LayerNorm)
slowfast/models/swin_transformer.py:291
Method__init__
(self, dim, depth, num_heads, window_size=
slowfast/models/swin_transformer.py:357
Method__init__
(self, patch_size=(2,4,4), in_chans=3, embed_dim=96, norm_layer=None)
slowfast/models/swin_transformer.py:432
Method__init__
(self, cfg, norm_layer=nn.LayerNorm, )
slowfast/models/swin_transformer.py:490
Method__init__
The `__init__` method of any subclass should also contain these arguments. List size of 1 for single pathway models (C2D, I3D, Slow
slowfast/models/stem_helper.py:26
Method__init__
The `__init__` method of any subclass should also contain these arguments. Args: dim_in (int): the channel dimension of
slowfast/models/stem_helper.py:134
Method__init__
( self, dim_in=3, dim_out=768, kernel=(1, 16, 16), stride=(1, 4, 4),
slowfast/models/stem_helper.py:297
Method__init__
(self, dims)
slowfast/models/common.py:38
Method__init__
(self, drop_prob=None)
slowfast/models/common.py:65
Method__init__
( self, dim, num_heads=8, qkv_bias=False, drop_rate=0.0, kerne
slowfast/models/attention.py:50
Method__init__
The `__init__` method of any subclass should also contain these arguments. ResNetBasicHead takes p pathways as input wher
slowfast/models/head_helper.py:157
Method__init__
Perform linear projection and activation as head for tranformers. Args: dim_in (int): the channel dimension of the input
slowfast/models/head_helper.py:248
Method__init__
( self, cfg, num_classes, dropout_rate=0.0, act_func="softmax", )
slowfast/models/head_helper.py:296
Method__init__
(self)
slowfast/models/operators.py:13
Method__len__
Returns: (int): the number of videos in the dataset.
slowfast/datasets/ava_dataset.py:106
Method__repr__
(self)
slowfast/datasets/transform.py:813
Method_init_weights
(self, m)
slowfast/models/video_model_builder.py:653
Method_init_weights
(m)
slowfast/models/swin_transformer.py:652
Function_update_valid_indices_by_removing_high_iou_boxes
( selected_indices, is_index_valid, intersect_over_union, threshold )
slowfast/evaluate/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. detec
slowfast/evaluate/ava_evaluation/object_detection_evaluation.py:232
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. dete
slowfast/evaluate/ava_evaluation/object_detection_evaluation.py:632
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. grou
slowfast/evaluate/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. grou
slowfast/evaluate/ava_evaluation/object_detection_evaluation.py:456
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. gro
slowfast/evaluate/ava_evaluation/object_detection_evaluation.py:575
Methodadd_value
Add a new scalar value to the deque.
slowfast/utils/meters.py:357
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:267
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:229
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 shape [N
slowfast/evaluate/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:187
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
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 bounding bo
slowfast/evaluate/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
Methodclear
Clears the state to prepare for a fresh evaluation.
slowfast/evaluate/ava_evaluation/object_detection_evaluation.py:342
Methodclear_detections
(self)
slowfast/evaluate/ava_evaluation/object_detection_evaluation.py:572
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:322
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 out b
slowfast/evaluate/ava_evaluation/np_box_list_ops.py:349
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:523
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 decrease.
slowfast/evaluate/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 nans
slowfast/evaluate/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 representing tru
slowfast/evaluate/ava_evaluation/metrics.py:21
Functioncompute_weighted_loss
Weighted loss function
slowfast/models/losses.py:54
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 concatena
slowfast/evaluate/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:106
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
Functionconvert
(gt)
slowfast/evaluate/detection_eval.py:190
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:218
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:65
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 category i
slowfast/evaluate/ava_evaluation/label_map_util.py:168
Functioncreate_class_agnostic_category_index
Creates a category index with a single `object` class.
slowfast/evaluate/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:328
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:43
Methodevaluate
Compute evaluation result. Returns: A dictionary of metrics with the following fields - 1. summary_metrics: 'Precision/mAP@<
slowfast/evaluate/ava_evaluation/object_detection_evaluation.py:283
Methodevaluate
Compute evaluation result. Returns: A named tuple with the following fields - average_precision: float numpy array of average preci
slowfast/evaluate/ava_evaluation/object_detection_evaluation.py:752
Methodforward
(self, x)
slowfast/models/nonlocal_helper.py:105
Methodforward
(self, x)
slowfast/models/batchnorm_helper.py:98
Methodforward
(self, input)
slowfast/models/batchnorm_helper.py:194
Methodforward
(self, x)
slowfast/models/video_model_builder.py:154
Methodforward
(self, x, bboxes=None, features=None)
slowfast/models/video_model_builder.py:416
Methodforward
(self, x, bboxes=None, features=None, boxes_mask=None)
slowfast/models/video_model_builder.py:687
Methodforward
(self, x, y)
slowfast/models/losses.py:25
Methodforward
(self, x)
slowfast/models/resnet_helper.py:105
Methodforward
(self, x)
slowfast/models/resnet_helper.py:250
Methodforward
(self, x)
slowfast/models/resnet_helper.py:372
Methodforward
(self, x)
slowfast/models/resnet_helper.py:507
Methodforward
(self, inputs)
slowfast/models/resnet_helper.py:693
Methodforward
(self, x)
slowfast/models/swin_transformer.py:36
Methodforward
Forward function. Args: x: input features with shape of (num_windows*B, N, C) mask: (0/-inf) mask with shape of (num_
slowfast/models/swin_transformer.py:145
← previousnext →201–300 of 422, ranked by callers