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
↓ 1 callers
Method
_list_img_to_frames
(self, img_list)
slowfast/datasets/sth.py:378
↓ 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:45
↓ 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:189
↓ 1 callers
Method
_pick_wrong_preds
Returns a 1D tensor that contains the indices of instances that have wrong predictions, where true labels in in the specified subset.
slowfast/visualization/prediction_vis.py:46
↓ 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:86
↓ 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:63
↓ 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:45
↓ 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:704
↓ 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:14
↓ 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:161
↓ 1 callers
Method
_simclr_precompute_pos_neg_mask_multi
(self)
slowfast/models/contrastive.py:808
↓ 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
Method
_update_history
(self)
slowfast/models/contrastive.py:161
↓ 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
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:332
↓ 1 callers
Method
add_video
Add input to tensorboard SummaryWriter as a video. Args: vid_tensor (tensor): shape of (B, T, C, H, W). Values should lie
slowfast/visualization/tensorboard_vis.py:171
↓ 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:200
↓ 1 callers
Method
aggregate_stats
Synchronize running_mean, and running_var. Call this before eval.
slowfast/models/batchnorm_helper.py:87
↓ 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
Function
assert_and_infer_cfg
(cfg)
slowfast/config/defaults.py:990
↓ 1 callers
Method
backward
(ctx, *grads)
slowfast/utils/distributed.py:275
↓ 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:352
↓ 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
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_trainer
Build training model and its associated tools, including optimizer, dataloaders and meters. Args: cfg (CfgNode): configs. Details
tools/train_net.py:334
↓ 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:394
↓ 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:394
↓ 1 callers
Function
cal_rel_pos_spatial
Decomposed Spatial Relative Positional Embeddings.
slowfast/models/attention.py:67
↓ 1 callers
Function
cal_rel_pos_temporal
Temporal Relative Positional Embeddings.
slowfast/models/attention.py:120
↓ 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:310
↓ 1 callers
Method
clean
Clean up open video files and windows.
slowfast/visualization/demo_loader.py:130
↓ 1 callers
Method
clean
Close Tensorboard writer.
slowfast/visualization/prediction_vis.py:131
↓ 1 callers
Function
color_jitter
Perfrom a color jittering on the input images. The channels of images should be in order BGR. Args: images (tensor): images to pe
slowfast/datasets/transform.py:317
↓ 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:371
↓ 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_3xnxn
(inp, oup, kernel_size=3, stride=3)
slowfast/models/morphmlp_32.py:10
↓ 1 callers
Function
conv_3xnxn
(inp, oup, kernel_size=3, stride=3)
slowfast/models/morphmlp.py:12
↓ 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
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
Method
display
Either display a single frame (BGR image) to a window or write to an output file if output path is provided. Args:
slowfast/visualization/demo_loader.py:115
↓ 1 callers
Method
draw_multiple_text_downward
Draw a list of text labels for some bounding box on the image in downward direction. The next text label will be below the previous o
slowfast/visualization/video_visualizer.py:237
↓ 1 callers
Method
draw_multiple_text_upward
Draw a list of text labels for some bounding box on the image in upward direction. The next text label will be on top of the previous
slowfast/visualization/video_visualizer.py:184
↓ 1 callers
Method
draw_one_frame
Draw labels and bouding boxes for one image. By default, predicted labels are drawn in the top left corner of the image or correspond
slowfast/visualization/video_visualizer.py:404
↓ 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
draw_video
Draw predicted and ground-truth (if provided) results on the video/folder of images. Write the visualized result to a video output fi
slowfast/visualization/ava_demo_precomputed_boxes.py:193
↓ 1 callers
Method
epoch_tic
Start to record time.
slowfast/utils/meters.py:788
↓ 1 callers
Method
epoch_toc
Stop to record time.
slowfast/utils/meters.py:794
↓ 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:189
↓ 1 callers
Function
evaluate_ava
Run AVA evaluation given numpy arrays.
slowfast/utils/ava_eval_helper.py:137
↓ 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:227
↓ 1 callers
Method
forward_features
(self, x)
slowfast/models/morphmlp_32.py:328
↓ 1 callers
Method
forward_features
(self, x)
slowfast/models/morphmlp.py:330
↓ 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
Method
get
(self, ind, time, interp=False)
slowfast/models/contrastive.py:1059
↓ 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
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
↓ 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:211
↓ 1 callers
Method
get_output_file
Return a video writer object. Args: path (str): path to the output video file.
slowfast/visualization/ava_demo_precomputed_boxes.py:77
↓ 1 callers
Method
get_params
Get parameters for ``crop`` for a random sized crop. Args: img (PIL Image): Image to be cropped. scale (tuple): range
slowfast/datasets/transform.py:730
↓ 1 callers
Function
get_path_to_checkpoint
Get the full path to a checkpoint file. Args: path_to_job (string): the path to the folder of the current job. epoch (int): t
slowfast/utils/checkpoint.py:46
↓ 1 callers
Function
get_path_to_checkpoint
Get the full path to a checkpoint file. Args: path_to_job (string): the path to the folder of the current job. epoch (int): t
slowfast/utils/checkpoint_amp.py:46
↓ 1 callers
Method
get_predictions
Predict and append prediction results to each box in each keyframe in `self.pred_boxes` dictionary.
slowfast/visualization/ava_demo_precomputed_boxes.py:124
↓ 1 callers
Method
get_pretrained_model
(self, cfg)
slowfast/models/morphmlp.py:320
↓ 1 callers
Function
get_rank
Get the rank of the current process.
slowfast/utils/distributed.py:121
↓ 1 callers
Method
get_seq_frames
Given the video index, return the list of sampled frame indexes. Args: index (int): the video index. Returns:
slowfast/datasets/ssv2.py:159
↓ 1 callers
Method
get_seq_frames
Given the video index, return the list of indexs of sampled frames. Args: index (int): the video index. Returns:
slowfast/datasets/charades.py:113
↓ 1 callers
Function
get_sequence
Sample frames among the corresponding clip. Args: center_idx (int): center frame idx for current clip half_len (int): half o
slowfast/datasets/utils.py:51
↓ 1 callers
Function
get_stem_func
Retrieves the stem module by name.
slowfast/models/stem_helper.py:9
↓ 1 callers
Function
get_step_index
Retrieves the lr step index for the given epoch. Args: cfg (CfgNode): configs. Details can be found in slowfast/config/de
slowfast/utils/lr_policy.py:69
↓ 1 callers
Function
get_trans_func
Retrieves the transformation module by name.
slowfast/models/resnet_helper.py:14
↓ 1 callers
Method
get_weights
Returns weights from registered layers. Returns: weights (Python dictionary): a dictionary of the pair {layer
slowfast/visualization/utils.py:236
↓ 1 callers
Function
gpu_mem_usage
Compute the GPU memory usage for the current device (GB).
slowfast/utils/misc.py:53
↓ 1 callers
Function
inflate_weight
Inflate 2D model weights in state_dict_2d to the 3D model weights in state_dict_3d. The details can be found in: Joao Carreira, and Andre
slowfast/utils/checkpoint.py:141
↓ 1 callers
Function
inflate_weight
Inflate 2D model weights in state_dict_2d to the 3D model weights in state_dict_3d. The details can be found in: Joao Carreira, and Andre
slowfast/utils/checkpoint_amp.py:141
↓ 1 callers
Method
init_multigrid
Update cfg based on multigrid settings. Args: cfg (configs): configs that contains training and multigrid specific
slowfast/utils/multigrid.py:18
↓ 1 callers
Function
ioa
Computes pairwise intersection-over-area between box and mask collections. Intersection-over-area (ioa) between two masks mask1 and mask2 is defi
slowfast/utils/ava_evaluation/np_box_mask_list_ops.py:99
← previous
next →
201–300 of 764, ranked by callers