MCPcopy Create free account

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

Functions422 in github.com/BCV-Uniandes/TAPIR

↓ 1 callersMethod_round_width
Round width of filters based on width multiplier Args: width (int): the channel dimensions of the input. mult
slowfast/models/operators.py:39
↓ 1 callersFunction_serialize_to_tensor
Seriialize the tensor to ByteTensor. Note that only `gloo` and `nccl` backend is supported. Args: data (data): data to be ser
slowfast/utils/distributed.py:165
↓ 1 callersFunction_suppress_print
Suppresses printing from the current process.
slowfast/utils/logging.py:19
↓ 1 callersMethod_update_ground_truth_statistics
Update grouth truth statitistics. 1. Difficult boxes are ignored when counting the number of ground truth instances as done in Pascal VOC dev
slowfast/evaluate/ava_evaluation/object_detection_evaluation.py:719
↓ 1 callersFunction_validate_label_map
Checks if a label map is valid. Args: label_map: StringIntLabelMap to validate. Raises: ValueError: if label map is invalid.
slowfast/evaluate/ava_evaluation/label_map_util.py:29
↓ 1 callersFunctionaggregate_labels
Join a list of label list. Args: labels (list): The input label list. Returns: labels (list): The joint list of all lists
slowfast/datasets/utils.py:203
↓ 1 callersMethodaggregate_stats
Synchronize running_mean, and running_var. Call this before eval.
slowfast/models/batchnorm_helper.py:84
↓ 1 callersFunctionarea
Computes area of boxes. Args: boxlist: BoxList holding N boxes Returns: a numpy array with shape [N*1] representing box areas
slowfast/evaluate/ava_evaluation/np_box_list_ops.py:45
↓ 1 callersFunctionassert_and_infer_cfg
(cfg)
slowfast/config/defaults.py:1055
↓ 1 callersMethodbackward
(ctx, grad_output)
slowfast/models/operators.py:30
↓ 1 callersFunctionbrightness
Perform color brightness on the given image. Args: var (float): variance. image (array): image to perform color brightness.
slowfast/datasets/cv2_transform.py:668
↓ 1 callersFunctionbrightness_jitter
Perfrom brightness jittering on the input images. The channels of images should be in order BGR. Args: var (float): jitter ratio
slowfast/datasets/transform.py:417
↓ 1 callersFunctionbrightness_list
Perform color brightness on the given list of images. Args: var (float): variance. images (list): list of images to perform c
slowfast/datasets/cv2_transform.py:715
↓ 1 callersFunctionbuild_dataset
Build a dataset, defined by `dataset_name`. Args: dataset_name (str): the name of the dataset to be constructed. cfg (CfgNode
slowfast/datasets/build.py:15
↓ 1 callersFunctionbuild_model
Builds the video model. Args: cfg (configs): configs that contains the hyper-parameters to build the backbone. Details can be
slowfast/models/build.py:18
↓ 1 callersFunctionc2_normal_to_sub_bn
Convert BN parameters to Sub-BN parameters if model contains Sub-BNs. Args: key (OrderedDict): source dict of parameters. mdo
slowfast/utils/checkpoint.py:435
↓ 1 callersFunctioncalculate_and_update_precise_bn
Update the stats in bn layers by calculate the precise stats. Args: loader (loader): data loader to provide training data. mo
tools/train_net.py:253
↓ 1 callersFunctioncolor_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:382
↓ 1 callersFunctioncompute_mask
(D, H, W, window_size, shift_size, device)
slowfast/models/swin_transformer.py:324
↓ 1 callersMethodcompute_object_detection_metrics
Evaluates detections as being tp, fp or ignored from a single image. The evaluation is done in two stages: 1. All detections are matched to
slowfast/evaluate/ava_evaluation/per_image_evaluation.py:53
↓ 1 callersFunctionconcatenate
Concatenate list of BoxLists. This op concatenates a list of input BoxLists into a larger BoxList. It also handles concatenation of BoxList fiel
slowfast/evaluate/ava_evaluation/np_box_list_ops.py:448
↓ 1 callersFunctioncontrast
Perform color contrast on the given image. Args: var (float): variance. image (array): image to perform color contrast. R
slowfast/datasets/cv2_transform.py:682
↓ 1 callersFunctioncontrast_jitter
Perfrom contrast jittering on the input images. The channels of images should be in order BGR. Args: var (float): jitter ratio fo
slowfast/datasets/transform.py:436
↓ 1 callersFunctioncontrast_list
Perform color contrast on the given list of images. Args: var (float): variance. images (list): list of images to perform col
slowfast/datasets/cv2_transform.py:733
↓ 1 callersFunctionconvert_label_map_to_categories
Loads label map proto and returns categories list compatible with eval. This function loads a label map and returns a list of dicts, each of which
slowfast/evaluate/ava_evaluation/label_map_util.py:74
↓ 1 callersFunctioncreate_category_index
Creates dictionary of COCO compatible categories keyed by category id. Args: categories: a list of dicts, each of which has the following keys:
slowfast/evaluate/ava_evaluation/label_map_util.py:43
↓ 1 callersFunctioncrop_boxes
Crop the boxes given the offsets. Args: boxes (array): boxes to crop. x_offset (int): offset on x. y_offset (int): of
slowfast/datasets/cv2_transform.py:381
↓ 1 callersMethodepoch_tic
Start to record time.
slowfast/utils/meters.py:428
↓ 1 callersMethodepoch_toc
Stop to record time.
slowfast/utils/meters.py:434
↓ 1 callersFunctioneval_classification
(task, coco_anns, preds, visualization)
slowfast/evaluate/classification_eval.py:11
↓ 1 callersFunctioneval_detection
(task, coco_anns, preds, img_ann_dict)
slowfast/evaluate/detection_eval.py:32
↓ 1 callersFunctioneval_task
(task, coco_anns, preds, visualization)
slowfast/evaluate/main_eval.py:29
↓ 1 callersFunctionflip_boxes
Horizontally flip the boxes. Args: boxes (array): box to flip. im_width (int): width of the image. Returns: boxes
slowfast/datasets/cv2_transform.py:365
↓ 1 callersMethodforward
Perform forwarding, gathering the stats across different process/ GPU group.
slowfast/models/batchnorm_helper.py:118
↓ 1 callersMethodforward_part1
(self, x, mask_matrix)
slowfast/models/swin_transformer.py:222
↓ 1 callersMethodforward_part2
(self, x)
slowfast/models/swin_transformer.py:258
↓ 1 callersFunctionget_cfg
Get a copy of the default config.
slowfast/config/defaults.py:1083
↓ 1 callersMethodget_coordinates
Get corner coordinates of boxes. Returns: a list of 4 1-d numpy arrays [y_min, x_min, y_max, x_max]
slowfast/evaluate/ava_evaluation/np_box_list.py:118
↓ 1 callersFunctionget_current_long_cycle_shape
Given a schedule and epoch index, return the long cycle base shape. Args: schedule (configs): configs that contains training and mult
slowfast/utils/multigrid.py:224
↓ 1 callersMethodget_global_avg
Calculate the global mean value.
slowfast/utils/meters.py:326
↓ 1 callersFunctionget_img_ann_dict
(coco_anns)
slowfast/evaluate/main_eval.py:22
↓ 1 callersFunctionget_iou
Calculate the Intersection over Union (IoU) of two bounding boxes. Parameters ---------- bb1 : dict Keys: {'x1', 'x2', 'y1',
slowfast/datasets/utils.py:354
↓ 1 callersFunctionget_logger
Retrieve the logger with the specified name or, if name is None, return a logger which is the root logger of the hierarchy. Args:
slowfast/utils/logging.py:77
↓ 1 callersMethodget_long_cycle_schedule
Based on multigrid hyperparameters, define the schedule of a long cycle. Args: cfg (configs): configs that contains train
slowfast/utils/multigrid.py:123
↓ 1 callersFunctionget_name_convert_func
Get the function to convert Caffe2 layer names to PyTorch layer names. Returns: (func): function to convert parameter name from Caffe
slowfast/utils/c2_model_loading.py:9
↓ 1 callersFunctionget_norm
Args: cfg (CfgNode): model building configs, details are in the comments of the config file. Returns: nn.Module:
slowfast/models/batchnorm_helper.py:15
↓ 1 callersMethodget_params
Get parameters for ``crop`` for a random sized crop. Args: img (PIL Image): Image to be cropped. scale (tuple): range
slowfast/datasets/transform.py:759
↓ 1 callersFunctionget_path_to_checkpoint
Get the full path to a checkpoint file. Args: path_to_job (string): the path to the folder of the current job. epoch (int): t
slowfast/utils/checkpoint.py:46
↓ 1 callersFunctionget_rank
Get the rank of the current process.
slowfast/utils/distributed.py:125
↓ 1 callersFunctionget_stem_func
Retrieves the stem module by name.
slowfast/models/stem_helper.py:9
↓ 1 callersFunctionget_step_index
Retrieves the lr step index for the given epoch. Args: cfg (CfgNode): configs. Details can be found in slowfast/config/de
slowfast/utils/lr_policy.py:69
↓ 1 callersMethodget_tasks_median_sum
slowfast/utils/meters.py:315
↓ 1 callersFunctionget_trans_func
Retrieves the transformation module by name.
slowfast/models/resnet_helper.py:14
↓ 1 callersFunctionget_world_size
Get the size of the world.
slowfast/utils/distributed.py:114
↓ 1 callersFunctiongpu_mem_usage
Compute the GPU memory usage for the current device (GB).
slowfast/utils/misc.py:54
↓ 1 callersFunctioninflate_weight
Inflate 2D model weights in state_dict_2d to the 3D model weights in state_dict_3d. The details can be found in: Joao Carreira, and Andre
slowfast/utils/checkpoint.py:178
↓ 1 callersMethodinit_weights
Initialize the weights in backbone. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to No
slowfast/models/swin_transformer.py:645
↓ 1 callersFunctionioa
Computes pairwise intersection-over-area between box and mask collections. Intersection-over-area (ioa) between two masks mask1 and mask2 is define
slowfast/evaluate/ava_evaluation/np_box_mask_list_ops.py:99
↓ 1 callersFunctionioa
Computes pairwise intersection-over-area between box collections. Intersection-over-area (ioa) between two boxes box1 and box2 is defined as thei
slowfast/evaluate/ava_evaluation/np_box_list_ops.py:84
↓ 1 callersFunctionlaunch_job
Run 'func' on one or more GPUs, specified in cfg Args: cfg (CfgNode): configs. Details can be found in slowfast/config/de
slowfast/utils/misc.py:285
↓ 1 callersFunctionload_config
Given the arguemnts, load and initialize the configs. Args: args (argument): arguments includes `shard_id`, `num_shards`,
slowfast/utils/parser.py:67
↓ 1 callersFunctionmain
Main function to spawn the train and test process.
tools/run_net.py:12
↓ 1 callersFunctionmain
(coco_ann_path, task)
slowfast/evaluate/convert_coco_anns_to_our_method.py:14
↓ 1 callersFunctionmain
(coco_ann_path, pred_path, tasks=['phases', 'steps'], visualization=False)
slowfast/evaluate/main_eval.py:39
↓ 1 callersMethodmedian_epoch_time
Calculate the median epoch time among the recorded epochs.
slowfast/utils/meters.py:457
↓ 1 callersFunctionnon_max_suppression
Non maximum suppression. This op greedily selects a subset of detection bounding boxes, pruning away boxes that have high IOU (intersection over
slowfast/evaluate/ava_evaluation/np_box_mask_list_ops.py:174
↓ 1 callersFunctionnon_max_suppression
Non maximum suppression. This op greedily selects a subset of detection bounding boxes, pruning away boxes that have high IOU (intersection over
slowfast/evaluate/ava_evaluation/np_box_list_ops.py:167
↓ 1 callersFunctionnormal_to_sub_bn
Convert BN parameters to Sub-BN parameters if model contains Sub-BNs. Args: checkpoint_sd (OrderedDict): source dict of parameters.
slowfast/utils/checkpoint.py:455
↓ 1 callersFunctionnormalize_bbox
(x1, y1, w, h, im_w, im_h)
slowfast/evaluate/convert_coco_anns_to_our_method.py:7
↓ 1 callersFunctionnormalize_bbox
(x1, y1, w, h, im_w, im_h)
slowfast/evaluate/detection_eval.py:25
↓ 1 callersFunctionorganize_data_pascal
bboxes for groundtruth are in [x1,y1,w,h]
slowfast/evaluate/detection_eval.py:123
↓ 1 callersFunctionorganize_pred_pascal
bboxes for preds are in format [x1,y1,x2,y2]
slowfast/evaluate/detection_eval.py:160
↓ 1 callersFunctionpack_pathway_output
Prepare output as a list of tensors. Each tensor corresponding to a unique pathway. Args: frames (tensor): frames of images sampl
slowfast/datasets/utils.py:77
↓ 1 callersFunctionpad_image
Pad the given image with the size of pad_size. Args: image (array): image to pad. pad_size (int): size to pad. order
slowfast/datasets/cv2_transform.py:319
↓ 1 callersFunctionparams_count
Compute the number of parameters. Args: model (model): model to count the number of parameters.
slowfast/utils/misc.py:37
↓ 1 callersFunctionparse_args
Parse the following arguments for a default parser for PySlowFast users. Args: shard_id (int): shard id for the current machine. Star
slowfast/utils/parser.py:13
↓ 1 callersFunctionparse_bboxes_file
Parse PSI-AVA bounding boxes files. Args: ann_filenames (list of str(s)): a list of PSI-AVA bounding boxes annotation files.
slowfast/datasets/ava_helper.py:192
↓ 1 callersFunctionprint_schedule
Log schedule.
slowfast/utils/multigrid.py:215
↓ 1 callersMethodprint_summary
(self)
slowfast/datasets/ava_dataset.py:95
↓ 1 callersFunctionread_exclusions
Reads a CSV file of excluded timestamps. Args: exclusions_file: A file object containing a csv of video-id,timestamp. Returns: A s
slowfast/utils/ava_eval_helper.py:83
↓ 1 callersFunctionread_labelmap
Read label map and class ids.
slowfast/utils/ava_eval_helper.py:101
↓ 1 callersFunctionrun_evaluation
AVA evaluation main logic.
slowfast/evaluate/detection_eval.py:207
↓ 1 callersFunctionsaturation
Perform color saturation on the given image. Args: var (float): variance. image (array): image to perform color saturation.
slowfast/datasets/cv2_transform.py:654
↓ 1 callersFunctionsaturation_jitter
Perfrom saturation jittering on the input images. The channels of images should be in order BGR. Args: var (float): jitter ratio
slowfast/datasets/transform.py:456
↓ 1 callersFunctionsaturation_list
Perform color saturation on the list of given images. Args: var (float): variance. images (list): list of images to perform c
slowfast/datasets/cv2_transform.py:697
↓ 1 callersFunctionscale
Scale box coordinates in x and y dimensions. Args: boxlist: BoxList holding N boxes y_scale: float x_scale: float Returns: boxli
slowfast/evaluate/ava_evaluation/np_box_list_ops.py:321
↓ 1 callersFunctionsec_to_frame
Convert time index (in second) to frame index. 0: 900 30: 901
slowfast/datasets/ava_helper.py:143
↓ 1 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_mask_list_ops.py:151
↓ 1 callersFunctiontrain_epoch
Perform the video training for one epoch. Args: train_loader (loader): video training loader. model (model): the video model
tools/train_net.py:29
↓ 1 callersFunctionvalidate_checkpoint_wrapper_import
Check if checkpoint_wrapper is imported.
slowfast/models/utils.py:24
↓ 1 callersFunctionvisualize_results
(bin_labels,bin_preds,task)
slowfast/evaluate/classification_eval.py:57
↓ 1 callersFunctionwindow_reverse
Args: windows: (B*num_windows, window_size, window_size, C) window_size (tuple[int]): Window size H (int): Height of imag
slowfast/models/swin_transformer.py:60
FunctionCHW2HWC
Transpose the dimension from `channel` x `height` x `width` to `height` x `width` x `channel`. Args: image (array): image to
slowfast/datasets/cv2_transform.py:216
FunctionHWC2CHW
Transpose the dimension from `height` x `width` x `channel` to `channel` x `height` x `width`. Args: image (array): image to
slowfast/datasets/cv2_transform.py:228
Method__call__
Args: img (PIL Image): Image to be cropped and resized. Returns: PIL Image: Randomly cropped and resized imag
slowfast/datasets/transform.py:799
Method__getitem__
Generate corresponding clips, boxes, labels and metadata for given idx. Args: idx (int): the video index provided by the
slowfast/datasets/ava_dataset.py:335
Method__init__
overall_iters (int): the overall number of iterations of one epoch. cfg (CfgNode): configs. mode (str): `train`, `val`, or `t
slowfast/utils/meters.py:49
Method__init__
Args: window_size (int): size of the max length of the deque.
slowfast/utils/meters.py:283
Method__init__
Args: window_size (int): size of the max length of the deque.
slowfast/utils/meters.py:340
Method__init__
(self)
slowfast/utils/meters.py:416
← previousnext →101–200 of 422, ranked by callers