MCPcopy Create free account

hub / github.com/OpenGVLab/unmasked_teacher / functions

Functions1,198 in github.com/OpenGVLab/unmasked_teacher

↓ 2 callersMethodget_rand_indices
get rand indices according to mask. Args: mask (torch.Tensor): Shape: (N, L) 0 indicates the positions that we can sample, 1 other
multi_modality/models/criterions.py:162
↓ 2 callersFunctionget_resize_sizes
(im_h, im_w, size)
single_modality/functional.py:67
↓ 2 callersFunctionget_sinusoid_encoding_table
Sinusoid position encoding table
single_modality/models/modeling_pretrain_umt.py:20
↓ 2 callersMethodget_video_info
(self, index)
single_modality/action_detection/alphaction/dataset/datasets/ava.py:216
↓ 2 callersFunctiongrayscale
Get the grayscale for the input images. The channels of images should be in order BGR. Args: images (tensor): the input images fo
single_modality/datasets/video_transforms.py:291
↓ 2 callersFunctionintersection
Compute pairwise intersection areas between boxes. Args: boxes1: a numpy array with shape [N, 4] holding N boxes boxes2: a numpy array with
single_modality/action_detection/alphaction/dataset/datasets/evaluation/ava/pascal_evaluation/np_box_ops.py:37
↓ 2 callersFunctionintersection
Compute pairwise intersection areas between masks. Args: masks1: a numpy array with shape [N, height, width] holding N masks. Masks value
single_modality/action_detection/alphaction/dataset/datasets/evaluation/ava/pascal_evaluation/np_mask_ops.py:45
↓ 2 callersFunctionis_main_process
()
single_modality/action_detection/alphaction/utils/comm.py:28
↓ 2 callersMethodload_box_file
(self, box_file, score_thresh=0.0)
single_modality/action_detection/alphaction/dataset/datasets/ava.py:225
↓ 2 callersMethodload_data_or_path
(self, data_or_path)
multi_modality/tasks/vqa_utils.py:111
↓ 2 callersFunctionload_labelmap
Loads label map proto. Args: path: path to StringIntLabelMap proto text file. Returns: a StringIntLabelMapProto
single_modality/action_detection/alphaction/dataset/datasets/evaluation/ava/pascal_evaluation/label_map_util.py:119
↓ 2 callersMethodlogic_iou
(self, pred, label)
single_modality/action_detection/alphaction/modeling/roi_heads/action_head/metric.py:11
↓ 2 callersFunctionmain
(config)
multi_modality/tasks/retrieval.py:109
↓ 2 callersFunctionmain
(config)
multi_modality/tasks/retrieval_mc.py:274
↓ 2 callersFunctionmain
(config)
multi_modality/tasks/vqa.py:187
↓ 2 callersFunctionmain_with_ensemble
(config, test_loader, model_without_ddp, tokenizer)
multi_modality/tasks/retrieval_mc.py:54
↓ 2 callersFunctionmake_3d_pooler
(head_cfg)
single_modality/action_detection/alphaction/modeling/poolers.py:42
↓ 2 callersFunctionmerge
(eval_path, num_tasks)
single_modality/engines/engine_for_finetuning.py:233
↓ 2 callersFunctionmerge_a_into_b
The values in a will override values in b. Args: a (dict): source dict. b (dict): target dict. Returns: dict. recursively me
multi_modality/utils/config.py:199
↓ 2 callersFunctionmixup_target
(target, num_classes, lam=1., smoothing=0.0, device='cuda')
single_modality/datasets/mixup.py:22
↓ 2 callersMethodno_weight_decay
(self)
single_modality/action_detection/modeling_finetune.py:272
↓ 2 callersMethodno_weight_decay
(self)
single_modality/models/modeling_finetune.py:293
↓ 2 callersFunctionone_hot
(x, num_classes, on_value=1., off_value=0., device='cuda')
single_modality/datasets/mixup.py:17
↓ 2 callersFunctionpad_sequence
(sequence, targ_size, padding_value=0)
single_modality/action_detection/alphaction/modeling/utils.py:18
↓ 2 callersFunctionpreprocess_para_retrieval_data
(anno_list)
multi_modality/dataset/caption_dataset.py:182
↓ 2 callersMethodprocessPunctuation
(self, inText)
multi_modality/tasks/vqa_utils.py:188
↓ 2 callersFunctionrand_augment_transform
RandAugment: Practical automated data augmentation... - https://arxiv.org/abs/1909.13719 Create a RandAugment transform :param config_st
single_modality/datasets/rand_augment.py:481
↓ 2 callersMethodrandom_aug
(self, jitter_x_out, jitter_x_in, jitter_y_out, jitter_y_in)
single_modality/action_detection/alphaction/structures/bounding_box.py:226
↓ 2 callersFunctionread_csv
Loads boxes and class labels from a CSV file in the AVA format. CSV file format described at https://research.google.com/ava/download.html.
single_modality/action_detection/data/ava_eval.py:130
↓ 2 callersFunctionread_csv
Loads boxes and class labels from a CSV file in the AVA format. CSV file format described at https://research.google.com/ava/download.html.
single_modality/action_detection/alphaction/dataset/datasets/evaluation/ava/ava_eval.py:127
↓ 2 callersFunctionreduce_dict
Args: input_dict (dict): all the values will be reduced average (bool): whether to do average or sum Reduce the values in the
single_modality/action_detection/alphaction/utils/comm.py:173
↓ 2 callersMethodroi_pooling
(self, slow_features, fast_features, proposals)
single_modality/action_detection/alphaction/modeling/roi_heads/action_head/roi_action_feature_extractor.py:45
↓ 2 callersMethodsample_mem_feature
(self, box_list, max_num)
single_modality/action_detection/alphaction/modeling/roi_heads/action_head/roi_action_feature_extractor.py:169
↓ 2 callersFunctionsave_on_master
(*args, **kwargs)
single_modality/utils.py:306
↓ 2 callersFunctionsort_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:
single_modality/action_detection/alphaction/dataset/datasets/evaluation/ava/pascal_evaluation/np_box_list_ops.py:129
↓ 2 callersFunctionspatial_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
single_modality/datasets/ssv2.py:598
↓ 2 callersFunctiontensor_normalize
Normalize a given tensor by subtracting the mean and dividing the std. Args: tensor (tensor): tensor to normalize. mean (tens
single_modality/datasets/ssv2.py:672
↓ 2 callersFunctiontrain_class_batch
(model, samples, target, criterion)
single_modality/engines/engine_for_finetuning.py:14
↓ 2 callersFunctionunfuse_batch_num
(things, batch_size, num)
single_modality/action_detection/alphaction/modeling/roi_heads/action_head/IA_structure.py:390
↓ 2 callersMethodupdate
(self, value, n=1)
multi_modality/utils/basic_utils.py:34
↓ 2 callersMethodupdate
(self, value, n=1)
single_modality/action_detection/utils.py:34
↓ 2 callersMethodupdate_list
(self, update_info_list)
single_modality/action_detection/alphaction/structures/memory_pool.py:11
↓ 2 callersFunctionvalidation_one_epoch
(data_loader, model, device, output_dir, epoch, log_writer=None, fp16=True)
single_modality/action_detection/engine_for_finetuning.py:171
↓ 2 callersFunctionwrite_csv
(ava_results, csv_result_file)
single_modality/action_detection/data/ava_eval.py:172
↓ 2 callersFunctionwrite_csv
(ava_results, csv_result_file, logger)
single_modality/action_detection/alphaction/dataset/datasets/evaluation/ava/ava_eval.py:169
↓ 1 callersFunctionRandomMaskingGenerator
(input_size, mask_ratio, batch, device='cuda')
multi_modality/models/mask.py:22
↓ 1 callersFunctionTubeMaskingGenerator
(input_size, mask_ratio, batch, device='cuda')
multi_modality/models/mask.py:5
↓ 1 callersMethod__init__
(self, ann_file, transform, has_multi_vision_gt=False)
multi_modality/dataset/sqlite_dataset.py:34
↓ 1 callersMethod__init__
(self, ann_file, transform, eos="[SEP]", mode="train", answer_list=None)
multi_modality/dataset/qa_dataset.py:13
↓ 1 callersMethod__init__
( self, model, optimizer=None, scheduler=None, sav
single_modality/action_detection/alphaction/utils/checkpoint.py:13
↓ 1 callersMethod__init__
( self, optimizer, milestones, gamma=0.1, warmup_factor=1.0 / 3,
single_modality/action_detection/alphaction/solver/lr_scheduler.py:9
↓ 1 callersMethod__len__
(self)
single_modality/action_detection/data/ava.py:189
↓ 1 callersMethod__len__
(self)
single_modality/action_detection/alphaction/dataset/datasets/ava.py:281
↓ 1 callersMethod__setitem__
(self, key, value)
single_modality/action_detection/alphaction/structures/memory_pool.py:20
↓ 1 callersFunction_accumulate_predictions_from_multiple_gpus
(predictions_per_gpu)
single_modality/action_detection/alphaction/engine/inference.py:134
↓ 1 callersMethod_aggregate
(self, proposals, query, person_key, object_key, mem_key)
single_modality/action_detection/alphaction/modeling/roi_heads/action_head/IA_structure.py:205
↓ 1 callersFunction_cfg
(url='', **kwargs)
multi_modality/models/backbones/vit/vit.py:14
↓ 1 callersMethod_check_input_dim
(self, input)
single_modality/action_detection/alphaction/layers/batch_norm.py:37
↓ 1 callersMethod_clean_text
Performs invalid character removal and whitespace cleanup on text.
multi_modality/models/backbones/bert/tokenization_bert.py:481
↓ 1 callersFunction_compute_aspect_ratios
(dataset)
single_modality/action_detection/alphaction/dataset/build.py:86
↓ 1 callersMethod_compute_cor_loc
Compute CorLoc score for object detection result. Args: detected_boxes: A float numpy array of shape [N, 4], representing N regio
single_modality/action_detection/alphaction/dataset/datasets/evaluation/ava/pascal_evaluation/per_image_evaluation.py:121
↓ 1 callersMethod_compute_is_class_correctly_detected_in_image
Compute CorLoc score for a single class. Args: detected_boxes: A numpy array of shape [N, 4] representing detected box coordinate
single_modality/action_detection/alphaction/dataset/datasets/evaluation/ava/pascal_evaluation/per_image_evaluation.py:181
↓ 1 callersMethod_compute_tp_fp
Labels true/false positives of detections of an image across all classes. Args: detected_boxes: A float numpy array of shape [N, 4], repres
single_modality/action_detection/alphaction/dataset/datasets/evaluation/ava/pascal_evaluation/per_image_evaluation.py:225
↓ 1 callersMethod_compute_tp_fp_for_single_class
Labels boxes detected with the same class from the same image as tp/fp. Args: detected_boxes: A numpy array of shape [N, 4] representing de
single_modality/action_detection/alphaction/dataset/datasets/evaluation/ava/pascal_evaluation/per_image_evaluation.py:385
↓ 1 callersMethod_copy_extra_fields
(self, bbox)
single_modality/action_detection/alphaction/structures/bounding_box.py:54
↓ 1 callersMethod_decode_video_data
(self, dirname, timestamp)
single_modality/action_detection/data/ava.py:150
↓ 1 callersMethod_decode_video_data
(self, dirname, timestamp)
single_modality/action_detection/alphaction/dataset/datasets/ava.py:242
↓ 1 callersMethod_erase_cube
( self, img, batch_start, batch_size, chan, img_h, img
single_modality/datasets/random_erasing.py:109
↓ 1 callersMethod_get_c2_weight_map
(self)
single_modality/action_detection/alphaction/utils/checkpoint.py:137
↓ 1 callersMethod_get_frame_id_list
(self, duration, indices, skip_offsets)
single_modality/datasets/mae.py:248
↓ 1 callersMethod_get_overlaps_and_scores_box_mode
Computes overlaps and scores between detected and groudntruth boxes. Args: detected_boxes: A numpy array of shape [N, 4] representing detec
single_modality/action_detection/alphaction/dataset/datasets/evaluation/ava/pascal_evaluation/per_image_evaluation.py:344
↓ 1 callersMethod_get_overlaps_and_scores_mask_mode
Computes overlaps and scores between detected and groudntruth masks. Args: detected_boxes: A numpy array of shape [N, 4] representing detec
single_modality/action_detection/alphaction/dataset/datasets/evaluation/ava/pascal_evaluation/per_image_evaluation.py:300
↓ 1 callersMethod_get_seq_frames
(self, video_size, num_frames, clip_idx=-1)
single_modality/datasets/kinetics_sparse.py:237
↓ 1 callersFunction_interpolation
(kwargs)
single_modality/datasets/rand_augment.py:50
↓ 1 callersMethod_is_chinese_char
Checks whether CP is the codepoint of a CJK character.
multi_modality/models/backbones/bert/tokenization_bert.py:457
↓ 1 callersFunction_is_tensor_clip
(clip)
single_modality/functional.py:8
↓ 1 callersMethod_is_valid_boxes
Check whether dataset fullfills the format of N*[ymin, xmin, ymax, xmin]. Args: data: a numpy array of shape [N, 4] representing box coordi
single_modality/action_detection/alphaction/dataset/datasets/evaluation/ava/pascal_evaluation/np_box_list.py:119
↓ 1 callersFunction_load_c2_pickled_weights
(file_path)
single_modality/action_detection/alphaction/utils/c2_model_loading.py:24
↓ 1 callersMethod_load_model
(self, checkpoint, no_head)
single_modality/action_detection/alphaction/utils/checkpoint.py:109
↓ 1 callersMethod_make_dataset
(self, directory, setting)
single_modality/datasets/mae.py:200
↓ 1 callersMethod_mix_batch
(self, x)
single_modality/datasets/mixup.py:196
↓ 1 callersMethod_mix_batch_collate
(self, output, batch)
single_modality/datasets/mixup.py:280
↓ 1 callersMethod_mix_elem
(self, x)
single_modality/datasets/mixup.py:159
↓ 1 callersMethod_mix_elem_collate
(self, output, batch, half=False)
single_modality/datasets/mixup.py:227
↓ 1 callersMethod_mix_pair
(self, x)
single_modality/datasets/mixup.py:176
↓ 1 callersMethod_mix_pair_collate
(self, output, batch)
single_modality/datasets/mixup.py:252
↓ 1 callersFunction_posterize_level_to_arg
(level, _hparams)
single_modality/datasets/rand_augment.py:242
↓ 1 callersFunction_quantize
(x, bins)
single_modality/action_detection/alphaction/dataset/build.py:79
↓ 1 callersMethod_reduce_dim
(self, person, person_boxes, obj_feature, object_boxes, mem_feature)
single_modality/action_detection/alphaction/modeling/roi_heads/action_head/IA_structure.py:173
↓ 1 callersMethod_remove_invalid_boxes
Removes entries with invalid boxes. A box is invalid if either its xmax is smaller than its xmin, or its ymax is smaller than its ymin.
single_modality/action_detection/alphaction/dataset/datasets/evaluation/ava/pascal_evaluation/per_image_evaluation.py:532
↓ 1 callersFunction_rename_weights
(weights, weight_map)
single_modality/action_detection/alphaction/utils/c2_model_loading.py:7
↓ 1 callersMethod_run_split_on_punc
Splits punctuation on a piece of text.
multi_modality/models/backbones/bert/tokenization_bert.py:422
↓ 1 callersMethod_sample_crop_size
(self, im_size)
single_modality/datasets/transforms.py:136
↓ 1 callersMethod_sample_fix_offset
(self, image_w, image_h, crop_w, crop_h)
single_modality/datasets/transforms.py:160
↓ 1 callersFunction_select_rand_weights
(weight_idx=0, transforms=None)
single_modality/datasets/rand_augment.py:444
↓ 1 callersFunction_solarize_level_to_arg
(level, _hparams)
single_modality/datasets/rand_augment.py:263
↓ 1 callersMethod_tconv
(self, conv_dims)
single_modality/action_detection/alphaction/modeling/backbone/slowfast.py:164
↓ 1 callersMethod_tokenize_chinese_chars
Adds whitespace around any CJK character.
multi_modality/models/backbones/bert/tokenization_bert.py:444
↓ 1 callersMethod_update_ground_truth_statistics
Update grouth truth statitistics. 1. Difficult boxes are ignored when counting the number of ground truth instances as done in Pascal VOC dev
single_modality/action_detection/alphaction/dataset/datasets/evaluation/ava/pascal_evaluation/object_detection_evaluation.py:630
↓ 1 callersFunction_validate_label_map
Checks if a label map is valid. Args: label_map: StringIntLabelMap to validate. Raises: ValueError: if label map is invalid.
single_modality/action_detection/alphaction/dataset/datasets/evaluation/ava/pascal_evaluation/label_map_util.py:24
← previousnext →201–300 of 1,198, ranked by callers