Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChenHsing/SVFormer
/ types & classes
Types & classes
103 in github.com/ChenHsing/SVFormer
⨍
Functions
683
◇
Types & classes
103
↓ 13 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
timesformer/utils/meters.py:197
↓ 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
timesformer/models/video_model_builder.py:92
↓ 3 callers
Class
DropPath
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks).
timesformer/models/vit_utils.py:155
↓ 2 callers
Class
Attention
timesformer/models/vit.py:64
↓ 2 callers
Class
Attention
timesformer/models/bottle.py:59
↓ 2 callers
Class
Attention
timesformer/models/cross_view.py:59
↓ 2 callers
Class
Block
timesformer/models/vit.py:96
↓ 2 callers
Class
FeatureInfo
timesformer/models/features.py:12
↓ 2 callers
Class
ObjectDetectionEvaluation
Internal implementation of Pascal object detection metrics.
timesformer/utils/ava_evaluation/object_detection_evaluation.py:526
↓ 2 callers
Class
PatchEmbed
Image to Patch Embedding
timesformer/models/vit.py:162
↓ 2 callers
Class
Swish
Swish activation function: x * sigmoid(x).
timesformer/models/operators.py:9
↓ 2 callers
Class
TrainMeter
Measure training stats.
timesformer/utils/meters.py:248
↓ 2 callers
Class
ValMeter
Measures validation stats.
timesformer/utils/meters.py:578
↓ 1 callers
Class
AugmentOp
Apply for video.
timesformer/datasets/rand_augment.py:337
↓ 1 callers
Class
Block
timesformer/models/bottle.py:127
↓ 1 callers
Class
Block
timesformer/models/cross_view.py:127
↓ 1 callers
Class
Conv2dSame
Tensorflow like 'SAME' convolution wrapper for 2D convolutions
timesformer/models/conv2d_same.py:54
↓ 1 callers
Class
CrossAttention
timesformer/models/cross_view.py:92
↓ 1 callers
Class
FeatureHooks
Feature Hook Helper This module helps with the setup and extraction of hooks for extracting features from internal nodes in a model by node n
timesformer/models/features.py:76
↓ 1 callers
Class
GetWeightAndActivation
A class used to get weights and activations from specified layers from a Pytorch model.
timesformer/visualization/utils.py:157
↓ 1 callers
Class
Linear
timesformer/models/linear.py:7
↓ 1 callers
Class
Mlp
timesformer/models/vit.py:45
↓ 1 callers
Class
Mlp
timesformer/models/bottle.py:40
↓ 1 callers
Class
Mlp
timesformer/models/cross_view.py:40
↓ 1 callers
Class
ModelEma
Model Exponential Moving Average (DEPRECATED) Keep a moving average of everything in the model state_dict (parameters and buffers). This
timesformer/utils/ema.py:15
↓ 1 callers
Class
MultigridSchedule
This class defines multigrid training schedule and update cfg accordingly.
timesformer/utils/multigrid.py:12
↓ 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
timesformer/models/nonlocal_helper.py:9
↓ 1 callers
Class
PatchEmbed
Image to Patch Embedding
timesformer/models/bottle.py:207
↓ 1 callers
Class
PatchEmbed
Image to Patch Embedding
timesformer/models/cross_view.py:200
↓ 1 callers
Class
RandAugment
timesformer/datasets/rand_augment.py:462
↓ 1 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://
timesformer/datasets/random_erasing.py:27
↓ 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 origin
timesformer/datasets/video_transform.py:692
↓ 1 callers
Class
ResBlock
Residual block.
timesformer/models/resnet_helper.py:399
↓ 1 callers
Class
SE
Squeeze-and-Excitation (SE) block w/ Swish: AvgPool, FC, Swish, FC, Sigmoid.
timesformer/models/operators.py:35
↓ 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 (
timesformer/datasets/multigrid_helper.py:10
↓ 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
timesformer/utils/meters.py:20
↓ 1 callers
Class
Trainer
tools/submit.py:100
↓ 1 callers
Class
TubeMasking
tools/train_net_emamix.py:31
↓ 1 callers
Class
TubeMasking
timesformer/datasets/unlabel2.py:45
↓ 1 callers
Class
TubeMasking
timesformer/datasets/unlabel.py:22
↓ 1 callers
Class
UnlabelMeter
Measure training stats.
timesformer/utils/meters.py:409
↓ 1 callers
Class
VisionTransformer
Vision Transformere
timesformer/models/vit.py:200
↓ 1 callers
Class
VisionTransformer_base
Vision Transformere
timesformer/models/vit.py:340
↓ 1 callers
Class
VisionTransformer_slow
Vision Transformere
timesformer/models/bottle.py:229
↓ 1 callers
Class
VisionTransformer_slow
Vision Transformere
timesformer/models/cross_view.py:222
Class
BasicTransform
Basic transformation: Tx3x3, 1x3x3, where T is the size of temporal kernel.
timesformer/models/resnet_helper.py:37
Class
BottleneckTransform
Bottleneck transformation: Tx1x1, 1x3x3, 1x1x1, where T is the size of temporal kernel.
timesformer/models/resnet_helper.py:263
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, [y_mi
timesformer/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 per bou
timesformer/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 constructor
timesformer/utils/ava_evaluation/np_box_mask_list.py:29
Class
CenterCrop
Extract center crop at the same location for a list of images Args: size (sequence or int): Desired output size for the crop in format
timesformer/datasets/video_transform.py:1128
Class
ColorJitter
Randomly change the brightness, contrast and saturation and hue of the clip Args: brightness (float): How much to jitter brightness. brightn
timesformer/datasets/video_transform.py:1172
Class
Compose
Composes several transforms Args: transforms (list of ``Transform`` objects): list of transforms to compose
timesformer/datasets/video_transform.py:902
Class
CrossAttention
timesformer/models/bottle.py:92
Class
Demo
Kinetics video loader. Construct the Kinetics video loader, then sample clips from the videos. For training and validation, a single clip i
timesformer/datasets/demo.py:19
Class
DetectionEvaluator
Interface for object detection evalution classes. Example usage of the Evaluator: ------------------------------ evaluator = DetectionEvaluator
timesformer/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 correspondi
timesformer/utils/ava_evaluation/standard_fields.py:100
Class
FeatureDictNet
Feature extractor with OrderedDict return Wrap a model and extract features as specified by the out indices, the network is partially re-buil
timesformer/models/features.py:144
Class
FeatureHookNet
FeatureHookNet Wrap a model and extract features specified by the out indices using forward/forward-pre hooks. If `no_rewrite` is True, featu
timesformer/models/features.py:221
Class
FeatureListNet
Feature extractor with list return See docstring for FeatureDictNet above, this class exists only to appease Torchscript typing constraints.
timesformer/models/features.py:205
Class
GroupGather
GroupGather performs all gather on each of the local process/ GPU groups.
timesformer/models/batchnorm_helper.py:111
Class
Image
Kinetics video loader. Construct the Kinetics video loader, then sample clips from the videos. For training and validation, a single clip i
timesformer/datasets/image.py:57
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 iden
timesformer/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
timesformer/datasets/kinetics.py:19
Class
ModelEmaV2
Model Exponential Moving Average V2 Keep a moving average of everything in the model state_dict (parameters and buffers). V2 of this modu
timesformer/utils/ema.py:82
Class
NaiveSyncBatchNorm3d
timesformer/models/batchnorm_helper.py:173
Class
Normalize
Normalize a clip with mean and standard deviation. Given mean: ``(M1,...,Mn)`` and std: ``(S1,..,Sn)`` for ``n`` channels, this transform wi
timesformer/datasets/video_transform.py:1255
Class
ObjectDetectionEvaluator
A class to evaluate detections.
timesformer/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
timesformer/utils/ava_evaluation/object_detection_evaluation.py:429
Class
PascalDetectionEvaluator
A class to evaluate detections using PASCAL metrics.
timesformer/utils/ava_evaluation/object_detection_evaluation.py:353
Class
PascalInstanceSegmentationEvaluator
A class to evaluate instance masks using PASCAL metrics.
timesformer/utils/ava_evaluation/object_detection_evaluation.py:390
Class
PerImageEvaluation
Evaluate detection result of a single image.
timesformer/utils/ava_evaluation/per_image_evaluation.py:39
Class
RandomCrop
Extract random crop at the same location for a list of images Args: size (sequence or int): Desired output size for the crop in format
timesformer/datasets/video_transform.py:994
Class
RandomHorizontalFlip
Horizontally flip the list of given images randomly with a probability 0.5
timesformer/datasets/video_transform.py:918
Class
RandomResize
Resizes a list of (H x W x C) numpy.ndarray to the final size The larger the original image is, the more times it takes to interpolate
timesformer/datasets/video_transform.py:944
Class
RandomRotation
Rotate entire clip randomly by a random angle within given bounds Args: degrees (sequence or int): Range of degrees to select from
timesformer/datasets/video_transform.py:1085
Class
ResNet
ResNet model builder. It builds a ResNet like network backbone without lateral connection (C2D, I3D, Slow). Christoph Feichtenhofer, Hao
timesformer/models/video_model_builder.py:426
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
timesformer/models/head_helper.py:11
Class
ResNetBasicStem
ResNe(X)t 3D stem module. Performs spatiotemporal Convolution, BN, and Relu following by a spatiotemporal pooling.
timesformer/models/stem_helper.py:117
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
timesformer/models/resnet_helper.py:539
Class
Resize
Resizes a list of (H x W x C) numpy.ndarray to the final size The larger the original image is, the more times it takes to interpolate
timesformer/datasets/video_transform.py:974
Class
SlowFast
SlowFast model builder for SlowFast network. Christoph Feichtenhofer, Haoqi Fan, Jitendra Malik, and Kaiming He. "SlowFast networks for v
timesformer/models/video_model_builder.py:786
Class
Something
Kinetics video loader. Construct the Kinetics video loader, then sample clips from the videos. For training and validation, a single clip i
timesformer/datasets/something.py:19
Class
SortOrder
Enum class for sort order. Attributes: ascend: ascend order. descend: descend order.
timesformer/utils/ava_evaluation/np_box_list_ops.py:33
Class
Ssv2
Something-Something v2 (SSV2) video loader. Construct the SSV2 video loader, then sample clips from the videos. For training and validation,
timesformer/datasets/ssv2.py:21
Class
SubBatchNorm3d
The standard BN layer computes stats across all examples in a GPU. In some cases it is desirable to compute stats across only a subset of exa
timesformer/models/batchnorm_helper.py:36
Class
SwishEfficient
Swish activation function: x * sigmoid(x).
timesformer/models/operators.py:19
Class
TaskInfo
timesformer/visualization/utils.py:342
Class
TensorboardWriter
Helper class to log information to Tensorboard.
timesformer/visualization/tensorboard_vis.py:19
Class
TfExampleFields
TF-example proto feature names for object detection. Holds the standard feature names to load from an Example proto for object detection. Attr
timesformer/utils/ava_evaluation/standard_fields.py:152
Class
ThreeCrop
Extract random crop at the same location for a list of images Args: size (sequence or int): Desired output size for the crop in format
timesformer/datasets/video_transform.py:1038
Class
TubeMaskingGenerator
timesformer/datasets/unlabel2.py:20
Class
Unlabel
Kinetics video loader. Construct the Kinetics video loader, then sample clips from the videos. For training and validation, a single clip i
timesformer/datasets/unlabel.py:68
Class
Unlabel2
Kinetics video loader. Construct the Kinetics video loader, then sample clips from the videos. For training and validation, a single clip is
timesformer/datasets/unlabel2.py:91
Class
VideoModelStem
Video 3D stem module. Provides stem operations of Conv, BN, ReLU, MaxPool on input data tensor for one or multiple pathways.
timesformer/models/stem_helper.py:19
Class
WeightedPascalDetectionEvaluator
A class to evaluate detections using weighted PASCAL metrics. Weighted PASCAL metrics computes the mean average precision as the average precisio
timesformer/utils/ava_evaluation/object_detection_evaluation.py:366
Class
WeightedPascalInstanceSegmentationEvaluator
A class to evaluate instance masks using weighted PASCAL metrics. Weighted PASCAL metrics computes the mean average precision as the average prec
timesformer/utils/ava_evaluation/object_detection_evaluation.py:404
Class
X3D
X3D model builder. It builds a X3D network backbone, which is a ResNet. Christoph Feichtenhofer. "X3D: Expanding Architectures for Effic
timesformer/models/video_model_builder.py:625
Class
X3DHead
X3D head. This layer performs a fully-connected projection during training, when the input size is 1x1x1. It performs a convolutional pro
timesformer/models/head_helper.py:101
Class
X3DStem
X3D's 3D stem module. Performs a spatial followed by a depthwise temporal Convolution, BN, and Relu following by a spatiotemporal poo
timesformer/models/stem_helper.py:196
next →
1–100 of 103, ranked by callers