MCPcopy Create free account

hub / github.com/OpenGVLab/UniFormerV2 / functions

Functions872 in github.com/OpenGVLab/UniFormerV2

↓ 2 callersMethod_update
(self, model, update_fn)
slowfast/utils/ema.py:101
↓ 2 callersMethodadd_frames
Add the clip and corresponding id. Args: idx (int): the current index of the clip. frames (list[ndarray]): li
slowfast/visualization/utils.py:355
↓ 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.
slowfast/utils/ava_evaluation/object_detection_evaluation.py:86
↓ 2 callersMethodavg_epoch_time
Calculate the average epoch time among the recorded epochs.
slowfast/utils/meters.py:819
↓ 2 callersFunctionbytes_to_unicode
Returns list of utf-8 byte and a corresponding list of unicode strings. The reversible bpe codes work on unicode strings. This means you
extract_clip/simple_tokenizer.py:16
↓ 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 callersFunctionconvert_to_one_hot
This function converts target class indices to one-hot vectors, given the number of classes. Args: targets (loader): Class labels
slowfast/datasets/mixup.py:22
↓ 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:98
↓ 2 callersFunctiondrop_path
Stochastic Depth per sample.
slowfast/models/common.py:46
↓ 2 callersMethodevaluate
Evaluates detections and returns a dictionary of metrics.
slowfast/utils/ava_evaluation/object_detection_evaluation.py:97
↓ 2 callersFunctionevaluate_ava
Run AVA evaluation given numpy arrays.
slowfast/utils/ava_eval_helper.py:137
↓ 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 s
slowfast/utils/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 greate
slowfast/utils/ava_evaluation/np_box_list_ops.py:503
↓ 2 callersMethodfinalize_metrics
Calculate and log the final AVA metrics.
slowfast/utils/meters.py:185
↓ 2 callersMethodget_activations
Obtain all activations from layers that we register hooks for. Args: input (tensors, list of tensors): the model input.
slowfast/visualization/utils.py:211
↓ 2 callersFunctionget_best_checkpoint
Get the best checkpoint from the checkpointing folder.
slowfast/utils/checkpoint_amp_ema.py:76
↓ 2 callersFunctionget_cfg
Get a copy of the default config.
slowfast/config/defaults.py:1210
↓ 2 callersFunctionget_class_names
Read json file with entries {classname: index} and return an array of class names in order. If parent_path is provided, load and map all
slowfast/utils/misc.py:345
↓ 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_amp_co.py:60
↓ 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:58
↓ 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_amp_ema.py:60
↓ 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_amp.py:60
↓ 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_map
Compute mAP for multi-label case. Args: preds (numpy tensor): num_examples x num_classes. labels (numpy tensor): num_examples
slowfast/utils/meters.py:754
↓ 2 callersFunctionget_map
Compute mAP for multi-label case. Args: preds (numpy tensor): num_examples x num_classes. labels (numpy tensor): num_examples
slowfast/utils/meters_co.py:763
↓ 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:137
↓ 2 callersFunctionget_pairs
Return set of symbol pairs in a word. Word is represented as tuple of symbols (symbols being variable-length strings).
extract_clip/simple_tokenizer.py:38
↓ 2 callersFunctionget_seq_frames
(video_size, num_frames, clip_idx, num_clips, start_index=0, max_frame=-1)
slowfast/datasets/decoder.py:72
↓ 2 callersMethodget_seq_frames
Given the video index, return the list of sampled frame indexes. Args: index (int): the video index. temporal
slowfast/datasets/sth.py:133
↓ 2 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:328
↓ 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_amp_co.py:88
↓ 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:84
↓ 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_amp_ema.py:88
↓ 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_amp.py:88
↓ 2 callersFunctionintersection
Compute pairwise intersection areas between boxes. Args: boxes1: a numpy array with shape [N, 4] holding N boxes boxes2: a numpy arra
slowfast/utils/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
slowfast/utils/ava_evaluation/np_mask_ops.py:51
↓ 2 callersMethodlast_epoch_time
Get the time for the last epoch.
slowfast/utils/meters.py:811
↓ 2 callersFunctionload_labelmap
Loads label map proto. Args: path: path to StringIntLabelMap proto text file. Returns: a StringIntLabelMapProto
slowfast/utils/ava_evaluation/label_map_util.py:129
↓ 2 callersFunctionload_state_dict
(checkpoint_path, use_ema=False)
slowfast/models/helpers.py:17
↓ 2 callersMethodlog_epoch_stats
Log the stats of the current epoch. Args: cur_epoch (int): the number of current epoch.
slowfast/utils/meters.py:212
↓ 2 callersFunctionmake_image_key
Returns a unique identifier for a video id & timestamp.
slowfast/utils/ava_eval_helper.py:49
↓ 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
slowfast/datasets/utils.py:73
↓ 2 callersFunctionpatch_device
(module)
extract_clip/clip.py:148
↓ 2 callersFunctionpatch_float
(module)
extract_clip/clip.py:172
↓ 2 callersFunctionprocess_bboxes_dict
Replace all `keyframe_sec` in `dictionary` with `keyframe_idx` and merge all [`box_coordinate`, `box_labels`] pairs into [`al
slowfast/visualization/ava_demo_precomputed_boxes.py:411
↓ 2 callersFunctionprocess_cv2_inputs
Normalize and prepare inputs as a list of tensors. Each tensor correspond to a unique pathway. Args: frames (list of array): list
slowfast/visualization/utils.py:304
↓ 2 callersFunctionrand_augment_transform
RandAugment: Practical automated data augmentation... - https://arxiv.org/abs/1909.13719 Create a RandAugment transform :param config_st
slowfast/datasets/rand_augment.py:483
↓ 2 callersFunctionrun_evaluation
AVA evaluation main logic.
slowfast/utils/ava_eval_helper.py:174
↓ 2 callersFunctionsetup_environment
()
slowfast/utils/env.py:11
↓ 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/utils/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_amp_co.py:424
↓ 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_amp.py:408
↓ 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:
slowfast/utils/metrics.py:9
↓ 2 callersMethodupdate_long_cycle
Before every epoch, check if long cycle shape should change. If it should, update cfg accordingly. Args: cfg
slowfast/utils/multigrid.py:63
↓ 2 callersFunctionwrite_results
Write prediction results into official formats.
slowfast/utils/ava_eval_helper.py:290
↓ 1 callersMethod__init__
(self, model, decay=0.9999, device='', resume='')
slowfast/utils/ema.py:31
↓ 1 callersMethod__init__
(self, cfg)
slowfast/datasets/ptv_datasets.py:100
↓ 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:207
↓ 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 callersMethod__load__
(self, index)
slowfast/datasets/imagenet.py:168
↓ 1 callersFunction_cached_log_stream
(filename)
slowfast/utils/logging.py:31
↓ 1 callersMethod_calculate_localization_map
Calculate localization map for all inputs with Grad-CAM. Args: inputs (list of tensor(s)): the input clips. l
slowfast/visualization/gradcam_utils.py:71
↓ 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]
slowfast/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] represe
slowfast/utils/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:645
↓ 1 callersMethod_construct_head
(self, dim_in, dim_inner, dim_out, norm_module)
slowfast/models/head_helper.py:282
↓ 1 callersMethod_construct_imdb
Constructs the imdb.
slowfast/datasets/imagenet.py:59
↓ 1 callersMethod_construct_loader
Construct the video loader.
slowfast/datasets/kinetics.py:90
↓ 1 callersMethod_construct_loader
Construct the video loader.
slowfast/datasets/mit.py:89
↓ 1 callersMethod_construct_loader
Construct the video loader.
slowfast/datasets/kinetics_sparse.py:90
↓ 1 callersMethod_construct_loader
Construct the video loader.
slowfast/datasets/anet.py:89
↓ 1 callersMethod_construct_loader
Construct the video loader.
slowfast/datasets/charades.py:74
↓ 1 callersMethod_construct_loader
Construct the video loader.
slowfast/datasets/sth.py:81
↓ 1 callersMethod_construct_network
Builds a single pathway ResNet model. Args: cfg (CfgNode): model building configs, details are in the co
slowfast/models/ptv_model_builder.py:87
↓ 1 callersMethod_construct_network
Builds a SlowFast model. Args: cfg (CfgNode): model building configs, details are in the comments of the
slowfast/models/ptv_model_builder.py:245
↓ 1 callersMethod_construct_network
Builds a X3D model. Args: cfg (CfgNode): model building configs, details are in the comments of the conf
slowfast/models/ptv_model_builder.py:452
↓ 1 callersMethod_construct_network
Builds a single pathway ResNet model. Args: cfg (CfgNode): model building configs, details are in the co
slowfast/models/ptv_model_builder.py:543
↓ 1 callersMethod_construct_network
Builds a single pathway R(2+1)D model. Args: cfg (CfgNode): model building configs, details are in the c
slowfast/models/ptv_model_builder.py:628
↓ 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:183
↓ 1 callersMethod_construct_network
Builds a single pathway ResNet model. Args: cfg (CfgNode): model building configs, details are in the co
slowfast/models/video_model_builder.py:455
↓ 1 callersMethod_construct_network
Builds a single pathway X3D model. Args: cfg (CfgNode): model building configs, details are in the comme
slowfast/models/video_model_builder.py:673
↓ 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:179
↓ 1 callersMethod_construct_stem
(self, dim_in, dim_out, norm_module)
slowfast/models/stem_helper.py:258
↓ 1 callersFunction_download
(url: str, root: str)
extract_clip/clip.py:43
↓ 1 callersMethod_erase_cube
( self, img, batch_start, batch_size, chan, img_h, img
slowfast/datasets/random_erasing.py:116
↓ 1 callersMethod_frame_to_list_img
(self, frames)
slowfast/datasets/kinetics.py:389
↓ 1 callersMethod_frame_to_list_img
(self, frames)
slowfast/datasets/mit.py:397
↓ 1 callersMethod_frame_to_list_img
(self, frames)
slowfast/datasets/kinetics_sparse.py:398
↓ 1 callersMethod_frame_to_list_img
(self, frames)
slowfast/datasets/anet.py:419
↓ 1 callersMethod_frame_to_list_img
(self, frames)
slowfast/datasets/sth.py:357
↓ 1 callersFunction_gen_loader
()
tools/train_net.py:323
↓ 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 callersMethod_get_frame_range
Return a clip of `num_frames` frames starting from `start_idx`. If not enough frames from `start_idx`, return the remaining frames fr
slowfast/visualization/ava_demo_precomputed_boxes.py:339
← previousnext →101–200 of 872, ranked by callers