Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MCG-NJU/VideoMAE
/ functions
Functions
287 in github.com/MCG-NJU/VideoMAE
⨍
Functions
287
◇
Types & classes
48
↓ 83 callers
Function
print
(*args, **kwargs)
utils.py:212
↓ 35 callers
Method
update
(self, **kwargs)
utils.py:88
↓ 11 callers
Function
_cfg
(url='', **kwargs)
modeling_finetune.py:11
↓ 9 callers
Method
load_state_dict
(self, state_dict)
utils.py:366
↓ 7 callers
Function
_check_args_tf
(kwargs)
rand_augment.py:58
↓ 6 callers
Function
cutmix_bbox_and_lam
Generate bbox and apply lambda correction.
mixup.py:77
↓ 6 callers
Method
loadvideo_decord
Load video content using Decord
kinetics.py:222
↓ 6 callers
Method
loadvideo_decord
Load video content using Decord
ssv2.py:217
↓ 6 callers
Method
state_dict
(self)
utils.py:363
↓ 5 callers
Method
__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
modeling_finetune.py:36
↓ 5 callers
Function
_randomly_negate
With 50% prob, negate the value
rand_augment.py:195
↓ 5 callers
Function
trunc_normal_
(tensor, mean=0., std=1.)
modeling_pretrain.py:14
↓ 4 callers
Function
_get_param_spatial_crop
Given scale, ratio, height and width, return sampled coordinates of the videos.
video_transforms.py:499
↓ 4 callers
Method
_params_per_elem
(self, batch_size)
mixup.py:121
↓ 4 callers
Method
add_meter
(self, name, meter)
utils.py:117
↓ 4 callers
Method
log_every
(self, iterable, print_freq, header=None)
utils.py:120
↓ 4 callers
Method
max
(self)
utils.py:67
↓ 4 callers
Method
set_step
(self, step=None)
utils.py:172
↓ 4 callers
Method
synchronize_between_processes
(self)
utils.py:113
↓ 3 callers
Method
__len__
(self)
kinetics.py:274
↓ 3 callers
Method
__len__
(self)
ssv2.py:265
↓ 3 callers
Function
_pil_interp
(method)
video_transforms.py:33
↓ 3 callers
Function
blend
Blend two images with a given weight alpha. Args: images1 (tensor): the first images to be blended, the dimension is `num
video_transforms.py:276
↓ 3 callers
Function
build_dataset
(is_train, test_mode, args)
datasets.py:57
↓ 3 callers
Function
get_sinusoid_encoding_table
Sinusoid position encoding table
modeling_finetune.py:160
↓ 3 callers
Function
is_dist_avail_and_initialized
()
utils.py:220
↓ 3 callers
Method
update
(self, head='scalar', step=None, **kwargs)
utils.py:178
↓ 2 callers
Method
__init__
(self, img_size=224, patch_size=16, encoder_in_chans=3,
modeling_pretrain.py:181
↓ 2 callers
Method
_aug_frame
( self, buffer, args, )
kinetics.py:160
↓ 2 callers
Method
_aug_frame
( self, buffer, args, )
ssv2.py:155
↓ 2 callers
Method
_erase
(self, img, chan, img_h, img_w, dtype)
random_erasing.py:80
↓ 2 callers
Function
_get_pixels
( per_pixel, rand_color, patch_size, dtype=torch.float32, device="cuda" )
random_erasing.py:11
↓ 2 callers
Function
_load_checkpoint_for_ema
Workaround for ModelEma._load_checkpoint to accept an already-loaded object
utils.py:195
↓ 2 callers
Method
_params_per_batch
(self)
mixup.py:141
↓ 2 callers
Function
convert_img
Converts (H, W, C) numpy.ndarray to (C, W, H) format
volume_transforms.py:6
↓ 2 callers
Function
create_optimizer
(args, model, get_num_layer=None, get_layer_scale=None, filter_bias_and_bn=True, skip_list=None)
optim_factory.py:91
↓ 2 callers
Function
crop_boxes
Peform crop on the bounding boxes given the offsets. Args: boxes (ndarray or None): bounding boxes to peform crop. The dimension
video_transforms.py:101
↓ 2 callers
Function
final_test
(data_loader, model, device, file)
engine_for_finetuning.py:180
↓ 2 callers
Method
flush
(self)
utils.py:187
↓ 2 callers
Function
get_parameter_groups
(model, weight_decay=1e-5, skip_list=(), get_num_layer=None, get_layer_scale=None)
optim_factory.py:49
↓ 2 callers
Function
get_resize_sizes
(im_h, im_w, size)
functional.py:67
↓ 2 callers
Function
grayscale
Get the grayscale for the input images. The channels of images should be in order BGR. Args: images (tensor): the input images fo
video_transforms.py:292
↓ 2 callers
Function
merge
(eval_path, num_tasks)
engine_for_finetuning.py:233
↓ 2 callers
Function
mixup_target
(target, num_classes, lam=1., smoothing=0.0, device='cuda')
mixup.py:22
↓ 2 callers
Method
no_weight_decay
(self)
modeling_finetune.py:251
↓ 2 callers
Function
one_hot
(x, num_classes, on_value=1., off_value=0., device='cuda')
mixup.py:17
↓ 2 callers
Function
rand_augment_transform
RandAugment: Practical automated data augmentation... - https://arxiv.org/abs/1909.13719 Create a RandAugment transform :param config_st
rand_augment.py:481
↓ 2 callers
Function
train_class_batch
(model, samples, target, criterion)
engine_for_finetuning.py:13
↓ 2 callers
Method
update
(self, value, n=1)
utils.py:34
↓ 1 callers
Method
_erase_cube
( self, img, batch_start, batch_size, chan, img_h, img
random_erasing.py:109
↓ 1 callers
Function
_interpolation
(kwargs)
rand_augment.py:50
↓ 1 callers
Function
_is_tensor_clip
(clip)
functional.py:8
↓ 1 callers
Method
_make_dataset
(self, directory, setting)
kinetics.py:498
↓ 1 callers
Method
_mix_batch
(self, x)
mixup.py:196
↓ 1 callers
Method
_mix_batch_collate
(self, output, batch)
mixup.py:280
↓ 1 callers
Method
_mix_elem
(self, x)
mixup.py:159
↓ 1 callers
Method
_mix_elem_collate
(self, output, batch, half=False)
mixup.py:227
↓ 1 callers
Method
_mix_pair
(self, x)
mixup.py:176
↓ 1 callers
Method
_mix_pair_collate
(self, output, batch)
mixup.py:252
↓ 1 callers
Function
_posterize_level_to_arg
(level, _hparams)
rand_augment.py:242
↓ 1 callers
Method
_sample_crop_size
(self, im_size)
transforms.py:111
↓ 1 callers
Method
_sample_fix_offset
(self, image_w, image_h, crop_w, crop_h)
transforms.py:135
↓ 1 callers
Method
_sample_train_indices
(self, num_frames)
kinetics.py:515
↓ 1 callers
Function
_select_rand_weights
(weight_idx=0, transforms=None)
rand_augment.py:444
↓ 1 callers
Function
_solarize_level_to_arg
(level, _hparams)
rand_augment.py:263
↓ 1 callers
Method
_video_TSN_decord_batch_loader
(self, directory, video_reader, duration, indices, skip_offsets)
kinetics.py:538
↓ 1 callers
Function
brightness_jitter
Perfrom brightness jittering on the input images. The channels of images should be in order BGR. Args: var (float): jitter ratio
video_transforms.py:349
↓ 1 callers
Function
build_pretraining_dataset
(args)
datasets.py:38
↓ 1 callers
Function
contrast_jitter
Perfrom contrast jittering on the input images. The channels of images should be in order BGR. Args: var (float): jitter ratio fo
video_transforms.py:368
↓ 1 callers
Method
fill_fix_offset
(more_fix_crop, image_w, image_h, crop_w, crop_h)
transforms.py:140
↓ 1 callers
Method
forward_features
(self, x)
modeling_finetune.py:261
↓ 1 callers
Method
forward_features
(self, x, mask)
modeling_pretrain.py:88
↓ 1 callers
Function
get_args
()
run_mae_pretraining.py:19
↓ 1 callers
Function
get_args
()
run_class_finetuning.py:27
↓ 1 callers
Function
get_args
()
run_videomae_vis.py:48
↓ 1 callers
Function
get_grad_norm_
(parameters, norm_type: float = 2.0)
utils.py:370
↓ 1 callers
Function
get_loss_scale_for_deepspeed
(model)
engine_for_finetuning.py:19
↓ 1 callers
Function
get_model
(args)
run_mae_pretraining.py:121
↓ 1 callers
Function
get_model
(args)
run_videomae_vis.py:75
↓ 1 callers
Function
get_num_layer_for_vit
(var_name, num_max_layer)
optim_factory.py:24
↓ 1 callers
Method
get_num_layers
(self)
modeling_finetune.py:247
↓ 1 callers
Method
get_params
Get parameters for ``crop`` for a random sized crop. Args: img (PIL Image): Image to be cropped. scale (tuple): range
video_transforms.py:727
↓ 1 callers
Method
get_params
(self, brightness, contrast, saturation, hue)
video_transforms.py:1191
↓ 1 callers
Function
get_position_angle_vec
(position)
modeling_finetune.py:163
↓ 1 callers
Function
get_rank
()
utils.py:234
↓ 1 callers
Function
get_world_size
()
utils.py:228
↓ 1 callers
Function
is_main_process
()
utils.py:240
↓ 1 callers
Function
load
(module, prefix='')
utils.py:302
↓ 1 callers
Function
main
(args)
run_mae_pretraining.py:134
↓ 1 callers
Function
main
(args, ds_init)
run_class_finetuning.py:208
↓ 1 callers
Function
main
(args)
run_videomae_vis.py:88
↓ 1 callers
Function
rand_augment_ops
(magnitude=10, hparams=None, transforms=None)
rand_augment.py:453
↓ 1 callers
Function
rand_bbox
Standard CutMix bounding-box Generates a random square bbox based on lambda value. This impl includes support for enforcing a border margin a
mixup.py:30
↓ 1 callers
Function
rand_bbox_minmax
Min-Max CutMix bounding-box Inspired by Darknet cutmix impl, generates a random rectangular bbox based on min/max percent values applied to e
mixup.py:54
↓ 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
video_transforms.py:388
↓ 1 callers
Function
save_on_master
(*args, **kwargs)
utils.py:244
↓ 1 callers
Function
setup_for_distributed
This function disables printing when not in master process
utils.py:205
↓ 1 callers
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
kinetics.py:281
↓ 1 callers
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
ssv2.py:272
↓ 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
kinetics.py:355
next →
1–100 of 287, ranked by callers