MCPcopy Create free account

hub / github.com/MTLab/MorphMLP / functions

Functions764 in github.com/MTLab/MorphMLP

Method__init__
Args: cfg (CfgNode): configs. Details can be found in slowfast/config/defaults.py async_vis (AsyncVis
slowfast/visualization/predictor.py:124
Method__init__
Args: cfg (CfgNode): configs. Details can be found in slowfast/config/defaults.py gpu_id (Optional[in
slowfast/visualization/predictor.py:164
Method__init__
Args: model (nn.Module): the model containing layers to obtain weights and activations from. layers (list of strings)
slowfast/visualization/utils.py:163
Method__init__
(self)
slowfast/visualization/utils.py:344
Method__init__
Args: model (model): the model to be used. target_layers (list of str(s)): name of convolutional layer to be used to
slowfast/visualization/gradcam_utils.py:19
Method__init__
Args: cfg (CfgNode): configs. Details can be found in slowfast/config/defaults.py
slowfast/visualization/prediction_vis.py:22
Method__init__
Args: cfg (CfgNode): configs. Details can be found in slowfast/config/defaults.py
slowfast/visualization/ava_demo_precomputed_boxes.py:30
Method__init__
Construct the Kinetics video loader with a given csv file. The format of the csv file is: ``` path_to_video_1 label_1
slowfast/datasets/kinetics.py:35
Method__init__
(self, cfg, split)
slowfast/datasets/ava_dataset.py:23
Method__init__
Load Something-Something V2 data (frame paths, labels, etc. ) to a given Dataset object. The dataset could be downloaded from Somethi
slowfast/datasets/ssv2.py:33
Method__init__
(self, cfg, mode, num_retries=10)
slowfast/datasets/imagenet.py:29
Method__init__
(self, sampler, batch_size, drop_last, cfg)
slowfast/datasets/multigrid_helper.py:26
Method__init__
( self, size, scale=(0.08, 1.0), ratio=(3.0 / 4.0, 4.0 / 3.0), interpo
slowfast/datasets/transform.py:708
Method__init__
(self, sigma=[0.1, 2.0])
slowfast/datasets/transform.py:1006
Method__init__
( self, sigma_min=[0.0, 0.1], sigma_max=[0.0, 2.0], use_PIL=False )
slowfast/datasets/transform.py:1019
Method__init__
Args: mixup_alpha (float): Mixup alpha value. cutmix_alpha (float): Cutmix alpha value. mix_prob (float):
slowfast/datasets/mixup.py:117
Method__init__
Construct the dataset. Args: num_vidoes (int): number of videos in the dataset. clips_per_video (int): numbe
slowfast/datasets/ptv_datasets.py:47
Method__init__
(self, num_clips, num_crops)
slowfast/datasets/ptv_datasets.py:114
Method__init__
(self, name, prob=0.5, magnitude=10, hparams=None)
slowfast/datasets/rand_augment.py:344
Method__init__
(self, ops, num_layers=2, choice_weights=None)
slowfast/datasets/rand_augment.py:465
Method__init__
Load Charades data (frame paths, labels, etc. ) to a given Dataset object. The dataset could be downloaded from Chrades official webs
slowfast/datasets/charades.py:31
Method__init__
Load Something-Something data (frame paths, labels, etc. ) to a given Dataset object. The dataset could be downloaded from Something-
slowfast/datasets/sth.py:37
Method__init__
( self, probability=0.5, min_area=0.02, max_area=1 / 3, min_aspect=0.3
slowfast/datasets/random_erasing.py:53
Method__init__
Args: dim (int): number of dimension for the input. dim_inner (int): number of dimension inside of the Non-local bloc
slowfast/models/nonlocal_helper.py:20
Method__init__
The `__init__` method of any subclass should also contain these arguments. Args: cfg (CfgNode): model buildi
slowfast/models/ptv_model_builder.py:64
Method__init__
The `__init__` method of any subclass should also contain these arguments. Args: cfg (CfgNode): model buildi
slowfast/models/ptv_model_builder.py:226
Method__init__
The `__init__` method of any subclass should also contain these arguments. Args: cfg (CfgNode): model buildi
slowfast/models/ptv_model_builder.py:523
Method__init__
The `__init__` method of any subclass should also contain these arguments. Args: cfg (CfgNode): model buildi
slowfast/models/ptv_model_builder.py:608
Method__init__
The `__init__` method of any subclass should also contain these arguments. Args: cfg (CfgNode): model buildi
slowfast/models/ptv_model_builder.py:709
Method__init__
Args: num_splits (int): number of splits. args (list): other arguments.
slowfast/models/batchnorm_helper.py:51
Method__init__
Args: dim_in (int): the channel dimension of the input. fusion_conv_channel_ratio (int): channel ratio for the convol
slowfast/models/video_model_builder.py:112
Method__init__
The `__init__` method of any subclass should also contain these arguments. Args: cfg (CfgNode): model buildin
slowfast/models/video_model_builder.py:175
Method__init__
The `__init__` method of any subclass should also contain these arguments. Args: cfg (CfgNode): model buildi
slowfast/models/video_model_builder.py:454
Method__init__
(self, cfg)
slowfast/models/video_model_builder.py:815
Method__init__
(self, reduction="mean")
slowfast/models/losses.py:17
Method__init__
Args: dim_in (int): the channel dimensions of the input. dim_out (int): the channel dimension of the output.
slowfast/models/resnet_helper.py:34
Method__init__
Args: dim_in (int): the channel dimensions of the input. dim_out (int): the channel dimension of the output.
slowfast/models/resnet_helper.py:127
Method__init__
Args: dim_in (int): the channel dimensions of the input. dim_out (int): the channel dimension of the output.
slowfast/models/resnet_helper.py:267
Method__init__
The `__init__` method of any subclass should also contain these arguments. ResStage builds p streams, where p can be greater or equal
slowfast/models/resnet_helper.py:537
Method__init__
The `__init__` method of any subclass should also contain these arguments. List size of 1 for single pathway models (C2D, I3D, Slow
slowfast/models/stem_helper.py:26
Method__init__
The `__init__` method of any subclass should also contain these arguments. Args: dim_in (int): the channel dimension of
slowfast/models/stem_helper.py:134
Method__init__
( self, dim_in=3, dim_out=768, kernel=(1, 16, 16), stride=(1, 4, 4),
slowfast/models/stem_helper.py:297
Method__init__
(self, cfg)
slowfast/models/contrastive.py:39
Method__init__
(self, power=2, dim=1)
slowfast/models/contrastive.py:926
Method__init__
(self, length, duration, dim, cfg)
slowfast/models/contrastive.py:1045
Method__init__
(self, dims)
slowfast/models/common.py:38
Method__init__
(self, drop_prob=None)
slowfast/models/common.py:65
Method__init__
( self, dim, dim_out, input_size, num_heads=8, qkv_bias=False,
slowfast/models/attention.py:163
Method__init__
The `__init__` method of any subclass should also contain these arguments. ResNetRoIHead takes p pathways as input where
slowfast/models/head_helper.py:21
Method__init__
The `__init__` method of any subclass should also contain these arguments. ResNetBasicHead takes p pathways as input wher
slowfast/models/head_helper.py:206
Method__init__
The `__init__` method of any subclass should also contain these arguments. X3DHead takes a 5-dim feature tensor (BxCxTxHx
slowfast/models/head_helper.py:366
Method__init__
Perform linear projection and activation as head for tranformers. Args: dim_in (int): the channel dimension of the input
slowfast/models/head_helper.py:502
Method__init__
Args: dim_in (int): the channel dimensions of the input. ratio (float): the channel reduction ratio for squeeze.
slowfast/models/operators.py:35
Method__init__
(self, dim, segment_dim=8, qkv_bias=False, qk_scale=None, attn_drop=0., proj_drop=0.)
slowfast/models/morphmlp_32.py:37
Method__init__
(self, dim, segment_dim=8, qkv_bias=False, qk_scale=None, attn_drop=0., proj_drop=0.)
slowfast/models/morphmlp_32.py:75
Method__init__
(self, dim, segment_dim=8, qkv_bias=False, qk_scale=None, attn_drop=0., proj_drop=0.)
slowfast/models/morphmlp_32.py:116
Method__init__
(self, dim, segment_dim, mlp_ratio=4., qkv_bias=False, qk_scale=None, drop=0., attn_drop=0.,
slowfast/models/morphmlp_32.py:148
Method__init__
(self, img_size=224, patch_size=16, in_chans=3, embed_dim=768)
slowfast/models/morphmlp_32.py:176
Method__init__
(self, in_embed_dim, out_embed_dim, patch_size)
slowfast/models/morphmlp_32.py:196
Method__init__
(self, cfg)
slowfast/models/morphmlp_32.py:212
Method__init__
(self, dim, segment_dim=8, qkv_bias=False, qk_scale=None, attn_drop=0., proj_drop=0.)
slowfast/models/morphmlp.py:39
Method__init__
(self, dim, segment_dim=8, qkv_bias=False, qk_scale=None, attn_drop=0., proj_drop=0.)
slowfast/models/morphmlp.py:77
Method__init__
(self, dim, segment_dim=8, qkv_bias=False, qk_scale=None, attn_drop=0., proj_drop=0.)
slowfast/models/morphmlp.py:118
Method__init__
(self, dim, segment_dim, mlp_ratio=4., qkv_bias=False, qk_scale=None, drop=0., attn_drop=0.,
slowfast/models/morphmlp.py:147
Method__init__
(self, img_size=224, patch_size=16, in_chans=3, embed_dim=768)
slowfast/models/morphmlp.py:175
Method__init__
(self, in_embed_dim, out_embed_dim, patch_size)
slowfast/models/morphmlp.py:195
Method__init__
(self, cfg)
slowfast/models/morphmlp.py:211
Method__iter__
(self)
slowfast/visualization/demo_loader.py:67
Method__iter__
(self)
slowfast/visualization/demo_loader.py:226
Method__iter__
(self)
slowfast/datasets/multigrid_helper.py:68
Method__iter__
(self)
slowfast/datasets/ptv_datasets.py:90
Method__len__
Returns: (int): the number of videos in the dataset.
slowfast/datasets/kinetics.py:395
Method__len__
Returns: (int): the number of videos in the dataset.
slowfast/datasets/ava_dataset.py:98
Method__len__
Returns: (int): the number of videos in the dataset.
slowfast/datasets/ssv2.py:272
Method__len__
(self)
slowfast/datasets/imagenet.py:202
Method__len__
(self)
slowfast/datasets/multigrid_helper.py:82
Method__len__
Returns: (int): the number of clips per replica in the IterableDataset.
slowfast/datasets/ptv_datasets.py:75
Method__len__
Returns: (int): the number of videos in the dataset.
slowfast/datasets/charades.py:249
Method__len__
Returns: (int): the number of videos in the dataset.
slowfast/datasets/sth.py:382
Method__next__
Read and return the required number of frames for 1 clip. Returns: was_read (bool): False if not enough frames to return.
slowfast/visualization/demo_loader.py:70
Method__next__
(self)
slowfast/visualization/demo_loader.py:268
Method__next__
Retrieves the next clip from the dataset.
slowfast/datasets/ptv_datasets.py:61
Method__repr__
(self)
slowfast/datasets/transform.py:784
Function_enhance_increasing_level_to_arg
(level, _hparams)
slowfast/datasets/rand_augment.py:214
Function_enhance_level_to_arg
(level, _hparams)
slowfast/datasets/rand_augment.py:209
Method_get_keyframe_clip
Return a clip corresponding to a keyframe index for visualization. Args: keyframe_idx (int): keyframe index.
slowfast/visualization/ava_demo_precomputed_boxes.py:327
Method_get_layer
Return a layer (nn.Module Object) given a hierarchical layer name, separated by /. Args: layer_name (str): the name of th
slowfast/visualization/utils.py:178
Method_init_weights
(self, m)
slowfast/models/video_model_builder.py:1027
Method_init_weights
(self, m)
slowfast/models/morphmlp_32.py:309
Method_init_weights
(self, m)
slowfast/models/morphmlp.py:311
Function_posterize_increasing_level_to_arg
(level, hparams)
slowfast/datasets/rand_augment.py:251
Function_posterize_original_level_to_arg
(level, _hparams)
slowfast/datasets/rand_augment.py:258
Function_rotate_level_to_arg
(level, _hparams)
slowfast/datasets/rand_augment.py:202
Function_shear_level_to_arg
(level, _hparams)
slowfast/datasets/rand_augment.py:222
Function_solarize_add_level_to_arg
(level, _hparams)
slowfast/datasets/rand_augment.py:277
Function_solarize_increasing_level_to_arg
(level, _hparams)
slowfast/datasets/rand_augment.py:271
Function_translate_abs_level_to_arg
(level, hparams)
slowfast/datasets/rand_augment.py:229
Function_translate_rel_level_to_arg
(level, hparams)
slowfast/datasets/rand_augment.py:236
Function_update_valid_indices_by_removing_high_iou_boxes
( selected_indices, is_index_valid, intersect_over_union, threshold )
slowfast/utils/ava_evaluation/np_box_list_ops.py:589
Functionadd_custom_config
(_C)
slowfast/config/custom_config.py:7
← previousnext →401–500 of 764, ranked by callers