MCPcopy Create free account

hub / github.com/OpenGVLab/unmasked_teacher / functions

Functions1,198 in github.com/OpenGVLab/unmasked_teacher

Methodlog_every
(self, iterable, print_freq, header=None)
single_modality/utils.py:120
Methodlog_every_joint
(self, video_loader, image_loader, print_freq, header=None, image_num_ratio=1.0)
single_modality/utils.py:166
Functionlr_lambda
(current_step)
multi_modality/utils/scheduler.py:50
Functionmake_data_loader
(cfg, is_train=True, is_distributed=False, start_iter=0)
single_modality/action_detection/alphaction/dataset/build.py:117
Functionmake_lr_scheduler
(cfg, optimizer)
single_modality/action_detection/alphaction/solver/build.py:38
Functionmake_optimizer
(cfg, model)
single_modality/action_detection/alphaction/solver/build.py:9
Functionmask_logits
(target, mask)
multi_modality/models/utils.py:203
Functionmatch_key_and_shape
(state_dict1, state_dict2)
multi_modality/utils/basic_utils.py:267
Methodmedian
(self)
multi_modality/utils/basic_utils.py:54
Methodmedian
(self)
single_modality/utils.py:53
Methodmedian
(self)
single_modality/action_detection/utils.py:53
Methodmedian
(self)
single_modality/action_detection/alphaction/utils/metric_logger.py:26
Functionmerge_dicts
(list_dicts)
multi_modality/utils/basic_utils.py:282
Functionmulti_class_non_max_suppression
Multi-class version of non maximum suppression. This op greedily selects a subset of detection bounding boxes, pruning away boxes that have high
single_modality/action_detection/alphaction/dataset/datasets/evaluation/ava/pascal_evaluation/np_box_mask_list_ops.py:236
Functionmulti_class_non_max_suppression
Multi-class version of non maximum suppression. This op greedily selects a subset of detection bounding boxes, pruning away boxes that have high
single_modality/action_detection/alphaction/dataset/datasets/evaluation/ava/pascal_evaluation/np_box_list_ops.py:234
Functionmultiple_pretrain_samples_collate
Collate function for repeated augmentation. Each instance in the batch has more than one sample. Args: batch (tuple or list): dat
single_modality/utils.py:654
Functionmultiple_samples_collate
Collate function for repeated augmentation. Each instance in the batch has more than one sample. Args: batch (tuple or list): dat
single_modality/utils.py:629
Functionmultiple_samples_collate
Collate function for repeated augmentation. Each instance in the batch has more than one sample. Args: batch (tuple or list): dat
single_modality/action_detection/utils.py:513
Methodno_weight_decay
(self)
multi_modality/models/backbones/vit/vit.py:243
Methodno_weight_decay
(self)
single_modality/models/modeling_pretrain.py:70
Methodno_weight_decay
(self)
single_modality/models/modeling_pretrain.py:144
Methodno_weight_decay
(self)
single_modality/models/modeling_pretrain.py:261
Methodno_weight_decay
(self)
single_modality/models/modeling_pretrain_umt.py:94
Methodno_weight_decay
(self)
single_modality/models/modeling_pretrain_umt.py:252
Functionnormalize
(clip, mean, std, inplace=False)
single_modality/functional.py:77
Functionpad_sequences_1d
Pad a single-nested list or a sequence of n-d array (torch.tensor or np.ndarray) into a (n+1)-d array, only allow the first dim has variable leng
multi_modality/dataset/utils.py:169
Functionposterize
(img, bits_to_keep, **__)
single_modality/datasets/rand_augment.py:173
Methodprepare_inputs_for_generation
( self, input_ids, past=None, attention_mask=None, **model_kwargs )
multi_modality/models/backbones/bert/xbert.py:1542
Methodprepare_inputs_for_generation
(self, input_ids, attention_mask=None, **model_kwargs)
multi_modality/models/backbones/bert/xbert.py:1688
Functionpretrain_umt_large_patch16_224
(pretrained=False, **kwargs)
single_modality/models/modeling_pretrain_umt.py:295
Functionpretrain_videomae_base_patch16_224
(pretrained=False, **kwargs)
single_modality/models/modeling_pretrain.py:281
Functionpretrain_videomae_huge_patch16_224
(pretrained=False, **kwargs)
single_modality/models/modeling_pretrain.py:331
Functionpretrain_videomae_large_patch16_224
(pretrained=False, **kwargs)
single_modality/models/modeling_pretrain.py:306
Functionprune_non_overlapping_boxes
Prunes the boxes in boxlist1 that overlap less than thresh with boxlist2. For each box in boxlist1, we want its IOA to be more than minoverlap with
single_modality/action_detection/alphaction/dataset/datasets/evaluation/ava/pascal_evaluation/np_box_list_ops.py:367
Functionprune_non_overlapping_masks
Prunes the boxes in list1 that overlap less than thresh with list2. For each mask in box_mask_list1, we want its IOA to be more than minoverlap w
single_modality/action_detection/alphaction/dataset/datasets/evaluation/ava/pascal_evaluation/np_box_mask_list_ops.py:314
Functionprune_outside_window
Prunes bounding boxes that fall outside a given window. This function prunes bounding boxes that even partially fall outside the given window. Se
single_modality/action_detection/alphaction/dataset/datasets/evaluation/ava/pascal_evaluation/np_box_list_ops.py:390
Functionrandom_resized_crop
Crop the given images to random size and aspect ratio. A crop of random size (default: of 0.08 to 1.0) of the original size and a random aspe
single_modality/datasets/video_transforms.py:540
Functionrandom_resized_crop_with_shift
This is similar to random_resized_crop. However, it samples two different boxes (for cropping) for the first and last frame. It then linearly
single_modality/datasets/video_transforms.py:575
Functionrandom_sized_crop_img
Performs Inception-style cropping (used for training).
single_modality/datasets/video_transforms.py:656
Functionread_frames_av
(video_path, num_frames, sample='rand', fix_start=None, max_num_frames=-1)
multi_modality/dataset/video_utils.py:89
Functionread_frames_decord
( video_path, num_frames, sample='rand', fix_start=None, max_num_frames=-1, client=None, trim
multi_modality/dataset/video_utils.py:127
Functionread_frames_gif
( video_path, num_frames, sample='rand', fix_start=None, max_num_frames=-1, client=None, tri
multi_modality/dataset/video_utils.py:104
Methodregister
(self, module_name, module=None)
single_modality/action_detection/alphaction/utils/registry.py:33
Methodregister_fn
(fn)
single_modality/action_detection/alphaction/utils/registry.py:40
Functionremove_files_if_exist
(file_paths)
multi_modality/utils/basic_utils.py:227
Methodreset_classifier
(self, num_classes, global_pool='')
single_modality/action_detection/modeling_finetune.py:278
Methodreset_classifier
(self, num_classes, global_pool='')
single_modality/models/modeling_finetune.py:299
Methodreset_classifier
(self, num_classes, global_pool='')
single_modality/models/modeling_pretrain.py:76
Methodreset_classifier
(self, num_classes, global_pool='')
single_modality/models/modeling_pretrain.py:150
Methodreset_classifier
(self, num_classes, global_pool='')
single_modality/models/modeling_pretrain_umt.py:100
Functionresize_clip
(clip, size, interpolation='bilinear')
single_modality/functional.py:26
Functionrotate
(img, degrees, **kwargs)
single_modality/datasets/rand_augment.py:108
Methodsave_attn_gradients
(self, attn_gradients)
multi_modality/models/backbones/bert/xbert.py:373
Functionsave_latest_model
(args, epoch, model, model_without_ddp, optimizer, loss_scaler, model_name='latest', model_ema=None)
single_modality/utils.py:492
Functionsave_model
(args, epoch, model, model_without_ddp, optimizer, loss_scaler, model_ema=None)
single_modality/utils.py:467
Functionsave_model
(args, epoch, model, model_without_ddp, optimizer, loss_scaler, model_ema=None)
single_modality/action_detection/utils.py:405
Functionsave_on_master
(*args, **kwargs)
multi_modality/utils/distributed.py:52
Methodsave_vocabulary
(self, save_directory: str, filename_prefix: Optional[str] = None)
multi_modality/models/backbones/bert/tokenization_bert.py:324
Functionseed_worker
(worker_id)
single_modality/utils.py:251
Functionseed_worker
(worker_id)
single_modality/action_detection/utils.py:190
Methodset_input_embeddings
(self, value)
multi_modality/models/backbones/bert/xbert.py:1038
Methodset_output_embeddings
(self, new_embeddings)
multi_modality/models/backbones/bert/xbert.py:1310
Methodset_output_embeddings
(self, new_embeddings)
multi_modality/models/backbones/bert/xbert.py:1417
Methodset_output_embeddings
(self, new_embeddings)
multi_modality/models/backbones/bert/xbert.py:1602
Functionset_seed
(seed, rank, world_size)
single_modality/action_detection/alphaction/utils/random_seed.py:5
Functionsetup_logger
(name, save_dir, distributed_rank, filename=None)
single_modality/action_detection/alphaction/utils/logger.py:8
Functionsetup_tblogger
(save_dir, distributed_rank)
single_modality/action_detection/alphaction/utils/logger.py:31
Functionsetup_very_basic_config
(color=True)
multi_modality/utils/logger.py:172
Functionsharpness
(img, factor, **__)
single_modality/datasets/rand_augment.py:191
Functionshear_x
(img, factor, **kwargs)
single_modality/datasets/rand_augment.py:64
Functionshear_y
(img, factor, **kwargs)
single_modality/datasets/rand_augment.py:71
Methodsimple_mlm_loss
( self, text_encoder, text, text_embeds, vision_embeds, vision
multi_modality/models/criterions.py:254
Functionsolarize
(img, thresh, **__)
single_modality/datasets/rand_augment.py:154
Functionsolarize_add
(img, add, thresh=128, **__)
single_modality/datasets/rand_augment.py:158
Methodsynchronize_between_processes
Warning: does not synchronize the deque!
multi_modality/utils/basic_utils.py:39
Methodsynchronize_between_processes
Warning: does not synchronize the deque!
single_modality/utils.py:39
Methodsynchronize_between_processes
(self)
single_modality/utils.py:113
Methodsynchronize_between_processes
Warning: does not synchronize the deque!
single_modality/action_detection/utils.py:39
Methodtie_aux_decoder_weights
Tie decoder weights of all `aux_modules` to `module`, (not bias)
multi_modality/models/backbones/bert/xbert.py:1594
Methodtokenize
Tokenizes a piece of text into its word pieces. This uses a greedy longest-match-first algorithm to perform tokenization using the gi
multi_modality/models/backbones/bert/tokenization_bert.py:503
Methodtorch_uniform
(rows, a=0.0, b=1.0)
single_modality/action_detection/alphaction/structures/bounding_box.py:231
Functiontransforms_imagenet_train
If separate==True, the transforms are returned as a tuple of 3 separate transforms for use in a mixing dataset that passes * all data th
single_modality/datasets/video_transforms.py:798
Functiontranslate_x_abs
(img, pixels, **kwargs)
single_modality/datasets/rand_augment.py:94
Functiontranslate_x_rel
(img, pct, **kwargs)
single_modality/datasets/rand_augment.py:78
Functiontranslate_y_abs
(img, pixels, **kwargs)
single_modality/datasets/rand_augment.py:101
Functiontranslate_y_rel
(img, pct, **kwargs)
single_modality/datasets/rand_augment.py:86
Methodupdate
(self, head='scalar', step=None, **kwargs)
single_modality/action_detection/utils.py:178
Methodupdate
(self, value)
single_modality/action_detection/alphaction/utils/metric_logger.py:19
Methodvalue
(self)
single_modality/utils.py:71
Functionvit_base_patch16_224
(pretrained=False, **kwargs)
single_modality/action_detection/modeling_finetune.py:336
Functionvit_base_patch16_224
(pretrained=False, **kwargs)
single_modality/models/modeling_finetune.py:330
Functionvit_base_patch16_384
(pretrained=False, **kwargs)
single_modality/models/modeling_finetune.py:339
Functionvit_large_patch16_224
(pretrained=False, **kwargs)
single_modality/action_detection/modeling_finetune.py:345
Functionvit_large_patch16_224
(pretrained=False, **kwargs)
single_modality/models/modeling_finetune.py:348
Functionvit_large_patch16_384
(pretrained=False, **kwargs)
single_modality/action_detection/modeling_finetune.py:354
Methodvocab_size
(self)
multi_modality/models/backbones/bert/tokenization_bert.py:215
Functionvqa_collate_fn
(batch)
multi_modality/dataset/__init__.py:211
Functionwarn
(*args, **kwargs)
multi_modality/utils/distributed.py:15
← previous1,101–1,198 of 1,198, ranked by callers