MCPcopy Create free account

hub / github.com/MTLab/MorphMLP / functions

Functions764 in github.com/MTLab/MorphMLP

↓ 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:104
↓ 2 callersMethoddistributed_sinkhorn
(self, Q, nmb_iters)
slowfast/models/contrastive.py:891
↓ 2 callersMethoddraw_multiple_text
Draw a list of text labels for some bounding box on the image. Args: text_ls (list of strings): a list of text labels.
slowfast/visualization/video_visualizer.py:109
↓ 2 callersMethoddraw_text
Draw text at the specified position. Args: text (str): the text to draw on image. position (list of 2 ints):
slowfast/visualization/video_visualizer.py:61
↓ 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 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
Get the visualized clips if any.
slowfast/visualization/async_predictor.py:264
↓ 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_cfg
Get a copy of the default config.
slowfast/config/defaults.py:1018
↓ 2 callersMethodget_code
(self, out)
slowfast/models/contrastive.py:858
↓ 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_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: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_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:744
↓ 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_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
↓ 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:141
↓ 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:295
↓ 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 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:73
↓ 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:801
↓ 2 callersFunctionload_config
Given the arguemnts, load and initialize the configs. Args: args (argument): arguments includes `shard_id`, `num_shards`,
slowfast/utils/parser.py:67
↓ 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 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:74
↓ 2 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
↓ 2 callersMethodplot_weights_and_activations
Visualize weights/ activations tensors to Tensorboard. Args: weight_activation_dict (dict[str, tensor]): a dictionary of
slowfast/visualization/tensorboard_vis.py:183
↓ 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 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:91
↓ 2 callersFunctionread_labelmap
Read label map and class ids.
slowfast/utils/ava_eval_helper.py:109
↓ 2 callersFunctionrun_evaluation
AVA evaluation main logic.
slowfast/utils/ava_eval_helper.py:174
↓ 2 callersMethodrun_swav_orig_encoder_q
(self, x)
slowfast/models/contrastive.py:867
↓ 2 callersFunctionsetup_environment
()
slowfast/utils/env.py:13
↓ 2 callersMethodsinkhorn
(self, Q, iters)
slowfast/models/contrastive.py:875
↓ 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 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 callersFunctionvalidate_checkpoint_wrapper_import
Check if checkpoint_wrapper is imported.
slowfast/models/utils.py:24
↓ 2 callersFunctionwrite_results
Write prediction results into official formats.
slowfast/utils/ava_eval_helper.py:290
↓ 1 callersMethod__init__
(self, cfg)
slowfast/datasets/ptv_datasets.py:100
↓ 1 callersMethod__init__
( self, dim, dim_out, num_heads, input_size, mlp_ratio=4.0,
slowfast/models/attention.py:446
↓ 1 callersMethod__load__
(self, index)
slowfast/datasets/imagenet.py:162
↓ 1 callersMethod_adjust_frames_type
Modify video data to have dtype of uint8 and values range in [0, 255]. Args: frames (array-like): 4D array of shape (T, H
slowfast/visualization/video_visualizer.py:635
↓ 1 callersMethod_align_y_bottom
Calculate the number of text labels to plot at the bottom of the box without going out of frames. Args: box_coord
slowfast/visualization/video_visualizer.py:330
↓ 1 callersMethod_align_y_top
Calculate the number of text labels to plot on top of the box without going out of frames. Args: box_coordinate (
slowfast/visualization/video_visualizer.py:312
↓ 1 callersMethod_batch_shuffle
(self, x)
slowfast/models/contrastive.py:177
↓ 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:70
↓ 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, dilation, norm_module)
slowfast/models/resnet_helper.py:77
↓ 1 callersMethod_construct
( self, dim_in, dim_out, stride, dim_inner, num_groups,
slowfast/models/resnet_helper.py:190
↓ 1 callersMethod_construct
( self, dim_in, dim_out, stride, dim_inner, num_groups,
slowfast/models/resnet_helper.py:321
↓ 1 callersMethod_construct
( self, dim_in, dim_out, temp_kernel_size, stride, trans_func,
slowfast/models/resnet_helper.py:470
↓ 1 callersMethod_construct
( self, dim_in, dim_out, stride, dim_inner, num_groups,
slowfast/models/resnet_helper.py:652
↓ 1 callersMethod_construct_head
(self, dim_in, dim_inner, dim_out, norm_module)
slowfast/models/head_helper.py:416
↓ 1 callersMethod_construct_imdb
Constructs the imdb.
slowfast/datasets/imagenet.py:53
↓ 1 callersMethod_construct_loader
Construct the video loader.
slowfast/datasets/kinetics.py:88
↓ 1 callersMethod_construct_loader
Construct the video loader.
slowfast/datasets/ssv2.py:73
↓ 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:86
↓ 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:90
↓ 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:247
↓ 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:449
↓ 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:540
↓ 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:625
↓ 1 callersMethod_construct_network
Builds a MViT model. Args: cfg (CfgNode): model building configs, details are in the comments of the con
slowfast/models/ptv_model_builder.py:726
↓ 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:196
↓ 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:475
↓ 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:711
↓ 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_create_text_labels
Create text labels. Args: classes (list[int]): a list of class ids for each example. scores (list[float] or None): list of sc
slowfast/visualization/video_visualizer.py:18
↓ 1 callersMethod_dequeue_and_enqueue
(self, keys, extra_keys=None)
slowfast/models/contrastive.py:266
↓ 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:385
↓ 1 callersMethod_frame_to_list_img
(self, frames)
slowfast/datasets/sth.py:372
↓ 1 callersFunction_gen_loader
()
tools/train_net.py:320
↓ 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:72
↓ 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:148
↓ 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.
slowfast/utils/ava_evaluation/per_image_evaluation.py:354
↓ 1 callersMethod_get_mixup_params
(self)
slowfast/datasets/mixup.py:148
↓ 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:78
↓ 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] representi
slowfast/utils/ava_evaluation/per_image_evaluation.py:223
↓ 1 callersMethod_get_thres_array
Compute a thresholds array for all classes based on `self.thes` and `self.lower_thres`. Args: common_class_names (Optiona
slowfast/visualization/video_visualizer.py:657
↓ 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:245
↓ 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:113
↓ 1 callersFunction_interpolation
(kwargs)
slowfast/datasets/rand_augment.py:52
↓ 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 c
slowfast/utils/ava_evaluation/np_box_list.py:129
↓ 1 callersMethod_list_img_to_frames
(self, img_list)
slowfast/datasets/kinetics.py:391
← previousnext →101–200 of 764, ranked by callers