MCPcopy Create free account

hub / github.com/alibaba-mmai-research/TAdaConv / functions

Functions571 in github.com/alibaba-mmai-research/TAdaConv

Functioninitialize_bucket
Wrapper for bucket initialization, with specified key, secret, endpoint, and bucket name. See more: https://pypi.org/project/oss2/. A
tadaconv/utils/bucket.py:13
Functioninvert
(img, **__)
tadaconv/datasets/utils/auto_augment.py:119
Functionis_checkpoint_epoch
Determine if a checkpoint should be saved on current epoch. Args: cfg (Config): the global config object. cur_epoch (int): cu
tadaconv/utils/checkpoint.py:126
Functionis_eval_epoch
Determine if the model should be evaluated at the current epoch. Args: cfg (Config): the global config object. cur_epoch (int
tadaconv/utils/misc.py:168
Functionis_master_proc
Determines if the current process is the master process.
tadaconv/utils/distributed.py:98
Methodis_paused
Returns: bool: whether the timer is currently paused
tadaconv/utils/timer.py:35
Methoditer_tic
(self)
tadaconv/utils/meters.py:134
Methoditer_tic
(self)
tadaconv/utils/meters.py:359
Methoditer_tic
Start to record time.
tadaconv/utils/meters.py:563
Methoditer_toc
(self)
tadaconv/utils/meters.py:137
Methoditer_toc
(self)
tadaconv/utils/meters.py:362
Methoditer_toc
Stop to record time.
tadaconv/utils/meters.py:569
Functionjoint_topks_correct
Calculates number of correctly predicted samples for each top-k value respectively for separate verb/noun, and joint action predictions.
tadaconv/utils/metrics.py:12
Functionlecun_normal_
(tensor)
tadaconv/models/utils/init_helper.py:100
Functionload_test_checkpoint
Loading checkpoint logic for testing.
tadaconv/utils/checkpoint.py:453
Functionload_train_checkpoint
Loading checkpoint logic for training.
tadaconv/utils/checkpoint.py:531
Methodlog_epoch_stats
Log the stats of the current epoch. Args: cur_epoch (int): the number of current epoch.
tadaconv/utils/meters.py:645
Methodlog_iter_stats
Log the stats. Args: cur_iter (int): the current iteration of testing.
tadaconv/utils/meters.py:116
Methodlog_iter_stats
Log the stats. Args: cur_iter (int): the current iteration of testing.
tadaconv/utils/meters.py:341
Methodlog_iter_stats
log the stats of the current iteration. Args: cur_epoch (int): the number of current epoch. cur_iter (int): t
tadaconv/utils/meters.py:615
Functionlog_json_stats
Logs json stats. Args: stats (dict): a dictionary of statistical information to log.
tadaconv/utils/logging.py:77
Functionlog_model_info
Log info, includes number of parameters, gpu usage, gflops and activation count. The model info is computed when the model is in validati
tadaconv/utils/misc.py:145
Functionlr_func_cosine
Retrieve the learning rate to specified values at specified epoch with the cosine learning rate schedule. Details can be found in: Ilya L
tadaconv/models/utils/lr_policy.py:30
Functionlr_func_cosine_v2
Retrieve the learning rate to specified values at specified epoch with the cosine learning rate schedule. Details can be found in: Ilya L
tadaconv/models/utils/lr_policy.py:46
Functionlr_func_steps_with_relative_lrs
Retrieve the learning rate to specified values at specified epoch with the steps with relative learning rate schedule. Args: cfg
tadaconv/models/utils/lr_policy.py:71
Functionmake_checkpoint_dir
Creates the checkpoint directory (if not present already). Args: path_to_job (string): the path to the folder of the current job.
tadaconv/utils/checkpoint.py:63
Functionparse_epic_bmn_proposals
Parse epic proposals by BMN map Args: cfg (Config): the global config object. results_dict (dict): Maps output by BMN. re
tadaconv/utils/tal_tools.py:67
Functionplot_input
Plot the input tensor with the optional bounding box and save it to disk. Args: tensor (tensor): a tensor with shape of `NxCxHxW`.
tadaconv/utils/misc.py:183
Functionposterize
(img, bits_to_keep, **__)
tadaconv/datasets/utils/auto_augment.py:146
Functionprint_pass
(*objects, sep=" ", end="\n", file=sys.stdout, flush=False)
tadaconv/utils/logging.py:26
Functionput_to_bucket
Wrapper for putting data to the specified bucket. See more: https://pypi.org/project/oss2/. Args: bucket (oss2.Bucket):
tadaconv/utils/bucket.py:90
Functionread_from_bucket
Wrapper for reading data to the hard drive of local machine, from the specified bucket. See more: https://pypi.org/project/oss2/. Ar
tadaconv/utils/bucket.py:66
Functionread_from_buffer
Wrapper for reading data directly to the memory of the local machine, from the specified bucket. See more: https://pypi.org/project/oss2/.
tadaconv/utils/bucket.py:37
Methodrecur
(key, elem)
tadaconv/utils/config.py:241
Methodreg
(obj)
tadaconv/utils/registry.py:45
Methodregister
Wrapper function for registering a module.
tadaconv/utils/registry.py:41
Methodreset
Reset the deque.
tadaconv/utils/meters.py:486
Methodreset
Reset the Meter.
tadaconv/utils/meters.py:548
Methodresume
Resume the timer.
tadaconv/utils/timer.py:42
Functionrotate
(img, degrees, **kwargs)
tadaconv/datasets/utils/auto_augment.py:83
Functionrun
Runs a function from a child process. Args: local_rank (int): rank of the current process on the current machine. func (funct
tadaconv/utils/launcher.py:38
Functionsave_checkpoint
Save a checkpoint. Args: model (model): model to save the weight to the checkpoint. optimizer (optim): optimizer to save the
tadaconv/utils/checkpoint.py:139
Functionsave_epic_props
Save a video proposals for epic-kitchen. Args: cfg (Config): the global config object. bucket (Oss bucket): ignore it if you
tadaconv/utils/tal_tools.py:31
Methodset
(self, model)
tadaconv/models/utils/model_ema.py:47
Methodset_epoch
(self, epoch)
tadaconv/utils/val_dist_sampler.py:102
Functionset_lr
Sets the optimizer lr to the specified value. Args: optimizer (optim): the optimizer using to optimize the current network. n
tadaconv/models/utils/optimizer.py:263
Methodset_spatial_index
(self, idx)
tadaconv/datasets/utils/transformations.py:320
Functionsetup_logging
Sets up the logging for multiple processes. Only enable the logging for the master process, and suppress logging for the non-master processes
tadaconv/utils/logging.py:32
Functionsharpness
(img, factor, **__)
tadaconv/datasets/utils/auto_augment.py:164
Functionshear_x
(img, factor, **kwargs)
tadaconv/datasets/utils/auto_augment.py:51
Functionshear_y
(img, factor, **kwargs)
tadaconv/datasets/utils/auto_augment.py:56
Functionsolarize
(img, thresh, **__)
tadaconv/datasets/utils/auto_augment.py:127
Functionsolarize_add
(img, add, thresh=128, **__)
tadaconv/datasets/utils/auto_augment.py:131
Functionsubmission_test
Performs multi-view test on the submission set, and save the prediction results. Currently only support EPIC-KITCHENS submission set. Arg
runs/submission_test.py:193
Functionsynchronize
Helper function to synchronize (barrier) among all processes when using distributed training
tadaconv/utils/distributed.py:130
Functiontensor2cuda
Put Tensor in iterable data into gpu. Args: data :(tensor or list or dict)
tadaconv/utils/tensor.py:4
Functiontest
Perform multi-view testing on the pretrained video model. Args: cfg (Config): The global config object.
runs/test.py:180
Functiontest_epic_localization
Perform sliding windows testing on the pretrained video model. Args: cfg (CfgNode): Gobal configs.
runs/test_epic_localization.py:148
Functiontopk_accuracies
Computes the top-k accuracy for each k. Args: preds (array): array of predictions. Dimension is N. labels (array): array of l
tadaconv/utils/metrics.py:148
Functiontopk_errors
Computes the top-k error for each k. Args: preds (array): array of predictions. Dimension is N. labels (array): array of labe
tadaconv/utils/metrics.py:136
Functiontrain
Train a video model for many epochs on train set and evaluate it on val set. Args: cfg (Config): The global config object.
runs/train.py:317
Functiontranslate_x_abs
(img, pixels, **kwargs)
tadaconv/datasets/utils/auto_augment.py:73
Functiontranslate_x_rel
(img, pct, **kwargs)
tadaconv/datasets/utils/auto_augment.py:61
Functiontranslate_y_abs
(img, pixels, **kwargs)
tadaconv/datasets/utils/auto_augment.py:78
Functiontranslate_y_rel
(img, pct, **kwargs)
tadaconv/datasets/utils/auto_augment.py:67
Methodupdate_custom_stats
Update stats using custom keys. Args: stats (dict): additional stats to be updated.
tadaconv/utils/meters.py:603
Methodupdate_stats
Collect the predictions from the current batch and perform on-the-flight summation as ensemble. Args: preds (tens
tadaconv/utils/meters.py:81
Methodupdate_stats
Update the current stats. Args: top1_err (float): top1 error rate. top5_err (float): top5 error rate.
tadaconv/utils/meters.py:575
Methodupdate_stats_multi_label
Collect the predictions from the current batch and perform on-the-flight summation as ensemble, for joint verb and noun training.
tadaconv/utils/meters.py:293
Methodupdate_stats_separate_label
Collect the predictions from the current batch and perform on-the-flight summation as ensemble, for separate verb and noun training.
tadaconv/utils/meters.py:265
Methodvisualize_features
Visualizes and saves the normalized output features for the module.
tadaconv/models/base/base_blocks.py:41
← previous501–571 of 571, ranked by callers