Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenGVLab/UniFormerV2
/ types & classes
Types & classes
124 in github.com/OpenGVLab/UniFormerV2
⨍
Functions
872
◇
Types & classes
124
↓ 6 callers
Class
DictToTuple
Transform for converting output from dict to a tuple following PySlowFast dataset output format.
slowfast/datasets/ptv_datasets.py:108
↓ 6 callers
Class
DropPath
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks).
slowfast/models/common.py:62
↓ 6 callers
Class
PackPathway
Transform for converting video frames as a list of tensors. Each tensor corresponding to a unique pathway.
slowfast/datasets/ptv_datasets.py:94
↓ 6 callers
Class
RandomErasing
Randomly selects a rectangle region in an image and erases its pixels. 'Random Erasing Data Augmentation' by Zhong et al. See https://
slowfast/datasets/random_erasing.py:34
↓ 6 callers
Class
ScalarMeter
A scalar meter uses a deque to track a series of scaler values with a given window size. It supports calculating the median and average value
slowfast/utils/meters.py:407
↓ 6 callers
Class
ScalarMeter
A scalar meter uses a deque to track a series of scaler values with a given window size. It supports calculating the median and average value
slowfast/utils/meters_co.py:407
↓ 5 callers
Class
LayerNorm
Subclass torch's LayerNorm to handle fp16.
extract_clip/model.py:157
↓ 4 callers
Class
FuseFastToSlow
Fuses the information from the Fast pathway to the Slow pathway. Given the tensors from Slow pathway and Fast pathway, fuse information from
slowfast/models/video_model_builder.py:96
↓ 3 callers
Class
AVAMeter
Measure the AVA train, val, and test stats.
slowfast/utils/meters.py:46
↓ 3 callers
Class
Attention
slowfast/models/uniformer.py:68
↓ 3 callers
Class
LayerNorm
Subclass torch's LayerNorm to handle fp16.
slowfast/models/uniformerv2_model.py:26
↓ 3 callers
Class
PTVDatasetWrapper
Wrapper for PyTorchVideo datasets.
slowfast/datasets/ptv_datasets.py:42
↓ 3 callers
Class
PatchEmbed
Image to Patch Embedding
slowfast/models/uniformer.py:228
↓ 3 callers
Class
VisionTransformer
slowfast/models/uniformerv2_model.py:277
↓ 2 callers
Class
Bottleneck
extract_clip/model.py:10
↓ 2 callers
Class
CBlock
slowfast/models/uniformer.py:115
↓ 2 callers
Class
Local_MHRA
slowfast/models/uniformerv2_model.py:40
↓ 2 callers
Class
Mlp
slowfast/models/uniformer.py:49
↓ 2 callers
Class
ObjectDetectionEvaluation
Internal implementation of Pascal object detection metrics.
slowfast/utils/ava_evaluation/object_detection_evaluation.py:534
↓ 2 callers
Class
QuickGELU
slowfast/models/uniformerv2_model.py:35
↓ 2 callers
Class
SABlock
slowfast/models/uniformer.py:137
↓ 2 callers
Class
SplitSABlock
slowfast/models/uniformer.py:163
↓ 2 callers
Class
Swish
Swish activation function: x * sigmoid(x).
slowfast/models/operators.py:10
↓ 2 callers
Class
TaskInfo
slowfast/visualization/utils.py:343
↓ 2 callers
Class
TrainMeter
Measure training stats.
slowfast/utils/meters.py:458
↓ 2 callers
Class
Transformer
extract_clip/model.py:195
↓ 2 callers
Class
ValMeter
Measures validation stats.
slowfast/utils/meters.py:602
↓ 2 callers
Class
_StopToken
slowfast/visualization/async_predictor.py:233
↓ 1 callers
Class
AsycnActionPredictor
slowfast/visualization/async_predictor.py:17
↓ 1 callers
Class
AttentionPool2d
extract_clip/model.py:58
↓ 1 callers
Class
AugmentOp
Apply for video.
slowfast/datasets/rand_augment.py:339
↓ 1 callers
Class
CLIP
extract_clip/model.py:243
↓ 1 callers
Class
CMlp
slowfast/models/uniformer.py:96
↓ 1 callers
Class
Charades
Charades video loader. Construct the Charades video loader, then sample clips from the videos. For training and validation, a single clip is
slowfast/datasets/charades.py:20
↓ 1 callers
Class
EpochTimer
A timer which computes the epoch time.
slowfast/utils/meters.py:781
↓ 1 callers
Class
Extractor
slowfast/models/uniformerv2_model.py:131
↓ 1 callers
Class
GetWeightAndActivation
A class used to get weights and activations from specified layers from a Pytorch model.
slowfast/visualization/utils.py:158
↓ 1 callers
Class
GradCAM
GradCAM class helps create localization maps using the Grad-CAM method for input videos and overlap the maps over the input videos as heatmap
slowfast/visualization/gradcam_utils.py:13
↓ 1 callers
Class
MixUp
Apply mixup and/or cutmix for videos at batch level. mixup: Beyond Empirical Risk Minimization (https://arxiv.org/abs/1710.09412) CutMix:
slowfast/datasets/mixup.py:109
↓ 1 callers
Class
Mlp
slowfast/models/common.py:7
↓ 1 callers
Class
ModelEmaV2
Model Exponential Moving Average V2 Keep a moving average of everything in the model state_dict (parameters and buffers). V2 of this module i
slowfast/utils/ema.py:73
↓ 1 callers
Class
ModifiedResNet
A ResNet class that is similar to torchvision's but contains the following changes: - There are now 3 "stem" convolutions as opposed to 1, wi
extract_clip/model.py:94
↓ 1 callers
Class
MultiScaleAttention
slowfast/models/attention.py:49
↓ 1 callers
Class
MultiScaleBlock
slowfast/models/attention.py:206
↓ 1 callers
Class
MultigridSchedule
This class defines multigrid training schedule and update cfg accordingly.
slowfast/utils/multigrid.py:13
↓ 1 callers
Class
Nonlocal
Builds Non-local Neural Networks as a generic family of building blocks for capturing long-range dependencies. Non-local Network computes
slowfast/models/nonlocal_helper.py:10
↓ 1 callers
Class
Predictor
Action Predictor for action recognition.
slowfast/visualization/predictor.py:20
↓ 1 callers
Class
QuickGELU
extract_clip/model.py:166
↓ 1 callers
Class
RandAugment
slowfast/datasets/rand_augment.py:464
↓ 1 callers
Class
RandomResizedCropAndInterpolation
Crop the given PIL Image to random size and aspect ratio with random interpolation. A crop of random size (default: of 0.08 to 1.0) of the origina
slowfast/datasets/transform.py:728
↓ 1 callers
Class
ResBlock
Residual block.
slowfast/models/resnet_helper.py:390
↓ 1 callers
Class
ResidualAttentionBlock
extract_clip/model.py:171
↓ 1 callers
Class
ResidualAttentionBlock
slowfast/models/uniformerv2_model.py:62
↓ 1 callers
Class
SE
Squeeze-and-Excitation (SE) block w/ Swish: AvgPool, FC, Swish, FC, Sigmoid.
slowfast/models/operators.py:36
↓ 1 callers
Class
ShortCycleBatchSampler
Extend Sampler to support "short cycle" sampling. See paper "A Multigrid Method for Efficiently Training Video Models", Wu et al., 2019 (
slowfast/datasets/multigrid_helper.py:19
↓ 1 callers
Class
SpeicalPatchEmbed
Image to Patch Embedding
slowfast/models/uniformer.py:201
↓ 1 callers
Class
TestMeter
Perform the multi-view ensemble for testing: each video with an unique index will be sampled with multiple clips, and the predictions of the
slowfast/utils/meters.py:231
↓ 1 callers
Class
Transformer
slowfast/models/uniformerv2_model.py:185
↓ 1 callers
Class
VisionTransformer
extract_clip/model.py:206
Class
AVAMeter
Measure the AVA train, val, and test stats.
slowfast/utils/meters_co.py:46
Class
AVAVisualizerWithPrecomputedBox
Visualize action predictions for videos or folder of images with precomputed and ground-truth boxes in AVA format.
slowfast/visualization/ava_demo_precomputed_boxes.py:24
Class
Anet
ANet video loader. Construct the ANet video loader, then sample clips from the videos. For training and validation, a single clip is rand
slowfast/datasets/anet.py:23
Class
AsyncDemo
Asynchronous Action Prediction and Visualization pipeline with AsyncVis.
slowfast/visualization/async_predictor.py:237
Class
AsyncVis
slowfast/visualization/async_predictor.py:126
Class
Ava
AVA Dataset
slowfast/datasets/ava_dataset.py:18
Class
BasicTransform
Basic transformation: Tx3x3, 1x3x3, where T is the size of temporal kernel.
slowfast/models/resnet_helper.py:29
Class
BottleneckTransform
Bottleneck transformation: Tx1x1, 1x3x3, 1x1x1, where T is the size of temporal kernel.
slowfast/models/resnet_helper.py:256
Class
BoxList
Box collection. BoxList represents a list of bounding boxes as numpy array, where each bounding box is represented as a row of 4 numbers,
slowfast/utils/ava_evaluation/np_box_list.py:27
Class
BoxListFields
Naming conventions for BoxLists. Attributes: boxes: bounding box coordinates. classes: classes per bounding box. scores: scores
slowfast/utils/ava_evaluation/standard_fields.py:126
Class
BoxMaskList
Convenience wrapper for BoxList with masks. BoxMaskList extends the np_box_list.BoxList to contain masks as well. In particular, its construc
slowfast/utils/ava_evaluation/np_box_mask_list.py:29
Class
DetectionEvaluator
Interface for object detection evalution classes. Example usage of the Evaluator: ------------------------------ evaluator = DetectionEva
slowfast/utils/ava_evaluation/object_detection_evaluation.py:44
Class
DetectionResultFields
Naming conventions for storing the output of the detector. Attributes: source_id: source of the original image. key: unique key corre
slowfast/utils/ava_evaluation/standard_fields.py:100
Class
EpochTimer
A timer which computes the epoch time.
slowfast/utils/meters_co.py:790
Class
GroupGather
GroupGather performs all gather on each of the local process/ GPU groups.
slowfast/models/batchnorm_helper.py:112
Class
Imagenet
ImageNet dataset.
slowfast/datasets/imagenet.py:32
Class
InputDataFields
Names for the input tensors. Holds the standard data field names to use for identifying input tensors. This should be used by the decoder to
slowfast/utils/ava_evaluation/standard_fields.py:35
Class
Kinetics
Kinetics video loader. Construct the Kinetics video loader, then sample clips from the videos. For training and validation, a single clip is
slowfast/datasets/kinetics.py:24
Class
Kinetics_sparse
Kinetics video loader. Construct the Kinetics video loader, then sample clips from the videos. For training and validation, a single clip is
slowfast/datasets/kinetics_sparse.py:24
Class
MViT
Multiscale Vision Transformers Haoqi Fan, Bo Xiong, Karttikeya Mangalam, Yanghao Li, Zhicheng Yan, Jitendra Malik, Christoph Feichtenhofer
slowfast/models/video_model_builder.py:765
Class
Mit
MiT video loader. Construct the MiT video loader, then sample clips from the videos. For training and validation, a single clip is random
slowfast/datasets/mit.py:23
Class
ModelEma
Model Exponential Moving Average (DEPRECATED) Keep a moving average of everything in the model state_dict (parameters and buffers). This vers
slowfast/utils/ema.py:14
Class
NaiveSyncBatchNorm3d
slowfast/models/batchnorm_helper.py:174
Class
ObjectDetectionEvaluator
A class to evaluate detections.
slowfast/utils/ava_evaluation/object_detection_evaluation.py:107
Class
OpenImagesDetectionEvaluator
A class to evaluate detections using Open Images V2 metrics. Open Images V2 introduce group_of type of bounding boxes and this metric handles
slowfast/utils/ava_evaluation/object_detection_evaluation.py:433
Class
PTVCSN
CSN models using PyTorchVideo model builder.
slowfast/models/ptv_model_builder.py:521
Class
PTVR2plus1D
R(2+1)D models using PyTorchVideo model builder.
slowfast/models/ptv_model_builder.py:606
Class
PTVResNet
ResNet models using PyTorchVideo model builder.
slowfast/models/ptv_model_builder.py:56
Class
PTVSlowFast
slowfast/models/ptv_model_builder.py:223
Class
PTVX3D
slowfast/models/ptv_model_builder.py:428
Class
PascalDetectionEvaluator
A class to evaluate detections using PASCAL metrics.
slowfast/utils/ava_evaluation/object_detection_evaluation.py:357
Class
PascalInstanceSegmentationEvaluator
A class to evaluate instance masks using PASCAL metrics.
slowfast/utils/ava_evaluation/object_detection_evaluation.py:394
Class
PatchEmbed
PatchEmbed.
slowfast/models/stem_helper.py:290
Class
PerImageEvaluation
Evaluate detection result of a single image.
slowfast/utils/ava_evaluation/per_image_evaluation.py:39
Class
Permute
slowfast/models/common.py:37
Class
ResNet
ResNet model builder. It builds a ResNet like network backbone without lateral connection (C2D, I3D, Slow). Christoph Feichtenhofer, Hao
slowfast/models/video_model_builder.py:423
Class
ResNetBasicHead
ResNe(X)t 3D head. This layer performs a fully-connected projection during training, when the input size is 1x1x1. It performs a convolut
slowfast/models/head_helper.py:133
Class
ResNetBasicStem
ResNe(X)t 3D stem module. Performs spatiotemporal Convolution, BN, and Relu following by a spatiotemporal pooling.
slowfast/models/stem_helper.py:125
Class
ResStage
Stage of 3D ResNet. It expects to have one or more tensors as input for single pathway (C2D, I3D, Slow), and multi-pathway (SlowFast) cas
slowfast/models/resnet_helper.py:519
Class
SimpleTokenizer
extract_clip/simple_tokenizer.py:62
Class
SlowFast
SlowFast model builder for SlowFast network. Christoph Feichtenhofer, Haoqi Fan, Jitendra Malik, and Kaiming He. "SlowFast networks for
slowfast/models/video_model_builder.py:157
next →
1–100 of 124, ranked by callers