MCPcopy Create free account

hub / github.com/Alpha-VLLM/Lumina-DiMOO / functions

Functions3,694 in github.com/Alpha-VLLM/Lumina-DiMOO

↓ 8 callersMethodcheck_content
Check the content type of the input. Four types are allowed: str, dict, liststr, listdict. Args: msgs: Raw input messages.
VLMEvalKit/vlmeval/api/base.py:83
↓ 8 callersFunctioncreate_prompt_templates
Create prompt templates for various tasks
utils/prompt_utils.py:7
↓ 8 callersMethodevaluate
Computes TEDS score between the prediction and the ground truth of a given sample
VLMEvalKit/vlmeval/dataset/utils/Ocrbench_v2/TEDS_metric.py:123
↓ 8 callersFunctionextract_answer_from_item
(model, item, dataset_name=None)
VLMEvalKit/vlmeval/dataset/utils/multiple_choice.py:313
↓ 8 callersFunctionhit_calculate
(result, dataset_name, anls_threshold=0.5)
VLMEvalKit/vlmeval/dataset/utils/vqa_eval.py:160
↓ 8 callersMethodmessage_to_promptvideo
(self, message)
VLMEvalKit/vlmeval/vlm/base.py:156
↓ 8 callersMethodparse
Try to parse into a date. Return: tuple (year, month, date) if successful; otherwise None.
VLMEvalKit/vlmeval/dataset/utils/tablevqabench.py:385
↓ 8 callersFunctionprocess_answer
(answer)
VLMEvalKit/vlmeval/dataset/utils/vqa_eval.py:239
↓ 7 callersMethod__init__
(self, dim: int, hidden_dim: int, hidden_act: str)
VLMEvalKit/vlmeval/vlm/hawk_vl/hawk/model/vision_encoder/qwen_vit/modeling_qwen_vit.py:121
↓ 7 callersFunctioncal_per_metrics
(pred, gt)
VLMEvalKit/vlmeval/dataset/utils/Ocrbench_v2/page_ocr_metric.py:16
↓ 7 callersFunctioncast_to_dict
Try to cast an object as a dict.
VLMEvalKit/vlmeval/dataset/utils/megabench/scoring/common/conversions.py:31
↓ 7 callersMethodchat
The main function for multi-turn chatting. Will call `chat_inner` with the preprocessed input messages.
VLMEvalKit/vlmeval/api/base.py:155
↓ 7 callersMethodcheck_content
Check the content type of the input. Four types are allowed: str, dict, liststr, listdict.
VLMEvalKit/vlmeval/vlm/base.py:49
↓ 7 callersFunctioncolored
(s, color)
VLMEvalKit/vlmeval/smp/misc.py:59
↓ 7 callersFunctionextract_characters_regex
(s)
VLMEvalKit/vlmeval/dataset/utils/videomme.py:128
↓ 7 callersFunctionimg_root_map
(dataset)
VLMEvalKit/vlmeval/dataset/image_base.py:6
↓ 7 callersFunctionls
(dirname='.', match=[], mode='all', level=1)
VLMEvalKit/vlmeval/smp/file.py:235
↓ 7 callersFunctionmerge_intervals
Merge overlapping intervals in a list. Assumes each interval is a list [start, end].
VLMEvalKit/vlmeval/dataset/utils/cgbench.py:305
↓ 7 callersMethodresize_token_embeddings
(self, new_num_tokens: Optional[int] = None, pad_to_multiple_of=None)
VLMEvalKit/vlmeval/vlm/ursa/ursa_model/modeling_ursa.py:433
↓ 7 callersFunctionvalidate_point_inside_bounds
(x,y,imWidth,imHeight)
VLMEvalKit/vlmeval/dataset/utils/Ocrbench_v2/spotting_eval/rrc_evaluation_funcs_1_1.py:302
↓ 7 callersFunctionvar_center_crop
Select a crop size from `crop_size_list` favoring aspect-ratio match. It ranks candidate crop sizes by how well they match the original image's
data/item_processor.py:37
↓ 6 callersFunctionadd_break_line
Add newline characters to sequence
utils/image_utils.py:136
↓ 6 callersFunctionadd_break_line
(sequence, H, W, new_number=0)
train/train.py:19
↓ 6 callersFunctionbuild_qa_cot_prompt
(line, prompt, cot_prompt=None)
VLMEvalKit/vlmeval/vlm/internvl/utils.py:136
↓ 6 callersFunctionconvert_markdown_table_to_html
Converts a markdown table to the corresponding html string for TEDS computation.
VLMEvalKit/vlmeval/dataset/utils/Ocrbench_v2/TEDS_metric.py:184
↓ 6 callersFunctionencode_image_file_to_base64
(image_path, target_size=-1, fmt='JPEG')
VLMEvalKit/vlmeval/smp/vlm.py:142
↓ 6 callersFunctionextract_answer
(ans)
VLMEvalKit/vlmeval/dataset/utils/visulogic.py:85
↓ 6 callersFunctionextract_boxed_content
(text)
VLMEvalKit/vlmeval/dataset/utils/bmmr.py:14
↓ 6 callersFunctionextract_json_objects
(text, decoder=JSONDecoder())
VLMEvalKit/vlmeval/smp/misc.py:255
↓ 6 callersFunctiongenerate_crop_size_list
Enumerate candidate crop sizes (multiples of `patch_size`). The generated sizes are constrained by a maximum aspect ratio. This list is later
data/item_processor.py:51
↓ 6 callersFunctionget_clean_string
(s)
VLMEvalKit/vlmeval/dataset/mmlongbench.py:142
↓ 6 callersFunctionget_pred_category_type
(pred_idx, pred_items)
VLMEvalKit/vlmeval/dataset/Omnidocbench/utils.py:792
↓ 6 callersMethodget_subtitles
(self, subtitle_path, frame_indices=None, fps=None, sub_time=False)
VLMEvalKit/vlmeval/dataset/cgbench.py:103
↓ 6 callersMethodget_subtitles
(self, subtitle_path, frame_indices=None, fps=None, sub_time=False)
VLMEvalKit/vlmeval/dataset/cgbench.py:978
↓ 6 callersFunctionget_timestampes
(frame_indices, fps)
VLMEvalKit/vlmeval/dataset/utils/cgbench.py:427
↓ 6 callersFunctionlevenshtein_distance
(s1, s2)
VLMEvalKit/vlmeval/dataset/utils/Ocrbench_v2/vqa_metric.py:9
↓ 6 callersFunctionload_image
(image_file, input_size=448, max_num=6, upscale=False)
VLMEvalKit/vlmeval/vlm/internvl/utils.py:89
↓ 6 callersFunctionlog_function_for_3d
(func)
VLMEvalKit/vlmeval/dataset/utils/chartmimic/evaluator/chart_type_and_color.py:272
↓ 6 callersFunctionlog_function_for_3d
(func)
VLMEvalKit/vlmeval/dataset/utils/chartmimic/evaluator/color_evaluator_prefix.py:294
↓ 6 callersFunctionmath_equal
Exact match of math if and only if: 1. numerical equal: both can convert to float and are equal 2. symbolic equal: both can convert to sy
VLMEvalKit/vlmeval/dataset/utils/bmmr_grade.py:170
↓ 6 callersFunctionmodel_gen
(model, text, images, need_bos=True, padding=False, beams=3, max_token=500)
VLMEvalKit/vlmeval/vlm/xcomposer/xcomposer2.py:34
↓ 6 callersFunctionmodel_gen
(model, text, images, need_bos=True, padding=False, beams=3, max_token=2048, video_input=False)
VLMEvalKit/vlmeval/vlm/xcomposer/xcomposer2d5.py:157
↓ 6 callersMethodrename
Compares attributes of trees
VLMEvalKit/vlmeval/dataset/utils/Ocrbench_v2/TEDS_metric.py:65
↓ 6 callersFunctionrun_script_safe
(script_path)
VLMEvalKit/vlmeval/dataset/utils/chartmimic/eval_configs/global_config.py:47
↓ 6 callersFunctionversion_cmp
(v1, v2, op='eq')
VLMEvalKit/vlmeval/smp/misc.py:238
↓ 5 callersMethod__init__
Args: dim (int): Number of input channels. num_heads (int): Number of attention heads in each ViT block.
VLMEvalKit/vlmeval/vlm/ursa/ursa_model/sam.py:204
↓ 5 callersFunctioncompute_accuracy
Compute the accuracy of two bounding boxes based on a specified threshold. Parameters: - box1 (list of float): Bounding box [x_min, y_mi
VLMEvalKit/vlmeval/dataset/GUI/screenspot.py:85
↓ 5 callersFunctioncompute_accuracy
Compute the accuracy of two bounding boxes based on a specified threshold. Parameters: - box1 (list of float): Bounding box [x_min, y_mi
VLMEvalKit/vlmeval/dataset/GUI/screenspot_pro.py:85
↓ 5 callersFunctionconvert_str_to_dict
Parses the 'predict' string and returns a dictionary. Missing or unparseable content is handled gracefully. Parameters: - predict_st
VLMEvalKit/vlmeval/dataset/utils/Ocrbench_v2/TEDS_metric.py:219
↓ 5 callersMethodgenerate
( self, inputs: Optional[torch.Tensor] = None, speech: Optional[torch.Tensor] = None,
VLMEvalKit/vlmeval/vlm/ola/ola/model/language_model/ola_qwen.py:168
↓ 5 callersFunctionis_main_process
()
inference/inference_t2i_ddp.py:36
↓ 5 callersFunctionl2norm
(t)
VLMEvalKit/vlmeval/vlm/ola/ola/model/speech_encoder/beats/quantizer.py:21
↓ 5 callersFunctionmodel_gen
(model, text, images, need_bos=True, padding=False, beams=3, max_token=500)
VLMEvalKit/vlmeval/vlm/xcomposer/xcomposer2_4KHD.py:60
↓ 5 callersFunctionnormal_
(data)
VLMEvalKit/vlmeval/vlm/ola/ola/model/speech_encoder/beats/backbone.py:764
↓ 5 callersFunctionnormalize_dict
Sort by value, while iterate over element if data is list
VLMEvalKit/vlmeval/dataset/utils/ccocr_evaluator/kie_evaluator.py:92
↓ 5 callersFunctionnormalized_formula
(text)
VLMEvalKit/vlmeval/dataset/Omnidocbench/utils.py:110
↓ 5 callersFunctionprepare_score_prompt
Prepare messages for score evaluation Args: item: DataFrame row containing question, answer, and prediction Returns: li
VLMEvalKit/vlmeval/dataset/utils/vdc.py:127
↓ 5 callersMethodprocessDigitArticle
(self, inText)
VLMEvalKit/vlmeval/dataset/utils/mmniah.py:231
↓ 5 callersMethodprocessPunctuation
(self, inText)
VLMEvalKit/vlmeval/dataset/utils/mmniah.py:219
↓ 5 callersFunctionproxy_set
(s)
VLMEvalKit/vlmeval/smp/misc.py:105
↓ 5 callersFunctionstr_to_bboxes
(bbox_list)
VLMEvalKit/vlmeval/dataset/utils/megabench/scoring/common/conversions.py:93
↓ 5 callersMethoduse_custom_prompt
(self, dataset)
VLMEvalKit/vlmeval/vlm/oryx.py:134
↓ 4 callersMethod__init__
(self)
VLMEvalKit/vlmeval/dataset/utils/vgrpbench/puzzles/oddevensudoku.py:11
↓ 4 callersMethod__init__
( self, dim: int, num_heads: int, mlp_ratio: float = 4.0, qkv_bias: bo
VLMEvalKit/vlmeval/vlm/ola/ola/model/multimodal_encoder/oryx_vit.py:246
↓ 4 callersFunction_non_meta_init_device
(config: ModelConfig)
model/modeling_llada.py:193
↓ 4 callersFunction_non_meta_init_device
(config: ModelConfig)
VLMEvalKit/vlmeval/vlm/lumina_dimmo/modeling_llada.py:193
↓ 4 callersFunctionanls_compute
(groundtruth, prediction, threshold=0.5)
VLMEvalKit/vlmeval/dataset/mmlongbench.py:102
↓ 4 callersFunctionbuild_judge
(**kwargs)
VLMEvalKit/vlmeval/dataset/utils/judge_util.py:7
↓ 4 callersFunctionbuild_prompt
(line, dataset_name)
VLMEvalKit/vlmeval/dataset/creation.py:331
↓ 4 callersMethodbuild_prompt_default
(self, message, add_brief=False, add_yes_or_no=False, change_the_img_place=False)
VLMEvalKit/vlmeval/vlm/idefics.py:93
↓ 4 callersMethodbuild_prompt_multiple_choice
(self, line, prefix=None)
VLMEvalKit/vlmeval/vlm/molmo.py:135
↓ 4 callersMethodbuild_prompt_vqa
(self, line, prefix=None)
VLMEvalKit/vlmeval/vlm/molmo.py:154
↓ 4 callersMethodcaching
(self, enable: bool = True)
model/modeling_llada.py:598
↓ 4 callersFunctioncalculate_acc_at_iou
(scores)
VLMEvalKit/vlmeval/dataset/utils/cgbench.py:219
↓ 4 callersFunctioncalculate_crr
(scores)
VLMEvalKit/vlmeval/dataset/utils/cgbench.py:178
↓ 4 callersFunctioncalculate_iou
Calculate the IoU between predicted and target bounding boxes.
VLMEvalKit/vlmeval/dataset/utils/megabench/scoring/common/metrics.py:6
↓ 4 callersFunctioncalculate_iou
(box1, box2)
VLMEvalKit/vlmeval/dataset/utils/Ocrbench_v2/IoUscore_metric.py:9
↓ 4 callersFunctioncalculate_rec_at_iou
(scores)
VLMEvalKit/vlmeval/dataset/utils/cgbench.py:256
↓ 4 callersFunctioncalculate_similarity_single
(c1, c2)
VLMEvalKit/vlmeval/dataset/utils/chartmimic/evaluator/color_utils.py:35
↓ 4 callersMethodcalculate_visible_buildings
(self, line: List[int])
VLMEvalKit/vlmeval/dataset/utils/vgrpbench/puzzles/skyscraper.py:36
↓ 4 callersFunctioncalculate_vq_params
Calculate VQ related parameters Args: image_height: Image height image_width: Image width vae_scale: VAE s
utils/image_utils.py:82
↓ 4 callersFunctioncheck_ans_with_model
(pred, gt, model, item, dataset_name='MLVU_MCQ')
VLMEvalKit/vlmeval/dataset/utils/mlvu.py:58
↓ 4 callersFunctionclean_string
(input_string)
VLMEvalKit/vlmeval/dataset/Omnidocbench/utils.py:414
↓ 4 callersFunctioncompute_f1_score
Compute the F1-score for KIE task between predicted and ground truth dictionaries. Args: preds (dict): The predicted key-value pairs.
VLMEvalKit/vlmeval/dataset/utils/Ocrbench_v2/TEDS_metric.py:391
↓ 4 callersFunctionconcat_images_vlmeval
(images, target_size=-1, mode='h', return_image=False)
VLMEvalKit/vlmeval/smp/vlm.py:26
↓ 4 callersFunctioncount_higher_than_previous
(lst, target_count)
VLMEvalKit/vlmeval/dataset/utils/mme_reasoning.py:833
↓ 4 callersMethoddevice
(self)
model/modeling_llada.py:1154
↓ 4 callersFunctiondict_to_html
(data)
VLMEvalKit/vlmeval/dataset/utils/Ocrbench_v2/TEDS_metric.py:207
↓ 4 callersMethoddump_image
(self, line, dataset)
VLMEvalKit/vlmeval/vlm/qwen2_vl/prompt.py:23
↓ 4 callersMethoddump_image
(self, line, dataset)
VLMEvalKit/vlmeval/api/base.py:292
↓ 4 callersFunctionensure_image_url
(image: str)
VLMEvalKit/vlmeval/vlm/hawk_vl/model.py:9
↓ 4 callersFunctionensure_video_url
(video: str)
VLMEvalKit/vlmeval/vlm/hawk_vl/model.py:18
↓ 4 callersFunctionexpand2square
(pil_img, background_color)
VLMEvalKit/vlmeval/vlm/ursa/ursa_model/image_processing_vlm.py:41
↓ 4 callersMethodextract_content_in_braces
(self, input_str)
VLMEvalKit/vlmeval/dataset/image_mcq.py:2088
↓ 4 callersFunctionextract_option
(model, input_item, dataset_name)
VLMEvalKit/vlmeval/dataset/utils/videomme.py:119
↓ 4 callersFunctionfind_word_position
(string, word)
VLMEvalKit/vlmeval/dataset/utils/naturalbench.py:20
↓ 4 callersFunctionfintabnet_normalize
(s)
VLMEvalKit/vlmeval/dataset/utils/tablevqabench.py:162
↓ 4 callersFunctionfloatify
(num: str)
VLMEvalKit/vlmeval/dataset/utils/megabench/scoring/general_numerical_match.py:139
↓ 4 callersMethodfrom_string
(cls, s)
VLMEvalKit/vlmeval/dataset/utils/megabench/metric_type.py:242
↓ 4 callersFunctiongenerate_crop_size_list
(num_patches, patch_size, max_ratio=4.0)
utils/image_utils.py:123
← previousnext →101–200 of 3,694, ranked by callers