Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenGVLab/UniFormerV2
/ functions
Functions
872 in github.com/OpenGVLab/UniFormerV2
⨍
Functions
872
◇
Types & classes
124
↓ 1 callers
Function
_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:154
↓ 1 callers
Method
_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 callers
Method
_get_mixup_params
(self)
slowfast/datasets/mixup.py:148
↓ 1 callers
Function
_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 callers
Method
_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 callers
Method
_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 callers
Method
_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 callers
Function
_interpolation
(kwargs)
slowfast/datasets/rand_augment.py:52
↓ 1 callers
Method
_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 callers
Method
_list_img_to_frames
(self, img_list)
slowfast/datasets/kinetics.py:395
↓ 1 callers
Method
_list_img_to_frames
(self, img_list)
slowfast/datasets/mit.py:403
↓ 1 callers
Method
_list_img_to_frames
(self, img_list)
slowfast/datasets/kinetics_sparse.py:404
↓ 1 callers
Method
_list_img_to_frames
(self, img_list)
slowfast/datasets/anet.py:425
↓ 1 callers
Method
_list_img_to_frames
(self, img_list)
slowfast/datasets/sth.py:363
↓ 1 callers
Method
_load_checkpoint
(self, checkpoint_path)
slowfast/utils/ema.py:45
↓ 1 callers
Method
_load_data
Load frame paths and annotations from files Args: cfg (CfgNode): config
slowfast/datasets/ava_dataset.py:49
↓ 1 callers
Method
_load_imdb
(self)
slowfast/datasets/imagenet.py:51
↓ 1 callers
Method
_mix_batch
(self, x)
slowfast/datasets/mixup.py:167
↓ 1 callers
Function
_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:195
↓ 1 callers
Function
_posterize_level_to_arg
(level, _hparams)
slowfast/datasets/rand_augment.py:244
↓ 1 callers
Method
_prepare_im_res
(self, im_path)
slowfast/datasets/imagenet.py:92
↓ 1 callers
Method
_register_hooks
Register hooks to layers in `self.layers_names`.
slowfast/visualization/utils.py:204
↓ 1 callers
Method
_register_hooks
Register hooks to layers in `self.target_layers`.
slowfast/visualization/gradcam_utils.py:64
↓ 1 callers
Method
_register_single_hook
Register hook to a layer, given layer_name, to obtain activations. Args: layer_name (str): name of the layer.
slowfast/visualization/utils.py:191
↓ 1 callers
Method
_register_single_hook
Register forward and backward hook to a layer, given layer_name, to obtain gradients and activations. Args: layer
slowfast/visualization/gradcam_utils.py:46
↓ 1 callers
Method
_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 ymi
slowfast/utils/ava_evaluation/per_image_evaluation.py:411
↓ 1 callers
Method
_round_repeats
Round number of layers based on depth multiplier.
slowfast/models/video_model_builder.py:666
↓ 1 callers
Method
_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 callers
Function
_select_rand_weights
(weight_idx=0, transforms=None)
slowfast/datasets/rand_augment.py:446
↓ 1 callers
Function
_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:167
↓ 1 callers
Function
_solarize_level_to_arg
(level, _hparams)
slowfast/datasets/rand_augment.py:265
↓ 1 callers
Function
_suppress_print
Suppresses printing from the current process.
slowfast/utils/logging.py:19
↓ 1 callers
Method
_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
slowfast/utils/ava_evaluation/object_detection_evaluation.py:727
↓ 1 callers
Function
_validate_label_map
Checks if a label map is valid. Args: label_map: StringIntLabelMap to validate. Raises: ValueError: if label map is invalid.
slowfast/utils/ava_evaluation/label_map_util.py:29
↓ 1 callers
Method
add_action_preds
Add the corresponding action predictions.
slowfast/visualization/utils.py:371
↓ 1 callers
Method
add_bboxes
Add correspondding bounding boxes.
slowfast/visualization/utils.py:365
↓ 1 callers
Function
add_ndim_array
Visualize and add tensors of n-dimentionals to a Tensorboard SummaryWriter. Tensors will be visualized as a 2D grid image. Args:
slowfast/visualization/tensorboard_vis.py:335
↓ 1 callers
Function
aggregate_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:275
↓ 1 callers
Method
aggregate_stats
Synchronize running_mean, and running_var. Call this before eval.
slowfast/models/batchnorm_helper.py:84
↓ 1 callers
Function
area
Computes area of boxes. Args: boxlist: BoxList holding N boxes Returns: a numpy array with shape [N*1] representing box areas
slowfast/utils/ava_evaluation/np_box_list_ops.py:45
↓ 1 callers
Method
attention
(self, x: torch.Tensor)
extract_clip/model.py:185
↓ 1 callers
Method
attention
(self, x)
slowfast/models/uniformerv2_model.py:93
↓ 1 callers
Method
attention
(self, x, y)
slowfast/models/uniformerv2_model.py:161
↓ 1 callers
Function
available_models
Returns the names of available CLIP models
extract_clip/clip.py:89
↓ 1 callers
Method
backward
(ctx, grad_output)
slowfast/models/operators.py:30
↓ 1 callers
Function
basic_clean
(text)
extract_clip/simple_tokenizer.py:50
↓ 1 callers
Method
bpe
(self, token)
extract_clip/simple_tokenizer.py:80
↓ 1 callers
Function
brightness
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 callers
Function
brightness_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:385
↓ 1 callers
Function
brightness_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 callers
Method
build_attention_mask
(self)
extract_clip/model.py:328
↓ 1 callers
Function
build_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 callers
Function
build_model
(state_dict: dict)
extract_clip/model.py:399
↓ 1 callers
Function
build_trainer
Build training model and its associated tools, including optimizer, dataloaders and meters. Args: cfg (CfgNode): configs. Details
tools/train_net.py:337
↓ 1 callers
Function
c2_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_amp_co.py:465
↓ 1 callers
Function
c2_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:414
↓ 1 callers
Function
c2_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_amp_ema.py:452
↓ 1 callers
Function
c2_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_amp.py:449
↓ 1 callers
Function
calculate_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:313
↓ 1 callers
Method
compute_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 mat
slowfast/utils/ava_evaluation/per_image_evaluation.py:53
↓ 1 callers
Function
concatenate
Concatenate list of BoxLists. This op concatenates a list of input BoxLists into a larger BoxList. It also handles concatenation of BoxList
slowfast/utils/ava_evaluation/np_box_list_ops.py:448
↓ 1 callers
Function
contrast
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 callers
Function
contrast_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:404
↓ 1 callers
Function
contrast_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 callers
Function
conv_1xnxn
(inp, oup, kernel_size=3, stride=3, groups=1)
slowfast/models/uniformer.py:30
↓ 1 callers
Function
conv_3xnxn
(inp, oup, kernel_size=3, stride=3, groups=1)
slowfast/models/uniformer.py:27
↓ 1 callers
Function
conv_3xnxn_std
(inp, oup, kernel_size=3, stride=3, groups=1)
slowfast/models/uniformer.py:33
↓ 1 callers
Function
conv_5x5x5
(inp, oup, groups=1)
slowfast/models/uniformer.py:42
↓ 1 callers
Function
convert_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 whic
slowfast/utils/ava_evaluation/label_map_util.py:74
↓ 1 callers
Function
convert_weights
Convert applicable model parameters to fp16
extract_clip/model.py:375
↓ 1 callers
Function
create_category_index
Creates dictionary of COCO compatible categories keyed by category id. Args: categories: a list of dicts, each of which has the following k
slowfast/utils/ava_evaluation/label_map_util.py:43
↓ 1 callers
Function
crop_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 callers
Function
default_bpe
()
extract_clip/simple_tokenizer.py:11
↓ 1 callers
Function
draw_predictions
Draw prediction for the given task. Args: task (TaskInfo object): task object that contain the necessary information for
slowfast/visualization/async_predictor.py:276
↓ 1 callers
Method
encode
(self, text)
extract_clip/simple_tokenizer.py:121
↓ 1 callers
Method
encode_image
(self, image)
extract_clip/model.py:340
↓ 1 callers
Method
encode_text
(self, text)
extract_clip/model.py:343
↓ 1 callers
Method
epoch_tic
Start to record time.
slowfast/utils/meters.py:798
↓ 1 callers
Method
epoch_toc
Stop to record time.
slowfast/utils/meters.py:804
↓ 1 callers
Function
eval_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:190
↓ 1 callers
Method
finalize_metrics
Calculate and log the final AVA metrics.
slowfast/utils/meters_co.py:185
↓ 1 callers
Function
flip_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 callers
Method
flush
(self)
slowfast/visualization/tensorboard_vis.py:230
↓ 1 callers
Method
forward
(self, image, text)
extract_clip/model.py:358
↓ 1 callers
Method
forward
Perform forwarding, gathering the stats across different process/ GPU group.
slowfast/models/batchnorm_helper.py:118
↓ 1 callers
Method
forward_features
(self, x)
slowfast/models/uniformer.py:417
↓ 1 callers
Method
get
Return a task object in the correct order based on task id if result(s) is available. Otherwise, raise queue.Empty exception.
slowfast/visualization/async_predictor.py:88
↓ 1 callers
Function
get_ava_eval_data
Convert our data format into the data format used in official AVA evaluation.
slowfast/utils/ava_eval_helper.py:251
↓ 1 callers
Function
get_ava_mini_groundtruth
Get the groundtruth annotations corresponding the "subset" of AVA val set. We define the subset to be the frames such that (second % 4 == 0).
slowfast/utils/meters.py:28
↓ 1 callers
Function
get_ava_mini_groundtruth
Get the groundtruth annotations corresponding the "subset" of AVA val set. We define the subset to be the frames such that (second % 4 == 0).
slowfast/utils/meters_co.py:28
↓ 1 callers
Function
get_best_checkpoint
Get the best checkpoint from the checkpointing folder.
slowfast/utils/checkpoint_amp_co.py:78
↓ 1 callers
Function
get_best_checkpoint
Get the best checkpoint from the checkpointing folder.
slowfast/utils/checkpoint_amp.py:78
↓ 1 callers
Method
get_coordinates
Get corner coordinates of boxes. Returns: a list of 4 1-d numpy arrays [y_min, x_min, y_max, x_max]
slowfast/utils/ava_evaluation/np_box_list.py:116
↓ 1 callers
Function
get_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 callers
Function
get_cutmix_bbox
Generates the box coordinates for cutmix. Args: img_shape (tuple): Image shape as tuple lam (float): Cutmix lambda value
slowfast/datasets/mixup.py:90
↓ 1 callers
Function
get_indexing
Parse numpy-like fancy indexing from a string. Args: string (str): string represent the indices to take a subset of from
slowfast/visualization/utils.py:255
↓ 1 callers
Method
get_input_clip
Get input clip from the video/folder of images for a given keyframe index. Args: keyframe_idx (int): index of the
slowfast/visualization/ava_demo_precomputed_boxes.py:91
↓ 1 callers
Function
get_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 callers
Method
get_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 callers
Method
get_output_file
Return a video writer object. Args: path (str): path to the output video file. fps (int or float): frames per
slowfast/visualization/demo_loader.py:100
← previous
next →
201–300 of 872, ranked by callers