MCPcopy Create free account

hub / github.com/alipay/Ant-Multi-Modal-Framework / functions

Functions4,004 in github.com/alipay/Ant-Multi-Modal-Framework

↓ 1 callersFunctionrun
()
prj/dmae_vtp/run.py:15
↓ 1 callersFunctionrun
()
prj/base_vtp/run.py:15
↓ 1 callersFunctionrun
()
prj/cnvid_vtp/run.py:15
↓ 1 callersFunctionsafe_save_model_for_hf_trainer
Collects the state dict and dump to disk.
prj/Pink/pink/train/train.py:121
↓ 1 callersMethodsave_batch
(self, image_paths, *feats_res)
antmmf/datasets/features/vision/feature_saver.py:40
↓ 1 callersMethodsave_config
(self)
antmmf/common/checkpoint.py:133
↓ 1 callersMethodsave_vocabulary
(self, vocabulary)
antmmf/scripts/extract_vocabulary.py:46
↓ 1 callersMethodscale
Scale the box with horizontal and vertical scaling factors
antmmf/structures/boxes.py:245
↓ 1 callersFunctionscatter_mean
( src: torch.Tensor, index: torch.Tensor, dim: int = -1, out: Optional[torch.Tensor] = None,
antmmf/utils/scatter.py:49
↓ 1 callersMethodsequential_transform
(self, x)
antmmf/datasets/processors/image_processors.py:543
↓ 1 callersMethodsetAccuracy
(self, accQA, accQuesType, accAnsType)
prj/Pink/pink/eval/vqa_tools/vqa_result.py:293
↓ 1 callersMethodsetAccuracy
(self, accQA, accQuesType, accAnsType)
prj/Pink/pink/eval/vqa_tools/vqa_eval.py:276
↓ 1 callersMethodsetEvalAnsType
(self, quesId, ansType, acc)
prj/Pink/pink/eval/vqa_tools/vqa_result.py:317
↓ 1 callersMethodsetEvalAnsType
(self, quesId, ansType, acc)
prj/Pink/pink/eval/vqa_tools/vqa_eval.py:300
↓ 1 callersFunctionsetEvalQA
(quesId, acc)
prj/Pink/pink/eval/eval_vqav2.py:152
↓ 1 callersMethodsetEvalQA
(self, quesId, acc)
prj/Pink/pink/eval/vqa_tools/vqa_result.py:309
↓ 1 callersMethodsetEvalQA
(self, quesId, acc)
prj/Pink/pink/eval/vqa_tools/vqa_eval.py:292
↓ 1 callersMethodsetEvalQuesType
(self, quesId, quesType, acc)
prj/Pink/pink/eval/vqa_tools/vqa_result.py:312
↓ 1 callersMethodsetEvalQuesType
(self, quesId, quesType, acc)
prj/Pink/pink/eval/vqa_tools/vqa_eval.py:295
↓ 1 callersMethodset_epoch
(self, epoch)
antmmf/datasets/samplers.py:41
↓ 1 callersFunctionset_escapes_class_fp32
(model, amp_attributes)
antmmf/utils/register_fp32.py:51
↓ 1 callersMethodset_mode
dynamically choosing preprocessors during runtime
antmmf/datasets/processors/image_processors.py:210
↓ 1 callersMethodset_rng_state
(self, state)
prj/M2_Encoder/vlmo/torchscale/component/feedforward_network.py:29
↓ 1 callersFunctionset_seed
(seed)
antmmf/utils/env.py:16
↓ 1 callersMethodsetup_extras
(self, dataset_type, config, *args, **kwargs)
antmmf/datasets/base_dataset.py:138
↓ 1 callersMethodsetup_lr_scheduler
(self)
antmmf/trainers/base_trainer.py:445
↓ 1 callersFunctionshapes_to_tensor
Turn a list of integer scalars or integer Tensor scalars into a vector, in a way that's both traceable and scriptable. In tracing, `x` sh
antmmf/structures/utils.py:17
↓ 1 callersMethodshift
(x, n_segment, fold_div=8, inplace=False)
antmmf/modules/vision/temporal_shift.py:31
↓ 1 callersFunctionsingle_gray
Single channel value as output gray value. gray = single(r,g,b). @param img:ndarray,Input image data on range[0,255]. @param channel: int
antmmf/utils/dataset_utils.py:438
↓ 1 callersFunctionsmart_resize
Rescales the image so that the following conditions are met: 1. Both dimensions (height and width) are divisible by 'factor'. 2. The total n
prj/M2_omni/models/image_processing_m2omni.py:94
↓ 1 callersFunctionsolarize_level_to_args
(MAX_LEVEL)
prj/M2_Encoder/vlmo/transforms/randaugment.py:237
↓ 1 callersFunctionsplit_batch
(input_batch)
antmmf/trainers/retrieval_trainer.py:23
↓ 1 callersFunctionsplit_list
Split a list into n (roughly) equal-sized chunks
prj/Pink/pink/eval/model_vsr.py:21
↓ 1 callersFunctionsplit_list
Split a list into n (roughly) equal-sized chunks
prj/Pink/pink/eval/model_seed.py:22
↓ 1 callersFunctionsplit_list
Split a list into n (roughly) equal-sized chunks
prj/Pink/pink/eval/model_pointingvqa_looktwice.py:22
↓ 1 callersFunctionsplit_list
Split a list into n (roughly) equal-sized chunks
prj/Pink/pink/eval/model_object365.py:23
↓ 1 callersFunctionsplit_list
Split a list into n (roughly) equal-sized chunks
prj/Pink/pink/eval/model_pointingvqa_local.py:22
↓ 1 callersFunctionsplit_list
Split a list into n (roughly) equal-sized chunks
prj/Pink/pink/eval/model_vg_base_batch.py:24
↓ 1 callersFunctionsplit_list
Split a list into n (roughly) equal-sized chunks
prj/Pink/pink/eval/model_vqav2.py:214
↓ 1 callersFunctionsplit_list
Split a list into n (roughly) equal-sized chunks
prj/Pink/pink/eval/model_gqa.py:22
↓ 1 callersFunctionsplit_list
Split a list into n (roughly) equal-sized chunks
prj/Pink/pink/eval/model_okvqa.py:22
↓ 1 callersFunctionsplit_list
Split a list into n (roughly) equal-sized chunks
prj/Pink/pink/eval/model_v7wgrounding.py:23
↓ 1 callersFunctionsplit_list
Split a list into n (roughly) equal-sized chunks
prj/Pink/pink/eval/model_iconqa.py:22
↓ 1 callersFunctionsplit_types_repr
(types_repr: str)
antmmf/utils/inspector.py:11
↓ 1 callersMethodstart_profile
(self, global_step=None)
antmmf/common/metrics_reporter.py:153
↓ 1 callersFunctionstring_to_bool
(string_val: Union[str, bool])
antmmf/common/configuration.py:21
↓ 1 callersMethodstrip_head
strip the classifier head when pretrained model is being loaded. Args: key (string): key to be striped Returns:
antmmf/models/base_model.py:175
↓ 1 callersFunctionsuppress_output
Suppress printing on the current device. Force printing with `force=True`.
antmmf/utils/distributed.py:245
↓ 1 callersMethodsynchronize_between_processes
(self)
antmmf/modules/metrics/evaluators/coco_eval.py:60
↓ 1 callersMethodtemporal_pool
(x, n_segment)
antmmf/modules/vision/temporal_shift.py:93
↓ 1 callersMethodtie_weights
Make sure we are sharing the input and output embeddings. Export to TorchScript can't handle parameter sharing so we are cloning them
antmmf/models/visual_bert.py:216
↓ 1 callersMethodtie_weights
Make sure we are sharing the input and output embeddings. Export to TorchScript can't handle parameter sharing so we are cloning them
antmmf/models/vilbert.py:969
↓ 1 callersMethodto_dict
Convert the configuration to dictionary.
antmmf/common/configuration.py:499
↓ 1 callersFunctiontop1gating
Implements Top2Gating on logits.
prj/M2_Encoder/vlmo/torchscale/component/xmoe/routing.py:36
↓ 1 callersFunctiontop2gating
Implements Top2Gating on logits.
prj/M2_Encoder/vlmo/torchscale/component/xmoe/routing.py:247
↓ 1 callersFunctiontrain
()
prj/Pink/pink/train/train.py:209
↓ 1 callersMethodtransform
(self)
antmmf/datasets/database/video_database.py:421
↓ 1 callersFunctiontransform_to_batch_sequence
(tensor)
antmmf/utils/general.py:391
↓ 1 callersFunctiontransform_to_batch_sequence_dim
(tensor)
antmmf/utils/general.py:402
↓ 1 callersMethodtraverse
(self)
antmmf/modules/utils.py:295
↓ 1 callersFunctiontrunc_normal_
(tensor, mean=0.0, std=1.0, a=-2.0, b=2.0)
antmmf/modules/vision/backbone/video_swin.py:45
↓ 1 callersMethodtry_fast_read
(self)
antmmf/datasets/base_dataset.py:73
↓ 1 callersFunctionunion_to_optional_
(tree)
antmmf/utils/inspector.py:36
↓ 1 callersFunctionunwrap_model
Recursively unwraps a model from potential containers (as used in distributed training). Args: model (`torch.nn.Module`): The model
prj/Pink/pink/train/pink_trainer.py:10
↓ 1 callersMethodupdate
r"""Updates node embeddings in analogy to :math:`\gamma_{\mathbf{\Theta}}` for each node :math:`i \in \mathcal{V}`. Takes in t
antmmf/modules/message_passing/message_passing.py:246
↓ 1 callersMethodupdateProgress
(self, progress)
prj/Pink/pink/eval/vqa_tools/vqa_result.py:322
↓ 1 callersMethodupdateProgress
(self, progress)
prj/Pink/pink/eval/vqa_tools/vqa_eval.py:305
↓ 1 callersMethodupdate_from_meter
Copy data from other Meter. Usage:: meter1 = Meter(delimiter=", ") meter1.update({"cls_loss": 0.99, "reg_loss": 0.88
antmmf/common/meter.py:122
↓ 1 callersMethodupdate_same
(self, CountClass)
prj/snps3_vtp/auxiliary_files/generate_ss_word_json/1st_ss_word_mining.py:23
↓ 1 callersMethodupdate_sample_list_based_on_head
(self, sample_list)
antmmf/models/visual_bert.py:472
↓ 1 callersFunctionupdir
Given path d, go up n dirs from d and return that path
antmmf/utils/general.py:211
↓ 1 callersMethodverbose_dump
(self, *args, **kwargs)
antmmf/tasks/base_task.py:158
↓ 1 callersMethodvis_detr_results
(self, boxes, labels, scores, drawed_img, img_size=(400, 400))
prj/snps3_vtp/roi_univl/univl/model/univl_pretrain.py:222
↓ 1 callersMethodvis_detr_results
(self, boxes, labels, scores, drawed_img, img_size=(400, 400))
prj/dmae_vtp/roi_univl/univl/model/univl_pretrain.py:222
↓ 1 callersMethodvis_detr_results
(self, boxes, labels, scores, drawed_img, img_size=(400, 400))
prj/base_vtp/roi_univl/univl/model/univl_pretrain.py:222
↓ 1 callersMethodvis_detr_results
(self, boxes, labels, scores, drawed_img, img_size=(400, 400))
prj/cnvid_vtp/roi_univl/univl/model/univl_pretrain.py:222
↓ 1 callersFunctionvisual_adapter
(hidden_dim, scale, dropout, attn=True, mlp=False, enabled: bool = True, non_linear=False)
prj/Pink/pink/model/adapter.py:390
↓ 1 callersFunctionvisualize_image_importance
(visual_record, title)
antmmf/utils/visualize.py:127
↓ 1 callersFunctionvisualize_images
Visualize a set of images using torchvision's make grid function. Expects PIL images which it will convert to tensor and optionally resize them. I
antmmf/utils/visualize.py:45
↓ 1 callersFunctionvisualize_text_importance
(visual_record, pad_token, title)
antmmf/utils/visualize.py:86
↓ 1 callersFunctionwhitespace_clean
(text)
antmmf/modules/vision/backbone/clip/simple_tokenizer.py:79
↓ 1 callersFunctionwindow_reverse
(windows, window_size, B, D, H, W)
antmmf/modules/vision/backbone/video_swin.py:115
↓ 1 callersFunctionwindow_reverse
Args: windows: (num_windows*B, window_size, window_size, C) window_size (int): Window size H (int): Height of image
antmmf/modules/vision/backbone/cctt.py:147
↓ 1 callersMethodword2idx
(self, w)
antmmf/utils/text_utils.py:371
↓ 1 callersMethodword2idx
Convert a word to its index according to vocabulary Args: word (str): Word to be converted to index. Returns:
antmmf/datasets/processors/mm_processors.py:200
↓ 1 callersMethodwords_to_ids
(self, x)
antmmf/models/s3dg.py:233
↓ 1 callersMethodworker_func
(self, img_path)
antmmf/datasets/features/vision/feature_saver.py:92
↓ 1 callersMethodwrap
(task_cls)
antmmf/common/registry.py:91
↓ 1 callersMethodwrap_llm_lora
(self, r=128, lora_alpha=256, lora_dropout=0.05)
prj/M2_omni/models/modeling_m2omni.py:311
↓ 1 callersMethodwrap_vit_lora
(self, r=128, lora_alpha=256, lora_dropout=0.05)
prj/M2_omni/models/modeling_m2omni.py:301
↓ 1 callersMethodwti_interaction
(self, text_feat, word_feat, video_feat, word_mask, video_mask)
prj/dmae_vtp/roi_univl/univl/model/dmae_utils.py:133
↓ 1 callersMethodwti_interaction_row
(self, text_feat, video_feat, text_mask, video_mask)
prj/dmae_vtp/roi_univl/univl/model/dmae_utils.py:482
FunctionAutoContrast
(img, _)
prj/M2_Encoder/vlmo/transforms/randaug.py:64
FunctionBrightness
(img, v)
prj/M2_Encoder/vlmo/transforms/randaug.py:110
FunctionColor
(img, v)
prj/M2_Encoder/vlmo/transforms/randaug.py:105
FunctionContrast
(img, v)
prj/M2_Encoder/vlmo/transforms/randaug.py:100
FunctionCutout
(img, v)
prj/M2_Encoder/vlmo/transforms/randaug.py:120
FunctionEqualize
(img, _)
prj/M2_Encoder/vlmo/transforms/randaug.py:72
FunctionFlip
(img, _)
prj/M2_Encoder/vlmo/transforms/randaug.py:76
FunctionIdentity
(img, v)
prj/M2_Encoder/vlmo/transforms/randaug.py:159
← previousnext →1,601–1,700 of 4,004, ranked by callers