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
Function
print_pass
(*objects, sep=" ", end="\n", file=sys.stdout, flush=False)
slowfast/utils/logging.py:24
Function
process_charades_label
Process the video label for Charades dataset. Use video-level label for training mode, otherwise use clip-level label. Then convert the label
slowfast/datasets/ptv_datasets.py:275
Function
prune_non_overlapping_boxes
Prunes the boxes in boxlist1 that overlap less than thresh with boxlist2. For each box in boxlist1, we want its IOA to be more than minoverlap wi
slowfast/utils/ava_evaluation/np_box_list_ops.py:385
Function
prune_non_overlapping_masks
Prunes the boxes in list1 that overlap less than thresh with list2. For each mask in box_mask_list1, we want its IOA to be more than minoverlap
slowfast/utils/ava_evaluation/np_box_mask_list_ops.py:337
Function
prune_outside_window
Prunes bounding boxes that fall outside a given window. This function prunes bounding boxes that even partially fall outside the given window
slowfast/utils/ava_evaluation/np_box_list_ops.py:410
Method
put
Make prediction and put the results in `async_vis` task queue. Args: task (TaskInfo object): task object that contain
slowfast/visualization/predictor.py:135
Method
put_fn
Grabbing frames from VideoCapture.
slowfast/visualization/demo_loader.py:229
Function
random_crop
Perform random spatial crop on the given images and corresponding boxes. Args: images (tensor): images to perform random crop. The di
slowfast/datasets/transform.py:123
Function
random_crop_list
Perform random crop on a list of images. Args: images (list): list of images to perform random crop. size (int): size to crop
slowfast/datasets/cv2_transform.py:394
Function
random_resized_crop
Crop the given images to random size and aspect ratio. A crop of random size (default: of 0.08 to 1.0) of the original size and a random aspe
slowfast/datasets/transform.py:544
Function
random_resized_crop_with_shift
This is similar to random_resized_crop. However, it samples two different boxes (for cropping) for the first and last frame. It then linearly
slowfast/datasets/transform.py:579
Function
random_scale_jitter
Perform ResNet style random scale jittering: randomly select the scale from [1/max_size, 1/min_size]. Args: image (array): im
slowfast/datasets/cv2_transform.py:477
Function
random_scale_jitter_list
Perform ResNet style random scale jittering on a list of image: randomly select the scale from [1/max_size, 1/min_size]. Note that all th
slowfast/datasets/cv2_transform.py:495
Function
random_short_side_scale_jitter
Perform a spatial short scale jittering on the given images and corresponding boxes. Args: images (tensor): images to perform sca
slowfast/datasets/transform.py:47
Function
random_short_side_scale_jitter_list
Perform a spatial short scale jittering on the given images and corresponding boxes. Args: images (list): list of images to perfo
slowfast/datasets/cv2_transform.py:29
Function
random_sized_crop
Perform random sized cropping on the given image. Random crop with size 8% - 100% image area and aspect ratio in [3/4, 4/3]. Args:
slowfast/datasets/cv2_transform.py:513
Function
random_sized_crop_img
Performs Inception-style cropping (used for training).
slowfast/datasets/transform.py:660
Function
random_sized_crop_list
Perform random sized cropping on the given list of images. Random crop with size 8% - 100% image area and aspect ratio in [3/4, 4/3].
slowfast/datasets/cv2_transform.py:582
Method
reset
Reset the deque.
slowfast/utils/meters.py:423
Method
reset
Reset the Meter.
slowfast/utils/meters.py:487
Method
reset
Reset the Meter.
slowfast/utils/meters.py:632
Method
reset
Reset the epoch timer.
slowfast/utils/meters.py:781
Method
result_available
How many results are ready to be returned.
slowfast/visualization/async_predictor.py:115
Method
result_available
(self)
slowfast/visualization/async_predictor.py:225
Function
retry_load_images
This function is to load images with support of retrying for failed load. Args: image_paths (list): paths of images needed to be loa
slowfast/datasets/utils.py:20
Function
revert_scaled_boxes
Revert scaled input boxes to match the original image size. Args: size (int): size of the cropped image. boxes (array): shape
slowfast/datasets/cv2_transform.py:783
Function
revert_tensor_normalize
Revert normalization for a given tensor by multiplying by the std and adding the mean. Args: tensor (tensor): tensor to revert normal
slowfast/datasets/utils.py:310
Function
rgb2bgr
Convert clip frames from RGB mode to BRG mode. Args: x (Tensor): A tensor of the clip's RGB frames with shape: (channel,
slowfast/datasets/ptv_datasets.py:298
Function
rotate
(img, degrees, **kwargs)
slowfast/datasets/rand_augment.py:110
Function
run
Runs a function from a child process. Args: local_rank (int): rank of the current process on the current machine. num_proc (i
slowfast/utils/multiprocessing.py:9
Method
run
Run prediction asynchronously.
slowfast/visualization/async_predictor.py:41
Method
run
Run visualization asynchronously.
slowfast/visualization/async_predictor.py:141
Method
sampler
Returns: (torch.utils.data.Sampler): video sampler for the dataset.
slowfast/datasets/ptv_datasets.py:68
Function
save_checkpoint
Save a checkpoint. Args: model (model): model to save the weight to the checkpoint. optimizer (optim): optimizer to save the
slowfast/utils/checkpoint.py:107
Function
save_checkpoint
Save a checkpoint. Args: model (model): model to save the weight to the checkpoint. optimizer (optim): optimizer to save the
slowfast/utils/checkpoint_amp.py:107
Function
set_lr
Sets the optimizer lr to the specified value. Args: optimizer (optim): the optimizer using to optimize the current network. n
slowfast/models/optimizer.py:112
Function
setup_logging
Sets up the logging for multiple processes. Only enable the logging for the master process, and suppress logging for the non-master processes
slowfast/utils/logging.py:40
Function
sharpness
(img, factor, **__)
slowfast/datasets/rand_augment.py:193
Function
shear_x
(img, factor, **kwargs)
slowfast/datasets/rand_augment.py:66
Function
shear_y
(img, factor, **kwargs)
slowfast/datasets/rand_augment.py:73
Function
shuffle_dataset
" Shuffles the data. Args: loader (loader): data loader to perform shuffle. cur_epoch (int): number of the current epoch.
slowfast/datasets/loader.py:173
Method
shutdown
(self)
slowfast/visualization/async_predictor.py:110
Method
shutdown
(self)
slowfast/visualization/async_predictor.py:220
Function
solarize
(img, thresh, **__)
slowfast/datasets/rand_augment.py:156
Function
solarize_add
(img, add, thresh=128, **__)
slowfast/datasets/rand_augment.py:160
Function
spatial_sampling
Perform spatial sampling on the given video frames. If spatial_idx is -1, perform random scale, random crop, and random flip on the given
slowfast/datasets/utils.py:110
Function
spatial_shift_crop_list
Perform left, center, or right crop of the given list of images. Args: size (int): size to crop. image (list): ilist of image
slowfast/datasets/cv2_transform.py:166
Method
start
Start threads to read and write frames.
slowfast/visualization/demo_loader.py:335
Function
synchronize
Helper function to synchronize (barrier) among all processes when using distributed training
slowfast/utils/distributed.py:132
Function
test
Perform multi-view testing on the pretrained video model. Args: cfg (CfgNode): configs. Details can be found in slowfast/
tools/test_net.py:140
Function
topk_accuracies
Computes the top-k accuracy for each k. Args: preds (array): array of predictions. Dimension is N. labels (array): array of l
slowfast/utils/metrics.py:55
Function
topk_errors
Computes the top-k error for each k. Args: preds (array): array of predictions. Dimension is N. labels (array): array of labe
slowfast/utils/metrics.py:43
Function
train
Train a video model for many epochs on train set and evaluate it on val set. Args: cfg (CfgNode): configs. Details can be found in
tools/train_net.py:384
Function
translate_x_abs
(img, pixels, **kwargs)
slowfast/datasets/rand_augment.py:96
Function
translate_x_rel
(img, pct, **kwargs)
slowfast/datasets/rand_augment.py:80
Function
translate_y_abs
(img, pixels, **kwargs)
slowfast/datasets/rand_augment.py:103
Function
translate_y_rel
(img, pct, **kwargs)
slowfast/datasets/rand_augment.py:88
Function
uniform_crop
Perform uniform spatial sampling on the images and corresponding boxes. Args: images (tensor): images to perform uniform crop. The di
slowfast/datasets/transform.py:194
Method
update
(self, mem, momentum, ind, time, interp=False)
slowfast/models/contrastive.py:1071
Method
update_stats
Collect the predictions from the current batch and perform on-the-flight summation as ensemble. Args: preds (tens
slowfast/utils/meters.py:297
Method
update_stats
Update the current stats. Args: top1_err (float): top1 error rate. top5_err (float): top5 error rate.
slowfast/utils/meters.py:518
Method
update_stats
Update the current stats. Args: top1_err (float): top1 error rate. top5_err (float): top5 error rate.
slowfast/utils/meters.py:663
Function
visualize
Perform layer weights and activations visualization on the model. Args: cfg (CfgNode): configs. Details can be found in s
tools/visualization.py:250
Method
wrong_class_prediction
Return class ids that the model predicted incorrectly.
slowfast/visualization/prediction_vis.py:122
← previous
701–764 of 764, ranked by callers