MCPcopy Create free account

hub / github.com/ChenHsing/SVFormer / functions

Functions683 in github.com/ChenHsing/SVFormer

↓ 2 callersFunctionis_static_pad
(kernel_size: int, stride: int = 1, dilation: int = 1, **_)
timesformer/models/vit_utils.py:119
↓ 2 callersFunctionload_labelmap
Loads label map proto. Args: path: path to StringIntLabelMap proto text file. Returns: a StringIntLabelMapProto
timesformer/utils/ava_evaluation/label_map_util.py:129
↓ 2 callersFunctionmake_image_key
Returns a unique identifier for a video id & timestamp.
timesformer/utils/ava_eval_helper.py:49
↓ 2 callersFunctionnorm_cdf
(x)
timesformer/models/vit_utils.py:25
↓ 2 callersFunctionnormal_to_sub_bn
Convert BN parameters to Sub-BN parameters if model contains Sub-BNs. Args: checkpoint_sd (OrderedDict): source dict of parameters.
timesformer/utils/checkpoint.py:478
↓ 2 callersFunctionpack_pathway_output
Prepare output as a list of tensors. Each tensor corresponding to a unique pathway. Args: frames (tensor): frames of images sampl
timesformer/datasets/utils.py:74
↓ 2 callersMethodplot_weights_and_activations
Visualize weights/ activations tensors to Tensorboard. Args: weight_activation_dict (dict[str, tensor]): a dictionary of
timesformer/visualization/tensorboard_vis.py:182
↓ 2 callersFunctionpyav_decode_stream
Decode the video with PyAV decoder. Args: container (container): PyAV container. start_pts (int): the starting Presentation T
timesformer/datasets/decoder.py:61
↓ 2 callersFunctionrand_augment_transform
RandAugment: Practical automated data augmentation... - https://arxiv.org/abs/1909.13719 Create a RandAugment transform :param config_st
timesformer/datasets/rand_augment.py:481
↓ 2 callersFunctionread_csv
Loads boxes and class labels from a CSV file in the AVA format. CSV file format described at https://research.google.com/ava/download.html. Ar
timesformer/utils/ava_eval_helper.py:54
↓ 2 callersFunctionrun_evaluation
AVA evaluation main logic.
timesformer/utils/ava_eval_helper.py:174
↓ 2 callersFunctionsetup_environment
()
timesformer/utils/env.py:10
↓ 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:
timesformer/utils/ava_evaluation/np_box_list_ops.py:136
↓ 2 callersFunctiontopks_correct
Given the predictions, labels, and a list of top-k values, compute the number of correct predictions for each top-k value. Args:
timesformer/utils/metrics.py:22
↓ 2 callersFunctionwrite_results
Write prediction results into official formats.
timesformer/utils/ava_eval_helper.py:290
↓ 1 callersMethod__init__
(self, model, decay=0.9999, device='', resume='')
timesformer/utils/ema.py:37
↓ 1 callersMethod__init__
Args: num_splits (int): number of splits. args (list): other arguments.
timesformer/models/batchnorm_helper.py:47
↓ 1 callersMethod__init__
The `__init__` method of any subclass should also contain these arguments. X3DHead takes a 5-dim feature tensor (BxCxTxHx
timesformer/models/head_helper.py:110
↓ 1 callersMethod__init__
Args: dim_in (int): the channel dimensions of the input. ratio (float): the channel reduction ratio for squeeze.
timesformer/models/operators.py:59
↓ 1 callersFunction_assert_and_infer_cfg
(cfg)
timesformer/config/defaults.py:789
↓ 1 callersFunction_cached_log_stream
(filename)
timesformer/utils/logging.py:30
↓ 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
timesformer/utils/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
timesformer/utils/ava_evaluation/per_image_evaluation.py:261
↓ 1 callersMethod_construct
(self, dim_in, dim_out, stride, norm_module)
timesformer/models/resnet_helper.py:84
↓ 1 callersMethod_construct
( self, dim_in, dim_out, stride, dim_inner, num_groups,
timesformer/models/resnet_helper.py:193
↓ 1 callersMethod_construct
( self, dim_in, dim_out, stride, dim_inner, num_groups,
timesformer/models/resnet_helper.py:323
↓ 1 callersMethod_construct
( self, dim_in, dim_out, temp_kernel_size, stride, trans_func,
timesformer/models/resnet_helper.py:472
↓ 1 callersMethod_construct
( self, dim_in, dim_out, stride, dim_inner, num_groups,
timesformer/models/resnet_helper.py:665
↓ 1 callersMethod_construct_head
(self, dim_in, dim_inner, dim_out, norm_module)
timesformer/models/head_helper.py:160
↓ 1 callersMethod_construct_loader
Construct the video loader.
timesformer/datasets/kinetics.py:75
↓ 1 callersMethod_construct_loader
Construct the video loader.
timesformer/datasets/unlabel2.py:147
↓ 1 callersMethod_construct_loader
Construct the video loader.
timesformer/datasets/ssv2.py:72
↓ 1 callersMethod_construct_loader
Construct the video loader.
timesformer/datasets/unlabel.py:124
↓ 1 callersMethod_construct_loader
Construct the video loader.
timesformer/datasets/something.py:74
↓ 1 callersMethod_construct_loader
Construct the video loader.
timesformer/datasets/demo.py:74
↓ 1 callersMethod_construct_network
Builds a single pathway ResNet model. Args: cfg (CfgNode): model building configs, details are in the co
timesformer/models/video_model_builder.py:458
↓ 1 callersMethod_construct_network
Builds a single pathway X3D model. Args: cfg (CfgNode): model building configs, details are in the comme
timesformer/models/video_model_builder.py:693
↓ 1 callersMethod_construct_network
Builds a SlowFast model. The first pathway is the Slow pathway and the second pathway is the Fast pathway. Args:
timesformer/models/video_model_builder.py:815
↓ 1 callersMethod_construct_nonlocal
( self, zero_init_final_conv, zero_init_final_norm, norm_module )
timesformer/models/nonlocal_helper.py:66
↓ 1 callersMethod_construct_stem
(self, dim_in, dim_out, norm_module, stem_func_name)
timesformer/models/stem_helper.py:90
↓ 1 callersMethod_construct_stem
(self, dim_in, dim_out, norm_module)
timesformer/models/stem_helper.py:171
↓ 1 callersMethod_construct_stem
(self, dim_in, dim_out, norm_module)
timesformer/models/stem_helper.py:250
↓ 1 callersMethod_drop_connect
Apply dropconnect to x
timesformer/models/resnet_helper.py:516
↓ 1 callersMethod_erase_cube
( self, img, batch_start, batch_size, chan, img_h, img
timesformer/datasets/random_erasing.py:109
↓ 1 callersFunction_gen_loader
()
tools/train_net_emamix.py:586
↓ 1 callersMethod_get_aggregated_mean_std
Calculate the aggregated mean and stds. Args: means (tensor): mean values. stds (tensor): standard deviations
timesformer/models/batchnorm_helper.py:68
↓ 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
timesformer/utils/distributed.py:151
↓ 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
timesformer/utils/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.
timesformer/utils/misc.py:77
↓ 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
timesformer/utils/ava_evaluation/per_image_evaluation.py:223
↓ 1 callersFunction_get_return_layers
(feature_info, out_map)
timesformer/models/features.py:136
↓ 1 callersFunction_interpolation
(kwargs)
timesformer/datasets/rand_augment.py:50
↓ 1 callersFunction_is_tensor_clip
(clip)
timesformer/datasets/functional.py:8
↓ 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
timesformer/utils/ava_evaluation/np_box_list.py:129
↓ 1 callersMethod_load_checkpoint
(self, checkpoint_path)
timesformer/utils/ema.py:51
↓ 1 callersFunction_no_grad_trunc_normal_
(tensor, mean, std, a, b)
timesformer/models/vit_utils.py:24
↓ 1 callersFunction_ntuple
(n)
timesformer/models/vit_utils.py:78
↓ 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
timesformer/utils/distributed.py:192
↓ 1 callersFunction_posterize_level_to_arg
(level, _hparams)
timesformer/datasets/rand_augment.py:242
↓ 1 callersMethod_register_hooks
Register hooks to layers in `self.layers_names`.
timesformer/visualization/utils.py:203
↓ 1 callersMethod_register_single_hook
Register hook to a layer, given layer_name, to obtain activations. Args: layer_name (str): name of the layer.
timesformer/visualization/utils.py:190
↓ 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.
timesformer/utils/ava_evaluation/per_image_evaluation.py:411
↓ 1 callersMethod_round_repeats
Round number of layers based on depth multiplier.
timesformer/models/video_model_builder.py:686
↓ 1 callersMethod_round_width
Round width of filters based on width multiplier Args: width (int): the channel dimensions of the input. mult
timesformer/models/operators.py:38
↓ 1 callersFunction_select_rand_weights
(weight_idx=0, transforms=None)
timesformer/datasets/rand_augment.py:444
↓ 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
timesformer/utils/distributed.py:164
↓ 1 callersMethod_setup_gpu_args
(self)
tools/submit.py:139
↓ 1 callersFunction_solarize_level_to_arg
(level, _hparams)
timesformer/datasets/rand_augment.py:263
↓ 1 callersFunction_suppress_print
Suppresses printing from the current process.
timesformer/utils/logging.py:18
↓ 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
timesformer/utils/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.
timesformer/utils/ava_evaluation/label_map_util.py:29
↓ 1 callersFunctionadapt_model_from_file
(parent_module, model_variant)
timesformer/models/helpers.py:404
↓ 1 callersFunctionadapt_model_from_string
(parent_module, model_string)
timesformer/models/helpers.py:355
↓ 1 callersFunctionadd_ndim_array
Visualize and add tensors of n-dimentionals to a Tensorboard SummaryWriter. Tensors will be visualized as a 2D grid image. Args:
timesformer/visualization/tensorboard_vis.py:331
↓ 1 callersMethodadd_video
Add input to tensorboard SummaryWriter as a video. Args: vid_tensor (tensor): shape of (B, T, C, H, W). Values should lie
timesformer/visualization/tensorboard_vis.py:170
↓ 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
timesformer/datasets/utils.py:251
↓ 1 callersMethodaggregate_stats
Synchronize running_mean, and running_var. Call this before eval.
timesformer/models/batchnorm_helper.py:83
↓ 1 callersFunctionarea
Computes area of boxes. Args: boxlist: BoxList holding N boxes Returns: a numpy array with shape [N*1] representing box areas
timesformer/utils/ava_evaluation/np_box_list_ops.py:45
↓ 1 callersFunctionbrightness
Perform color brightness on the given image. Args: var (float): variance. image (array): image to perform color brightness.
timesformer/datasets/cv2_transform.py:667
↓ 1 callersFunctionbrightness_jitter
Perfrom brightness jittering on the input images. The channels of images should be in order BGR. Args: var (float): jitter ratio
timesformer/datasets/transform.py:349
↓ 1 callersFunctionbrightness_jitter
Perfrom brightness jittering on the input images. The channels of images should be in order BGR. Args: var (float): jitter ra
timesformer/datasets/video_transform.py:349
↓ 1 callersFunctionbrightness_list
Perform color brightness on the given list of images. Args: var (float): variance. images (list): list of images to perform c
timesformer/datasets/cv2_transform.py:714
↓ 1 callersFunctionbuild_dataset
Build a dataset, defined by `dataset_name`. Args: dataset_name (str): the name of the dataset to be constructed. cfg (CfgNode
timesformer/datasets/build.py:14
↓ 1 callersFunctionbuild_transform
(is_train=True)
timesformer/datasets/image.py:22
↓ 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
timesformer/utils/checkpoint.py:458
↓ 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
timesformer/utils/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
timesformer/utils/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
timesformer/datasets/cv2_transform.py:681
↓ 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
timesformer/datasets/transform.py:368
↓ 1 callersFunctioncontrast_jitter
Perfrom contrast jittering on the input images. The channels of images should be in order BGR. Args: var (float): jitter rati
timesformer/datasets/video_transform.py:368
↓ 1 callersFunctioncontrast_list
Perform color contrast on the given list of images. Args: var (float): variance. images (list): list of images to perform col
timesformer/datasets/cv2_transform.py:732
↓ 1 callersFunctionconv2d_same
( x, weight: torch.Tensor, bias: Optional[torch.Tensor] = None, stride: Tuple[int, int] = (1, 1),
timesformer/models/conv2d_same.py:47
↓ 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
timesformer/utils/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:
timesformer/utils/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
timesformer/datasets/cv2_transform.py:380
↓ 1 callersFunctiondefault_cfg_for_features
(default_cfg)
timesformer/models/helpers.py:410
↓ 1 callersFunctiondrop_path
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks). This is the same as the DropConnect impl I created for Ef
timesformer/models/vit_utils.py:138
↓ 1 callersFunctionextract_layer
(model, layer)
timesformer/models/helpers.py:313
↓ 1 callersMethodfinalize_metrics
Calculate and log the final ensembled metrics. ks (tuple): list of top-k values for topk_accuracies. For example, ks = (1
timesformer/utils/meters.py:155
↓ 1 callersFunctionflip_boxes
Horizontally flip the boxes. Args: boxes (array): box to flip. im_width (int): width of the image. Returns: boxes
timesformer/datasets/cv2_transform.py:364
← previousnext →101–200 of 683, ranked by callers