Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChenHsing/SVFormer
/ functions
Functions
683 in github.com/ChenHsing/SVFormer
⨍
Functions
683
◇
Types & classes
103
↓ 1 callers
Method
flush
(self)
timesformer/visualization/tensorboard_vis.py:226
↓ 1 callers
Method
forward
Perform forwarding, gathering the stats across different process/ GPU group.
timesformer/models/batchnorm_helper.py:117
↓ 1 callers
Method
forward_features
(self, x, mask=None)
timesformer/models/vit.py:267
↓ 1 callers
Method
forward_features
(self, x)
timesformer/models/vit.py:411
↓ 1 callers
Method
forward_features
(self, x, lis)
timesformer/models/bottle.py:301
↓ 1 callers
Method
forward_features
(self, x,lis)
timesformer/models/cross_view.py:296
↓ 1 callers
Method
from_other
(self, out_indices: Tuple[int])
timesformer/models/features.py:25
↓ 1 callers
Function
get_ava_eval_data
Convert our data format into the data format used in official AVA evaluation.
timesformer/utils/ava_eval_helper.py:251
↓ 1 callers
Function
get_cfg
Get a copy of the default config.
timesformer/config/defaults.py:816
↓ 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]
timesformer/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
timesformer/utils/multigrid.py:223
↓ 1 callers
Function
get_func
(cfg)
run_net_emamix.py:11
↓ 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
timesformer/visualization/utils.py:254
↓ 1 callers
Function
get_last_checkpoint
Get the last checkpoint from the checkpointing folder. Args: path_to_job (string): the path to the folder of the current job.
timesformer/utils/checkpoint.py:57
↓ 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:
timesformer/utils/logging.py:73
↓ 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
timesformer/utils/multigrid.py:122
↓ 1 callers
Function
get_name_convert_func
Get the function to convert Caffe2 layer names to PyTorch layer names. Returns: (func): function to convert parameter name from Caffe
timesformer/utils/c2_model_loading.py:8
↓ 1 callers
Method
get_output
(self, device)
timesformer/models/features.py:106
↓ 1 callers
Function
get_padding_value
(padding, kernel_size, **kwargs)
timesformer/models/conv2d_same.py:25
↓ 1 callers
Method
get_params
Get parameters for ``crop`` for a random sized crop. Args: img (PIL Image): Image to be cropped. scale (tuple): ran
timesformer/datasets/video_transform.py:727
↓ 1 callers
Method
get_params
(self, brightness, contrast, saturation, hue)
timesformer/datasets/video_transform.py:1191
↓ 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
timesformer/utils/checkpoint.py:46
↓ 1 callers
Function
get_rank
Get the rank of the current process.
timesformer/utils/distributed.py:124
↓ 1 callers
Function
get_stem_func
Retrieves the stem module by name.
timesformer/models/stem_helper.py:8
↓ 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
timesformer/utils/lr_policy.py:62
↓ 1 callers
Function
get_trans_func
Retrieves the transformation module by name.
timesformer/models/resnet_helper.py:20
↓ 1 callers
Method
get_weights
Returns weights from registered layers. Returns: weights (Python dictionary): a dictionary of the pair {layer
timesformer/visualization/utils.py:235
↓ 1 callers
Function
get_world_size
Get the size of the world.
timesformer/utils/distributed.py:113
↓ 1 callers
Function
gpu_mem_usage
Compute the GPU memory usage for the current device (GB).
timesformer/utils/misc.py:52
↓ 1 callers
Function
has_checkpoint
Determines if the given directory contains a checkpoint. Args: path_to_job (string): the path to the folder of the current job.
timesformer/utils/checkpoint.py:87
↓ 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
timesformer/utils/checkpoint.py:153
↓ 1 callers
Method
init_multigrid
Update cfg based on multigrid settings. Args: cfg (configs): configs that contains training and multigrid specific
timesformer/utils/multigrid.py:17
↓ 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 define
timesformer/utils/ava_evaluation/np_box_mask_list_ops.py:99
↓ 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 thei
timesformer/utils/ava_evaluation/np_box_list_ops.py:84
↓ 1 callers
Function
launch
(shard_id, num_shards, cfg, init_method)
tools/submit.py:79
↓ 1 callers
Method
loader
(self, path: str)
timesformer/datasets/image.py:130
↓ 1 callers
Function
main
Main function to spawn the train and test process.
run_net.py:16
↓ 1 callers
Function
main
Main function to spawn the train and test process.
run_net_emamix.py:16
↓ 1 callers
Function
main
()
tools/benchmark.py:14
↓ 1 callers
Function
main
()
tools/submit.py:149
↓ 1 callers
Method
module_name
feature module name accessor
timesformer/models/features.py:64
↓ 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 over
timesformer/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 over
timesformer/utils/ava_evaluation/np_box_list_ops.py:167
↓ 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
timesformer/datasets/cv2_transform.py:318
↓ 1 callers
Function
pad_same
(x, k: List[int], s: List[int], d: List[int] = (1, 1), value: float = 0)
timesformer/models/conv2d_same.py:14
↓ 1 callers
Function
params_count
Compute the number of parameters. Args: model (model): model to count the number of parameters.
timesformer/utils/misc.py:35
↓ 1 callers
Function
parse_args
()
tools/submit.py:17
↓ 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
tools/test_net_base.py:27
↓ 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:189
↓ 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:
timesformer/visualization/tensorboard_vis.py:279
↓ 1 callers
Function
print_schedule
Log schedule.
timesformer/utils/multigrid.py:214
↓ 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
timesformer/visualization/utils.py:277
↓ 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
timesformer/datasets/decoder.py:213
↓ 1 callers
Function
rand_augment_ops
(magnitude=10, hparams=None, transforms=None)
timesformer/datasets/rand_augment.py:453
↓ 1 callers
Function
read_exclusions
Reads a CSV file of excluded timestamps. Args: exclusions_file: A file object containing a csv of video-id,timestamp. Returns: A s
timesformer/utils/ava_eval_helper.py:91
↓ 1 callers
Function
read_labelmap
Read label map and class ids.
timesformer/utils/ava_eval_helper.py:109
↓ 1 callers
Method
reset
Reset the metric.
timesformer/utils/meters.py:76
↓ 1 callers
Method
reset_classifier
(self, num_classes, global_pool='')
timesformer/models/vit.py:263
↓ 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:28
↓ 1 callers
Function
saturation
Perform color saturation on the given image. Args: var (float): variance. image (array): image to perform color saturation.
timesformer/datasets/cv2_transform.py:653
↓ 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
timesformer/datasets/transform.py:388
↓ 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 ra
timesformer/datasets/video_transform.py:388
↓ 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
timesformer/datasets/cv2_transform.py:696
↓ 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: boxli
timesformer/utils/ava_evaluation/np_box_list_ops.py:321
↓ 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:
timesformer/utils/ava_evaluation/np_box_mask_list_ops.py:151
↓ 1 callers
Function
ssl_train_epoch
Perform the video training for one epoch. Args: train_loader (loader): video training loader. model (model): the video mo
tools/train_net_emamix.py:243
↓ 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`
timesformer/utils/checkpoint.py:417
↓ 1 callers
Function
temporal_aug
(strong)
tools/train_net_emamix.py:233
↓ 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
timesformer/datasets/decoder.py:10
↓ 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
timesformer/datasets/utils.py:327
↓ 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
timesformer/datasets/decoder.py:103
↓ 1 callers
Function
train_epoch
Perform the video training for one epoch. Args: train_loader (loader): video training loader. model (model): the video mo
tools/train_net_emamix.py:60
↓ 1 callers
Function
transform
(x, y, matrix)
timesformer/datasets/rand_augment.py:126
↓ 1 callers
Method
tubemask
(self)
tools/train_net_emamix.py:45
↓ 1 callers
Method
tubemask
(self)
timesformer/datasets/unlabel2.py:59
↓ 1 callers
Method
update_predictions
Update predictions and labels. Args: preds (tensor): model output predictions. labels (tensor): labels.
timesformer/utils/meters.py:668
Function
CHW2HWC
Transpose the dimension from `channel` x `height` x `width` to `height` x `width` x `channel`. Args: image (array): image to
timesformer/datasets/cv2_transform.py:215
Function
HWC2CHW
Transpose the dimension from `height` x `width` x `channel` to `channel` x `height` x `width`. Args: image (array): image to
timesformer/datasets/cv2_transform.py:227
Method
__call__
(self)
tools/submit.py:104
Method
__call__
(self)
timesformer/datasets/unlabel2.py:34
Method
__call__
Args: img (PIL Image): Image to be cropped and resized. Returns: PIL Image: Randomly cropped and resized
timesformer/datasets/video_transform.py:767
Method
__call__
(self, clip)
timesformer/datasets/video_transform.py:912
Method
__call__
Args: img (PIL.Image or numpy.ndarray): List of images to be cropped in format (h, w, c) in numpy.ndarray Returns
timesformer/datasets/video_transform.py:923
Method
__call__
(self, clip)
timesformer/datasets/video_transform.py:958
Method
__call__
(self, clip)
timesformer/datasets/video_transform.py:988
Method
__call__
Args: img (PIL.Image or numpy.ndarray): List of images to be cropped in format (h, w, c) in numpy.ndarray Returns
timesformer/datasets/video_transform.py:1007
Method
__call__
Args: img (PIL.Image or numpy.ndarray): List of images to be cropped in format (h, w, c) in numpy.ndarray Returns
timesformer/datasets/video_transform.py:1051
Method
__call__
Args: img (PIL.Image or numpy.ndarray): List of images to be cropped in format (h, w, c) in numpy.ndarray Returns
timesformer/datasets/video_transform.py:1107
Method
__call__
Args: img (PIL.Image or numpy.ndarray): List of images to be cropped in format (h, w, c) in numpy.ndarray Returns
timesformer/datasets/video_transform.py:1141
Method
__call__
Args: clip (list): list of PIL.Image Returns: list PIL.Image : list of transformed PIL.Image
timesformer/datasets/video_transform.py:1216
Method
__call__
Args: clip (Tensor): Tensor clip of size (T, C, H, W) to be normalized. Returns: Tensor: Normalized Tenso
timesformer/datasets/video_transform.py:1271
Method
__call__
(self, img_list)
timesformer/datasets/rand_augment.py:364
Method
__call__
(self, img)
timesformer/datasets/rand_augment.py:468
Method
__call__
(self, input)
timesformer/datasets/random_erasing.py:151
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
timesformer/datasets/kinetics.py:116
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
timesformer/datasets/unlabel2.py:188
Method
__getitem__
Given the video index, return the list of frames, label, and video index if the video frames can be fetched. Args:
timesformer/datasets/ssv2.py:159
Method
__getitem__
Args: index (int): Index Returns: tuple: (sample, target) where target is class_index of the target cla
timesformer/datasets/image.py:136
Method
__getitem__
Given the video index, return the list of frames, label, and video index if the video can be fetched and decoded successfully, othe
timesformer/datasets/unlabel.py:165
Method
__getitem__
Given the video index, return the list of frames, label, and video index if the video can be fetched and decoded successfully, othe
timesformer/datasets/something.py:115
← previous
next →
201–300 of 683, ranked by callers