MCPcopy Create free account

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

Functions422 in github.com/BCV-Uniandes/TAPIR

↓ 22 callersMethodget
Convenience function for accesssing box coordinates. Returns: a numpy array of shape [N, 4] representing box corners
slowfast/evaluate/ava_evaluation/np_box_list.py:94
↓ 19 callersMethodget_field
Accesses data associated with the specified field in the box collection. Args: field: a string parameter used to speficy a related field to
slowfast/evaluate/ava_evaluation/np_box_list.py:102
↓ 11 callersMethodhas_field
(self, field)
slowfast/evaluate/ava_evaluation/np_box_list.py:74
↓ 11 callersMethodnum_boxes
Return number of boxes held in collections.
slowfast/evaluate/ava_evaluation/np_box_list.py:66
↓ 11 callersMethodreset
Reset the individual meters.
slowfast/utils/meters.py:291
↓ 9 callersMethodadd_field
Add data to a specified field. Args: field: a string parameter used to speficy a related field to be accessed. field_data: a numpy ar
slowfast/evaluate/ava_evaluation/np_box_list.py:77
↓ 9 callersMethodget_masks
Convenience function for accessing masks. Returns: a numpy array of shape [N, height, width] representing masks
slowfast/evaluate/ava_evaluation/np_box_mask_list.py:67
↓ 7 callersFunctiongather
Gather boxes from BoxList according to indices and return new BoxList. By default, gather returns boxes corresponding to the input index list, as
slowfast/evaluate/ava_evaluation/np_box_list_ops.py:101
↓ 6 callersMethod__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:64
↓ 6 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
slowfast/models/swin_transformer.py:27
↓ 6 callersFunctionblend
(image1, image2, alpha)
slowfast/datasets/cv2_transform.py:632
↓ 5 callersFunctionget_checkpoint_dir
Get path for storing checkpoints. Args: path_to_job (string): the path to the folder of the current job.
slowfast/utils/checkpoint.py:37
↓ 5 callersMethodget_extra_fields
Return all non-box fields.
slowfast/evaluate/ava_evaluation/np_box_list.py:70
↓ 5 callersFunctionload_checkpoint
Load the checkpoint from the given file. If inflation is True, inflate the 2D Conv weights from the checkpoint to 3D Conv. Args:
slowfast/utils/checkpoint.py:217
↓ 4 callersMethod__init__
ResBlock class constructs redisual blocks. More details can be found in: Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun.
slowfast/models/resnet_helper.py:395
↓ 4 callersFunction_get_param_spatial_crop
Given scale, ratio, height and width, return sampled coordinates of the videos.
slowfast/datasets/transform.py:567
↓ 4 callersFunctionattention_pool
(tensor, pool, thw_shape, has_cls_embed=True, norm=None)
slowfast/models/attention.py:12
↓ 4 callersFunctionbox_list_to_box_mask_list
Converts a BoxList containing 'masks' into a BoxMaskList. Args: boxlist: An np_box_list.BoxList object. Returns: An np_box_mask_list.Box
slowfast/evaluate/ava_evaluation/np_box_mask_list_ops.py:33
↓ 4 callersFunctiongather
Gather boxes from np_box_mask_list.BoxMaskList according to indices. By default, gather returns boxes corresponding to the input index list, as w
slowfast/evaluate/ava_evaluation/np_box_mask_list_ops.py:118
↓ 4 callersFunctiongrayscale
Convert the image to gray scale. Args: image (tensor): image to convert to gray scale. Dimension is `channel` x `height`
slowfast/datasets/cv2_transform.py:636
↓ 4 callersMethoditer_tic
Start to record time.
slowfast/utils/meters.py:140
↓ 4 callersFunctionround_width
(width, multiplier, min_width=1, divisor=1, verbose=False)
slowfast/models/utils.py:8
↓ 4 callersFunctionscale
Scale the short side of the image to size. Args: size (int): size to scale the image. image (array): image to perform short s
slowfast/datasets/cv2_transform.py:77
↓ 3 callersMethod__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:213
↓ 3 callersMethod__init__
The `__init__` method of any subclass should also contain these arguments. ResNetRoIHead takes p pathways as input where
slowfast/models/head_helper.py:16
↓ 3 callersMethodadd_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:75
↓ 3 callersFunctionarea
Computes area of boxes. Args: boxes: Numpy array with shape [N, 4] holding N boxes Returns: a numpy array with shape [N*1] representing
slowfast/evaluate/ava_evaluation/np_box_ops.py:31
↓ 3 callersFunctionarea
Computes area of masks. Args: masks: Numpy array with shape [N, height, width] holding N masks. Masks values are of type np.uint8 and val
slowfast/evaluate/ava_evaluation/np_mask_ops.py:33
↓ 3 callersFunctionblend
Blend two images with a given weight alpha. Args: images1 (tensor): the first images to be blended, the dimension is `num
slowfast/datasets/transform.py:344
↓ 3 callersMethodfinalize_metrics
Calculate and log the final PSI-AVA metrics.
slowfast/utils/meters.py:197
↓ 3 callersMethodget_win_median
Calculate the current median value of the deque.
slowfast/utils/meters.py:303
↓ 3 callersFunctiongrayscale
Get the grayscale for the input images. The channels of images should be in order BGR. Args: images (tensor): the input images fo
slowfast/datasets/transform.py:360
↓ 3 callersFunctionload_json
(json_file)
slowfast/evaluate/main_eval.py:12
↓ 2 callersMethod__init__
(self, cfg)
slowfast/models/video_model_builder.py:449
↓ 2 callersMethod__init__
( self, in_features, hidden_features=None, out_features=None, act_laye
slowfast/models/common.py:8
↓ 2 callersFunction_copy_extra_fields
Copies the extra fields of boxlist_to_copy_from to boxlist_to_copy_to. Args: boxlist_to_copy_to: BoxList to which extra fields are copied.
slowfast/evaluate/ava_evaluation/np_box_list_ops.py:572
↓ 2 callersMethod_freeze_stages
(self)
slowfast/models/swin_transformer.py:578
↓ 2 callersMethod_initialize_detections
(self)
slowfast/evaluate/ava_evaluation/object_detection_evaluation.py:561
↓ 2 callersMethodadd_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:86
↓ 2 callersMethodadd_value
Add a new scalar value to each of the task's deques.
slowfast/utils/meters.py:297
↓ 2 callersMethodavg_epoch_time
Calculate the average epoch time among the recorded epochs.
slowfast/utils/meters.py:449
↓ 2 callersFunctioncenter_crop
Perform center crop on input images. Args: size (int): size of the cropped height and width. image (array): the image to perf
slowfast/datasets/cv2_transform.py:458
↓ 2 callersMethodclear
Clears the state to prepare for a fresh evaluation.
slowfast/evaluate/ava_evaluation/object_detection_evaluation.py:102
↓ 2 callersFunctioncrop_boxes
Peform crop on the bounding boxes given the offsets. Args: boxes (ndarray or None): bounding boxes to peform crop. The dimension
slowfast/datasets/transform.py:95
↓ 2 callersMethoddata_toc
(self)
slowfast/utils/meters.py:154
↓ 2 callersFunctiondrop_path
Stochastic Depth per sample.
slowfast/models/common.py:46
↓ 2 callersFunctioneval_epoch
Evaluate the model on the val set. Args: val_loader (loader): data loader to provide validation data. model (model): model to
tools/train_net.py:154
↓ 2 callersMethodevaluate
Evaluates detections and returns a dictionary of metrics.
slowfast/evaluate/ava_evaluation/object_detection_evaluation.py:97
↓ 2 callersFunctionfilter_scores_greater_than
Filter to keep only boxes and masks with score exceeding a given threshold. This op keeps the collection of boxes and masks whose corresponding sco
slowfast/evaluate/ava_evaluation/np_box_mask_list_ops.py:395
↓ 2 callersFunctionfilter_scores_greater_than
Filter to keep only boxes with score exceeding a given threshold. This op keeps the collection of boxes whose corresponding scores are greater th
slowfast/evaluate/ava_evaluation/np_box_list_ops.py:503
↓ 2 callersFunctionget_last_checkpoint
Get the last checkpoint from the checkpointing folder. Args: path_to_job (string): the path to the folder of the current job.
slowfast/utils/checkpoint.py:57
↓ 2 callersFunctionget_lr_func
Given the configs, retrieve the specified lr policy function. Args: lr_policy (string): the learning rate policy to use for the job.
slowfast/utils/lr_policy.py:84
↓ 2 callersFunctionget_model_stats
Compute statistics for the current model given the config. Args: model (model): model to perform analysis. cfg (CfgNode): con
slowfast/utils/misc.py:138
↓ 2 callersFunctionget_window_size
(x_size, window_size, shift_size=None)
slowfast/models/swin_transformer.py:78
↓ 2 callersFunctionhas_checkpoint
Determines if the given directory contains a checkpoint. Args: path_to_job (string): the path to the folder of the current job.
slowfast/utils/checkpoint.py:73
↓ 2 callersFunctionintersection
Compute pairwise intersection areas between boxes. Args: boxes1: a numpy array with shape [N, 4] holding N boxes boxes2: a numpy array with
slowfast/evaluate/ava_evaluation/np_box_ops.py:43
↓ 2 callersFunctionintersection
Compute pairwise intersection areas between masks. Args: masks1: a numpy array with shape [N, height, width] holding N masks. Masks value
slowfast/evaluate/ava_evaluation/np_mask_ops.py:51
↓ 2 callersMethoditer_toc
Stop to record time.
slowfast/utils/meters.py:147
↓ 2 callersMethodlast_epoch_time
Get the time for the last epoch.
slowfast/utils/meters.py:441
↓ 2 callersFunctionload_labelmap
Loads label map proto. Args: path: path to StringIntLabelMap proto text file. Returns: a StringIntLabelMapProto
slowfast/evaluate/ava_evaluation/label_map_util.py:129
↓ 2 callersMethodlog_epoch_stats
Log the stats of the current epoch. Args: cur_epoch (int): the number of current epoch.
slowfast/utils/meters.py:226
↓ 2 callersMethodlog_iter_stats
Log the stats. Args: cur_epoch (int): the current epoch. cur_iter (int): the current iteration.
slowfast/utils/meters.py:85
↓ 2 callersFunctionmake_image_key
Returns a unique identifier for a video id & timestamp.
slowfast/utils/ava_eval_helper.py:41
↓ 2 callersMethodno_weight_decay
(self)
slowfast/models/video_model_builder.py:663
↓ 2 callersMethodsave_json
Save json for the specific task. Args: cur_epoch (int): the number of current epoch.
slowfast/utils/meters.py:248
↓ 2 callersFunctionsetup_environment
()
slowfast/utils/env.py:13
↓ 2 callersFunctionsort_by_field
Sort boxes and associated fields according to a scalar field. A common use case is reordering the boxes according to descending scores. Args:
slowfast/evaluate/ava_evaluation/np_box_list_ops.py:136
↓ 2 callersFunctionsub_to_normal_bn
Convert the Sub-BN paprameters to normal BN parameters in a state dict. There are two copies of BN layers in a Sub-BN implementation: `bn.bn`
slowfast/utils/checkpoint.py:394
↓ 2 callersMethodtrain
Convert the model into training mode while keep layers freezed.
slowfast/models/swin_transformer.py:696
↓ 2 callersMethodupdate_stats
Update the current stats. Args: preds (tensor): prediction embedding. keep_box(tensor): tensor of boolean to
slowfast/utils/meters.py:168
↓ 2 callersFunctionwindow_partition
Args: x: (B, D, H, W, C) window_size (tuple[int]): window size Returns: windows: (B*num_windows, window_size*window_
slowfast/models/swin_transformer.py:45
↓ 1 callersMethod__init__
Args: num_splits (int): number of splits. args (list): other arguments.
slowfast/models/batchnorm_helper.py:48
↓ 1 callersMethod__init__
( self, dim, dim_out, num_heads, mlp_ratio=4.0, qkv_bias=False
slowfast/models/attention.py:267
↓ 1 callersMethod__init__
Args: dim_in (int): the channel dimensions of the input. ratio (float): the channel reduction ratio for squeeze.
slowfast/models/operators.py:60
↓ 1 callersFunction_cached_log_stream
(filename)
slowfast/utils/logging.py:31
↓ 1 callersMethod_compute_tp_fp
Labels true/false positives of detections of an image across all classes. Args: detected_boxes: A float numpy array of shape [N, 4], repres
slowfast/evaluate/ava_evaluation/per_image_evaluation.py:128
↓ 1 callersMethod_compute_tp_fp_for_single_class
Labels boxes detected with the same class from the same image as tp/fp. Args: detected_boxes: A numpy array of shape [N, 4] representing de
slowfast/evaluate/ava_evaluation/per_image_evaluation.py:261
↓ 1 callersMethod_construct
(self, dim_in, dim_out, stride, norm_module)
slowfast/models/resnet_helper.py:76
↓ 1 callersMethod_construct
( self, dim_in, dim_out, stride, dim_inner, num_groups,
slowfast/models/resnet_helper.py:185
↓ 1 callersMethod_construct
( self, dim_in, dim_out, stride, dim_inner, num_groups,
slowfast/models/resnet_helper.py:316
↓ 1 callersMethod_construct
( self, dim_in, dim_out, temp_kernel_size, stride, trans_func,
slowfast/models/resnet_helper.py:463
↓ 1 callersMethod_construct
( self, dim_in, dim_out, stride, dim_inner, num_groups,
slowfast/models/resnet_helper.py:644
↓ 1 callersMethod_construct_network
Builds a SlowFast model. The first pathway is the Slow pathway and the second pathway is the Fast pathway. Args:
slowfast/models/video_model_builder.py:195
↓ 1 callersMethod_construct_nonlocal
( self, zero_init_final_conv, zero_init_final_norm, norm_module )
slowfast/models/nonlocal_helper.py:67
↓ 1 callersMethod_construct_stem
(self, dim_in, dim_out, norm_module, stem_func_name)
slowfast/models/stem_helper.py:98
↓ 1 callersMethod_construct_stem
(self, dim_in, dim_out, norm_module)
slowfast/models/stem_helper.py:181
↓ 1 callersMethod_construct_stem
(self, dim_in, dim_out, norm_module)
slowfast/models/stem_helper.py:260
↓ 1 callersFunction_gen_loader
()
tools/train_net.py:263
↓ 1 callersMethod_get_aggregated_mean_std
Calculate the aggregated mean and stds. Args: means (tensor): mean values. stds (tensor): standard deviations
slowfast/models/batchnorm_helper.py:69
↓ 1 callersFunction_get_global_gloo_group
Return a process group based on gloo backend, containing all the ranks The result is cached. Returns: (group): pytorch dist group
slowfast/utils/distributed.py:152
↓ 1 callersMethod_get_ith_class_arrays
Returns numpy arrays belonging to class with index `class_index`. Args: detected_boxes: A numpy array containing detected boxes. dete
slowfast/evaluate/ava_evaluation/per_image_evaluation.py:354
↓ 1 callersFunction_get_model_analysis_input
Return a dummy input for model analysis with batch size 1. The input is used for analyzing the model (counting flops and activations etc.
slowfast/utils/misc.py:79
↓ 1 callersMethod_get_overlaps_and_scores_box_mode
Computes overlaps and scores between detected and groudntruth boxes. Args: detected_boxes: A numpy array of shape [N, 4] representing detec
slowfast/evaluate/ava_evaluation/per_image_evaluation.py:223
↓ 1 callersMethod_images_and_boxes_preprocessing
This function performs preprocessing for the input images and corresponding boxes for one clip. Args: imgs (tens
slowfast/datasets/ava_dataset.py:240
↓ 1 callersMethod_images_and_boxes_preprocessing_cv2
This function performs preprocessing for the input images and corresponding boxes for one clip with opencv as backend. Args:
slowfast/datasets/ava_dataset.py:121
↓ 1 callersMethod_is_valid_boxes
Check whether data fullfills the format of N*[ymin, xmin, ymax, xmin]. Args: data: a numpy array of shape [N, 4] representing box coordinat
slowfast/evaluate/ava_evaluation/np_box_list.py:131
↓ 1 callersMethod_load_data
Load frame paths and annotations from files Args: cfg (CfgNode): config
slowfast/datasets/ava_dataset.py:59
↓ 1 callersFunction_pad_to_largest_tensor
Padding all the tensors from different GPUs to the largest ones. Args: tensor (tensor): tensor to pad. group (group): pytorch
slowfast/utils/distributed.py:193
↓ 1 callersFunction_pil_interp
(method)
slowfast/datasets/transform.py:27
↓ 1 callersMethod_remove_invalid_boxes
Removes entries with invalid boxes. A box is invalid if either its xmax is smaller than its xmin, or its ymax is smaller than its ymin.
slowfast/evaluate/ava_evaluation/per_image_evaluation.py:411
next →1–100 of 422, ranked by callers