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
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_list_ops.py:84
↓ 1 callers
Function
load_boxes_labels
Loading boxes and labels from AVA bounding boxes csv files. Args: cfg (CfgNode): config. video_name (str): name of the given
slowfast/visualization/ava_demo_precomputed_boxes.py:390
↓ 1 callers
Method
load_image
Prepares the image for network input with format of CHW RGB float
slowfast/datasets/imagenet.py:76
↓ 1 callers
Function
main
()
tools/benchmark.py:15
↓ 1 callers
Function
main
Main function to spawn the train and test process.
tools/run_net.py:13
↓ 1 callers
Method
median_epoch_time
Calculate the median epoch time among the recorded epochs.
slowfast/utils/meters.py:817
↓ 1 callers
Function
merge_pred_gt_boxes
Merge data from precomputed and ground-truth boxes dictionaries. Args: pred_dict (dict): a dict which maps from `frame_idx` to a list
slowfast/visualization/ava_demo_precomputed_boxes.py:362
↓ 1 callers
Function
mixup_target
This function converts target class indices to one-hot vectors, given the number of classes. Args: targets (loader): Class labels
slowfast/datasets/mixup.py:40
↓ 1 callers
Method
momentum_anneal_cosine
(self, epoch_exact)
slowfast/models/contrastive.py:254
↓ 1 callers
Method
no_weight_decay
(self)
slowfast/models/video_model_builder.py:1037
↓ 1 callers
Function
non_max_suppression
Non maximum suppression. This op greedily selects a subset of detection bounding boxes, pruning away boxes that have high IOU (intersection o
slowfast/utils/ava_evaluation/np_box_mask_list_ops.py:174
↓ 1 callers
Function
non_max_suppression
Non maximum suppression. This op greedily selects a subset of detection bounding boxes, pruning away boxes that have high IOU (intersection o
slowfast/utils/ava_evaluation/np_box_list_ops.py:167
↓ 1 callers
Function
normal_to_sub_bn
Convert BN parameters to Sub-BN parameters if model contains Sub-BNs. Args: checkpoint_sd (OrderedDict): source dict of parameters.
slowfast/utils/checkpoint.py:414
↓ 1 callers
Function
normal_to_sub_bn
Convert BN parameters to Sub-BN parameters if model contains Sub-BNs. Args: checkpoint_sd (OrderedDict): source dict of parameters.
slowfast/utils/checkpoint_amp.py:414
↓ 1 callers
Function
pad_image
Pad the given image with the size of pad_size. Args: image (array): image to pad. pad_size (int): size to pad. order
slowfast/datasets/cv2_transform.py:319
↓ 1 callers
Function
params_count
Compute the number of parameters. Args: model (model): model to count the number of parameters.
slowfast/utils/misc.py:36
↓ 1 callers
Function
perform_test
For classification: Perform mutli-view testing that uniformly samples N clips from a video along its temporal axis. For each clip, it tak
tools/test_net.py:25
↓ 1 callers
Function
perform_wrong_prediction_vis
Visualize video inputs with wrong predictions on Tensorboard. Args: vis_loader (loader): video visualization loader. model (m
tools/visualization.py:190
↓ 1 callers
Function
plot_hist
Given all predictions and all true labels, plot histograms of top-k most frequently predicted classes for each true class. Args:
slowfast/visualization/tensorboard_vis.py:280
↓ 1 callers
Function
print_schedule
Log schedule.
slowfast/utils/multigrid.py:215
↓ 1 callers
Method
print_summary
(self)
slowfast/datasets/ava_dataset.py:87
↓ 1 callers
Function
process_layer_index_data
Extract layer names and numpy-like fancy indexing from a string. Args: layer_ls (list of strs): list of strings containing data about
slowfast/visualization/utils.py:278
↓ 1 callers
Method
put
Add the new task to task queue. Args: task (TaskInfo object): task object that contain the necessary info
slowfast/visualization/async_predictor.py:78
↓ 1 callers
Method
put
Put task into task queue for prediction and visualization. Args: task (TaskInfo object): task object that contain
slowfast/visualization/async_predictor.py:254
↓ 1 callers
Function
pyav_decode
Convert the video from its original fps to the target_fps. If the video support selective decoding (contain decoding information in the video
slowfast/datasets/decoder.py:229
↓ 1 callers
Function
pyav_decode_stream
Decode the video with PyAV decoder. Args: container (container): PyAV container. start_pts (int): the starting Presentation T
slowfast/datasets/decoder.py:72
↓ 1 callers
Function
rand_augment_ops
(magnitude=10, hparams=None, transforms=None)
slowfast/datasets/rand_augment.py:455
↓ 1 callers
Function
rand_bbox
Generates a random square bbox based on lambda value. Args: img_shape (tuple): Image shape as tuple lam (float): Cutmix lamb
slowfast/datasets/mixup.py:67
↓ 1 callers
Method
reset
Reset the metric.
slowfast/utils/meters.py:287
↓ 1 callers
Function
run_demo
Run demo visualization. Args: cfg (CfgNode): configs. Details can be found in slowfast/config/defaults.py frame_p
tools/demo_net.py:21
↓ 1 callers
Function
run_visualization
Run model visualization (weights, activations and model inputs) and visualize them on Tensorboard. Args: vis_loader (loader): vid
tools/visualization.py:29
↓ 1 callers
Function
saturation
Perform color saturation on the given image. Args: var (float): variance. image (array): image to perform color saturation.
slowfast/datasets/cv2_transform.py:654
↓ 1 callers
Function
saturation_jitter
Perfrom saturation jittering on the input images. The channels of images should be in order BGR. Args: var (float): jitter ratio
slowfast/datasets/transform.py:391
↓ 1 callers
Function
saturation_list
Perform color saturation on the list of given images. Args: var (float): variance. images (list): list of images to perform c
slowfast/datasets/cv2_transform.py:697
↓ 1 callers
Function
scale
Scale box coordinates in x and y dimensions. Args: boxlist: BoxList holding N boxes y_scale: float x_scale: float Returns:
slowfast/utils/ava_evaluation/np_box_list_ops.py:321
↓ 1 callers
Function
scale_boxes
Scale the short side of the box to size. Args: size (int): size to scale the image. boxes (ndarray): bounding boxes to peform
slowfast/datasets/cv2_transform.py:106
↓ 1 callers
Function
sec_to_frame
Convert time index (in second) to frame index. 0: 900 30: 901
slowfast/datasets/ava_helper.py:131
↓ 1 callers
Function
sec_to_frameidx
(sec)
slowfast/visualization/ava_demo_precomputed_boxes.py:408
↓ 1 callers
Function
sort_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_mask_list_ops.py:151
↓ 1 callers
Function
sub_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.py:353
↓ 1 callers
Function
sub_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:353
↓ 1 callers
Function
temporal_difference
( frames, use_grayscale=False, absolute=False, )
slowfast/datasets/transform.py:903
↓ 1 callers
Function
temporal_sampling
Given the start and end frame index, sample num_samples frames between the start and end with equal interval. Args: frames (tenso
slowfast/datasets/decoder.py:11
↓ 1 callers
Function
tensor_normalize
Normalize a given tensor by subtracting the mean and dividing the std. Args: tensor (tensor): tensor to normalize. mean (tens
slowfast/datasets/utils.py:276
↓ 1 callers
Function
torchvision_decode
If video_meta is not empty, perform temporal selective decoding to sample a clip from the video with TorchVision decoder. If video_meta is em
slowfast/datasets/decoder.py:114
↓ 1 callers
Function
train_epoch
Perform the video training for one epoch. Args: train_loader (loader): video training loader. model (model): the video model
tools/train_net.py:28
↓ 1 callers
Function
transform
(x, y, matrix)
slowfast/datasets/rand_augment.py:128
↓ 1 callers
Function
transforms_imagenet_train
If separate==True, the transforms are returned as a tuple of 3 separate transforms for use in a mixing dataset that passes * all data th
slowfast/datasets/transform.py:802
↓ 1 callers
Method
update_predictions
Update predictions and labels. Args: preds (tensor): model output predictions. labels (tensor): labels.
slowfast/utils/meters.py:677
↓ 1 callers
Method
visualize_vid
Draw predicted labels on video inputs and visualize all incorrectly classified videos in the current batch. Args:
slowfast/visualization/prediction_vis.py:72
Function
CHW2HWC
Transpose the dimension from `channel` x `height` x `width` to `height` x `width` x `channel`. Args: image (array): image to
slowfast/datasets/cv2_transform.py:216
Function
HWC2CHW
Transpose the dimension from `height` x `width` x `channel` to `channel` x `height` x `width`. Args: image (array): image to
slowfast/datasets/cv2_transform.py:228
Function
Ptvcharades
Construct PyTorchVideo Charades video loader. Load Charades data (frame paths, labels, etc. ) to Charades Dataset object. The dataset cou
slowfast/datasets/ptv_datasets.py:312
Function
Ptvkinetics
Construct the Kinetics video loader with a given csv file. The format of the csv file is: ``` path_to_video_1 label_1 path_to_vid
slowfast/datasets/ptv_datasets.py:143
Function
Ptvssv2
Construct PyTorchVideo Something-Something v2 SSv2 video loader. Load SSv2 data (frame paths, labels, etc. ) to SSv2 Dataset object. The
slowfast/datasets/ptv_datasets.py:455
Method
__call__
(self, task)
slowfast/visualization/async_predictor.py:106
Method
__call__
How many results are ready to be returned.
slowfast/visualization/async_predictor.py:213
Method
__call__
Returns the prediction results for the current task. Args: task (TaskInfo object): task object that contain
slowfast/visualization/predictor.py:49
Method
__call__
Return bounding boxes predictions as a tensor. Args: task (TaskInfo object): task object that contain the
slowfast/visualization/predictor.py:189
Method
__call__
Visualize the localization maps on their corresponding inputs as heatmap, using Grad-CAM. Args: inputs (list of t
slowfast/visualization/gradcam_utils.py:142
Method
__call__
(self)
slowfast/visualization/ava_demo_precomputed_boxes.py:313
Method
__call__
Args: img (PIL Image): Image to be cropped and resized. Returns: PIL Image: Randomly cropped and resized imag
slowfast/datasets/transform.py:770
Method
__call__
(self, x)
slowfast/datasets/transform.py:1009
Method
__call__
(self, frames)
slowfast/datasets/transform.py:1025
Method
__call__
(self, x, target)
slowfast/datasets/mixup.py:183
Method
__call__
(self, img_list)
slowfast/datasets/rand_augment.py:366
Method
__call__
(self, img)
slowfast/datasets/rand_augment.py:470
Method
__call__
(self, input)
slowfast/datasets/random_erasing.py:158
Method
__getitem__
Given the video index, return the list of frames, label, and video index if the video can be fetched and decoded successfully, otherw
slowfast/datasets/kinetics.py:129
Method
__getitem__
Generate corresponding clips, boxes, labels and metadata for given idx. Args: idx (int): the video index provided by the
slowfast/datasets/ava_dataset.py:352
Method
__getitem__
Given the video index, return the list of frames, label, and video index if the video frames can be fetched. Args:
slowfast/datasets/ssv2.py:182
Method
__getitem__
(self, index)
slowfast/datasets/imagenet.py:183
Method
__getitem__
Given the video index, return the list of frames, label, and video index if the video frames can be fetched. Args:
slowfast/datasets/charades.py:154
Method
__getitem__
Given the video index, return the list of frames, label, and video index if the video frames can be fetched. Args:
slowfast/datasets/sth.py:170
Method
__init__
overall_iters (int): the overall number of iterations of one epoch. cfg (CfgNode): configs. mode (str): `train`, `val`, or `t
slowfast/utils/meters.py:51
Method
__init__
Construct tensors to store the predictions and labels. Expect to get num_clips predictions from each video, and calculate the metrics
slowfast/utils/meters.py:239
Method
__init__
Args: window_size (int): size of the max length of the deque.
slowfast/utils/meters.py:414
Method
__init__
Args: epoch_iters (int): the overall number of iterations of one epoch. cfg (CfgNode): configs.
slowfast/utils/meters.py:463
Method
__init__
Args: max_iter (int): the max number of iteration of the current epoch. cfg (CfgNode): configs.
slowfast/utils/meters.py:607
Method
__init__
(self)
slowfast/utils/meters.py:776
Method
__init__
Constructs box collection. Args: data: a numpy array of shape [N, 4] representing box coordinates Raises: ValueE
slowfast/utils/ava_evaluation/np_box_list.py:39
Method
__init__
Initialized PerImageEvaluation by evaluation parameters. Args: num_groundtruth_classes: Number of ground truth object classes
slowfast/utils/ava_evaluation/per_image_evaluation.py:42
Method
__init__
Constructs box collection. Args: box_data: a numpy array of shape [N, 4] representing box coordinates mask_data: a numpy
slowfast/utils/ava_evaluation/np_box_mask_list.py:37
Method
__init__
Constructor. Args: categories: A list of dicts, each of which has the following keys - 'id': (required) an integer id u
slowfast/utils/ava_evaluation/object_detection_evaluation.py:110
Method
__init__
(self, categories, matching_iou_threshold=0.5)
slowfast/utils/ava_evaluation/object_detection_evaluation.py:360
Method
__init__
(self, categories, matching_iou_threshold=0.5)
slowfast/utils/ava_evaluation/object_detection_evaluation.py:384
Method
__init__
(self, categories, matching_iou_threshold=0.5)
slowfast/utils/ava_evaluation/object_detection_evaluation.py:397
Method
__init__
(self, categories, matching_iou_threshold=0.5)
slowfast/utils/ava_evaluation/object_detection_evaluation.py:422
Method
__init__
Constructor. Args: categories: A list of dicts, each of which has the following keys - 'id': (required) an integer id u
slowfast/utils/ava_evaluation/object_detection_evaluation.py:440
Method
__init__
( self, num_groundtruth_classes, matching_iou_threshold=0.5, nms_iou_threshold
slowfast/utils/ava_evaluation/object_detection_evaluation.py:537
Method
__init__
Predict Worker for Detectron2. Args: cfg (CfgNode): configs. Details can be found in slow
slowfast/visualization/async_predictor.py:19
Method
__init__
(self, cfg, result_queue=None)
slowfast/visualization/async_predictor.py:54
Method
__init__
Visualization Worker for AsyncVis. Args: video_vis (VideoVisualizer object): object with tools for visualizat
slowfast/visualization/async_predictor.py:128
Method
__init__
Args: cfg (CfgNode): configs. Details can be found in slowfast/config/defaults.py async_vis (AsyncVis
slowfast/visualization/async_predictor.py:242
Method
__init__
See https://github.com/facebookresearch/detectron2/blob/master/detectron2/utils/visualizer.py for more details. Args:
slowfast/visualization/video_visualizer.py:46
Method
__init__
Args: num_classes (int): total number of classes. class_names_path (str): path to json file that maps class names to
slowfast/visualization/video_visualizer.py:350
Method
__init__
Args: cfg (CfgNode): configs. Details can be found in slowfast/config/defaults.py
slowfast/visualization/demo_loader.py:22
Method
__init__
Args: cfg (CfgNode): configs. Details can be found in slowfast/config/defaults.py
slowfast/visualization/demo_loader.py:153
Method
__init__
Args: cfg (CfgNode): configs. Details can be found in slowfast/config/defaults.py
slowfast/visualization/tensorboard_vis.py:25
Method
__init__
Args: cfg (CfgNode): configs. Details can be found in slowfast/config/defaults.py gpu_id (Optional[in
slowfast/visualization/predictor.py:25
← previous
next →
301–400 of 764, ranked by callers