Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MTLab/MorphMLP
/ functions
Functions
764 in github.com/MTLab/MorphMLP
⨍
Functions
764
◇
Types & classes
115
Method
forward
(self, x)
slowfast/models/head_helper.py:556
Method
forward
(self, x)
slowfast/models/operators.py:53
Method
forward
(self, x)
slowfast/models/morphmlp_32.py:27
Method
forward
(self, x)
slowfast/models/morphmlp_32.py:49
Method
forward
(self, x)
slowfast/models/morphmlp_32.py:89
Method
forward
(self, x)
slowfast/models/morphmlp_32.py:130
Method
forward
(self, x)
slowfast/models/morphmlp_32.py:165
Method
forward
(self, x)
slowfast/models/morphmlp_32.py:184
Method
forward
(self, x)
slowfast/models/morphmlp_32.py:201
Method
forward
(self, x)
slowfast/models/morphmlp_32.py:348
Method
forward
(self, x)
slowfast/models/morphmlp.py:29
Method
forward
(self, x)
slowfast/models/morphmlp.py:51
Method
forward
(self, x)
slowfast/models/morphmlp.py:91
Method
forward
(self, x)
slowfast/models/morphmlp.py:129
Method
forward
(self, x)
slowfast/models/morphmlp.py:164
Method
forward
(self, x)
slowfast/models/morphmlp.py:183
Method
forward
(self, x)
slowfast/models/morphmlp.py:200
Method
forward
(self, x)
slowfast/models/morphmlp.py:350
Function
frozen_bn_stats
Set all the bn layers to eval mode. Args: model (model): model to set bn layers to eval mode.
slowfast/utils/misc.py:254
Method
get
Get the visualized clips if any.
slowfast/visualization/predictor.py:146
Method
get_activations
(module, input, output)
slowfast/visualization/gradcam_utils.py:56
Function
get_confusion_matrix
Calculate confusion matrix on the provided preds and labels. Args: preds (tensor or lists of tensors): predictions. Each tensor is in
slowfast/visualization/utils.py:16
Function
get_epoch_lr
Retrieves the lr for the given epoch (as specified by the lr policy). Args: cfg (config): configs of hyper-parameters of ADAM, includ
slowfast/models/optimizer.py:101
Method
get_fn
(self)
slowfast/visualization/demo_loader.py:295
Method
get_global_avg
Calculate the global mean value.
slowfast/utils/meters.py:451
Method
get_gradients
(module, grad_input, grad_output)
slowfast/visualization/gradcam_utils.py:53
Function
get_keyframe_data
Getting keyframe indices, boxes and labels in the dataset. Args: boxes_and_labels (list[dict]): a list which maps from video_idx to
slowfast/datasets/ava_helper.py:117
Function
get_label_map_dict
Reads a label map and returns a dictionary of label names to id. Args: label_map_path: path to label_map. use_display_name: whether t
slowfast/utils/ava_evaluation/label_map_util.py:148
Function
get_loss_func
Retrieve the loss given the loss name. Args (int): loss_name: the name of the loss to use.
slowfast/models/losses.py:38
Function
get_lr_at_epoch
Retrieve the learning rate of the current epoch with the option to perform warm up in the beginning of the training stage. Args:
slowfast/utils/lr_policy.py:9
Function
get_max_label_map_index
Get maximum index in label map. Args: label_map: a StringIntLabelMapProto Returns: an integer
slowfast/utils/ava_evaluation/label_map_util.py:62
Function
get_num_boxes_used
Get total number of used boxes. Args: keyframe_indices (list): a list of indices of the keyframes. keyframe_boxes_and_labels
slowfast/datasets/ava_helper.py:163
Method
get_pretrained_model
(self, cfg)
slowfast/models/morphmlp_32.py:318
Function
get_random_sampling_rate
When multigrid training uses a fewer number of frames, we randomly increase the sampling rate so that some clips cover the original span.
slowfast/datasets/utils.py:298
Function
get_video_container
Given the path to the video, return the pyav video container. Args: path_to_vid (str): path to the video. multi_thread_decode
slowfast/datasets/video_container.py:9
Method
get_win_avg
Calculate the current average value of the deque.
slowfast/utils/meters.py:445
Method
hook_fn
(module, input, output)
slowfast/visualization/utils.py:198
Function
horizontal_flip
Perform horizontal flip on the given images and corresponding boxes. Args: prob (float): probility to flip the images. images
slowfast/datasets/transform.py:159
Function
horizontal_flip
Horizontally flip the image. Args: prob (float): probability to flip. image (array): image to pad. order (str): order
slowfast/datasets/cv2_transform.py:344
Function
horizontal_flip_list
Horizontally flip the list of image and optional boxes. Args: prob (float): probability to flip. image (list): ilist of image
slowfast/datasets/cv2_transform.py:134
Method
init_knn_labels
(self, train_loader)
slowfast/models/contrastive.py:145
Function
init_process_group
Initializes the default process group. Args: local_rank (int): the rank on the current local machine. local_world_size (int):
slowfast/utils/distributed.py:63
Function
init_weights
Performs ResNet style weight initialization. Args: fc_init_std (float): the expected standard deviation for fc layer. zero_in
slowfast/utils/weight_init_helper.py:10
Function
intersection
Compute pairwise intersection areas between masks. Args: box_mask_list1: BoxMaskList holding N boxes and masks box_mask_list2: BoxMas
slowfast/utils/ava_evaluation/np_box_mask_list_ops.py:69
Function
intersection
Compute pairwise intersection areas between boxes. Args: boxlist1: BoxList holding N boxes boxlist2: BoxList holding M boxes Ret
slowfast/utils/ava_evaluation/np_box_list_ops.py:58
Function
invert
(img, **__)
slowfast/datasets/rand_augment.py:148
Function
ioa
Computes pairwise intersection-over-area between box collections. Intersection-over-area (ioa) between two boxes box1 and box2 is defined as
slowfast/utils/ava_evaluation/np_box_ops.py:92
Function
ioa
Computes pairwise intersection-over-area between box collections. Intersection-over-area (ioa) between two masks, mask1 and mask2 is defined as
slowfast/utils/ava_evaluation/np_mask_ops.py:107
Function
iou
Computes pairwise intersection-over-union between box and mask collections. Args: box_mask_list1: BoxMaskList holding N boxes and masks
slowfast/utils/ava_evaluation/np_box_mask_list_ops.py:84
Function
iou
Computes pairwise intersection-over-union between box collections. Args: boxes1: a numpy array with shape [N, 4] holding N boxes. box
slowfast/utils/ava_evaluation/np_box_ops.py:71
Function
iou
Computes pairwise intersection-over-union between box collections. Args: boxlist1: BoxList holding N boxes boxlist2: BoxList holding
slowfast/utils/ava_evaluation/np_box_list_ops.py:71
Function
iou
Computes pairwise intersection-over-union between mask collections. Args: masks1: a numpy array with shape [N, height, width] holding N mas
slowfast/utils/ava_evaluation/np_mask_ops.py:79
Function
is_checkpoint_epoch
Determine if a checkpoint should be saved on current epoch. Args: cfg (CfgNode): configs to save. cur_epoch (int): current nu
slowfast/utils/checkpoint.py:84
Function
is_checkpoint_epoch
Determine if a checkpoint should be saved on current epoch. Args: cfg (CfgNode): configs to save. cur_epoch (int): current nu
slowfast/utils/checkpoint_amp.py:84
Function
is_eval_epoch
Determine if the model should be evaluated at the current epoch. Args: cfg (CfgNode): configs. Details can be found in sl
slowfast/utils/misc.py:200
Function
is_master_proc
Determines if the current process is the master process.
slowfast/utils/distributed.py:101
Function
is_root_proc
Determines if the current process is the root process.
slowfast/utils/distributed.py:111
Method
iter_tic
Start to record time.
slowfast/utils/meters.py:348
Method
iter_tic
Start to record time.
slowfast/utils/meters.py:500
Method
iter_tic
Start to record time.
slowfast/utils/meters.py:645
Method
iter_toc
Stop to record time.
slowfast/utils/meters.py:355
Method
iter_toc
Stop to record time.
slowfast/utils/meters.py:507
Method
iter_toc
Stop to record time.
slowfast/utils/meters.py:652
Method
join
(self)
slowfast/visualization/demo_loader.py:350
Function
l2_loss
(x, y)
slowfast/models/contrastive.py:921
Function
lighting
Perform AlexNet-style PCA jitter on the given image. Args: image (array): list of images to perform lighting jitter. alphastd
slowfast/datasets/cv2_transform.py:556
Function
lighting_jitter
Perform AlexNet-style PCA jitter on the given images. Args: images (tensor): images to perform lighting jitter. Dimension is
slowfast/datasets/transform.py:410
Function
lighting_list
Perform AlexNet-style PCA jitter on the given list of images. Args: images (list): list of images to perform lighting jitter.
slowfast/datasets/cv2_transform.py:273
Function
load_boxes_and_labels
Loading boxes and labels from csv files. Args: cfg (CfgNode): config. mode (str): 'train', 'val', or 'test' mode. Return
slowfast/datasets/ava_helper.py:69
Function
load_image_lists
Load image paths and labels from a "frame list". Each line of the frame list contains: `original_vido_id video_id frame_id path labels`
slowfast/datasets/utils.py:231
Function
load_image_lists
Loading image paths from corresponding files. Args: cfg (CfgNode): config. is_train (bool): if it is training dataset or not
slowfast/datasets/ava_helper.py:16
Function
load_test_checkpoint
Loading checkpoint logic for testing.
slowfast/utils/checkpoint.py:455
Function
load_test_checkpoint
Loading checkpoint logic for testing.
slowfast/utils/checkpoint_amp.py:455
Function
load_train_checkpoint
Loading checkpoint logic for training.
slowfast/utils/checkpoint.py:495
Function
load_train_checkpoint
Loading checkpoint logic for training.
slowfast/utils/checkpoint_amp.py:495
Function
loader_worker_init_fn
Create init function passed to pytorch data loader. Args: dataset (torch.utils.data.Dataset): the given dataset.
slowfast/datasets/utils.py:344
Method
log_epoch_stats
Log the stats of the current epoch. Args: cur_epoch (int): the number of current epoch.
slowfast/utils/meters.py:571
Method
log_epoch_stats
Log the stats of the current epoch. Args: cur_epoch (int): the number of current epoch.
slowfast/utils/meters.py:712
Method
log_iter_stats
Log the stats. Args: cur_iter (int): the current iteration of testing.
slowfast/utils/meters.py:332
Method
log_iter_stats
log the stats of the current iteration. Args: cur_epoch (int): the number of current epoch. cur_iter (int): t
slowfast/utils/meters.py:541
Method
log_iter_stats
log the stats of the current iteration. Args: cur_epoch (int): the number of current epoch. cur_iter (int): t
slowfast/utils/meters.py:688
Function
log_json_stats
Logs json stats. Args: stats (dict): a dictionary of statistical information to log.
slowfast/utils/logging.py:87
Function
log_model_info
Log info, includes number of parameters, gpu usage, gflops and activation count. The model info is computed when the model is in validati
slowfast/utils/misc.py:172
Function
lr_func_cosine
Retrieve the learning rate to specified values at specified epoch with the cosine learning rate schedule. Details can be found in: Ilya L
slowfast/utils/lr_policy.py:30
Function
lr_func_steps_with_relative_lrs
Retrieve the learning rate to specified values at specified epoch with the steps with relative learning rate schedule. Args: cfg
slowfast/utils/lr_policy.py:56
Function
make_checkpoint_dir
Creates the checkpoint directory (if not present already). Args: path_to_job (string): the path to the folder of the current job.
slowfast/utils/checkpoint.py:21
Function
make_checkpoint_dir
Creates the checkpoint directory (if not present already). Args: path_to_job (string): the path to the folder of the current job.
slowfast/utils/checkpoint_amp.py:21
Function
multi_class_non_max_suppression
Multi-class version of non maximum suppression. This op greedily selects a subset of detection bounding boxes, pruning away boxes that have h
slowfast/utils/ava_evaluation/np_box_mask_list_ops.py:255
Function
multi_class_non_max_suppression
Multi-class version of non maximum suppression. This op greedily selects a subset of detection bounding boxes, pruning away boxes that have h
slowfast/utils/ava_evaluation/np_box_list_ops.py:242
Function
multiple_samples_collate
Collate function for repeated augmentation. Each instance in the batch has more than one sample. Args: batch (tuple or list): dat
slowfast/datasets/loader.py:20
Method
num_videos
Returns: (int): the number of videos in the dataset.
slowfast/datasets/kinetics.py:403
Method
num_videos
Returns: (int): the number of videos in the dataset.
slowfast/datasets/ava_dataset.py:106
Method
num_videos
Returns: (int): the number of videos in the dataset.
slowfast/datasets/ssv2.py:280
Method
num_videos
Returns: (int): the number of clips in total in the dataset.
slowfast/datasets/ptv_datasets.py:83
Method
num_videos
Returns: (int): the number of videos in the dataset.
slowfast/datasets/charades.py:257
Method
num_videos
Returns: (int): the number of videos in the dataset.
slowfast/datasets/sth.py:390
Function
plot_confusion_matrix
A function to create a colored and labeled confusion matrix matplotlib figure given true labels and preds. Args: cmtx (ndarray):
slowfast/visualization/utils.py:48
Function
plot_input
Plot the input tensor with the optional bounding box and save it to disk. Args: tensor (tensor): a tensor with shape of `NxCxHxW`.
slowfast/utils/misc.py:224
Function
plot_topk_histogram
Plot histogram of top-k value from the given array. Args: tag (str): histogram title. array (tensor): a tensor to draw top k
slowfast/visualization/utils.py:92
Function
posterize
(img, bits_to_keep, **__)
slowfast/datasets/rand_augment.py:175
← previous
next →
601–700 of 764, ranked by callers