MCPcopy Create free account

hub / github.com/Fanziyang-v/FlashVID / functions

Functions6,334 in github.com/Fanziyang-v/FlashVID

↓ 7 callersMethodprocess_images
(self, images, image_processor, model_cfg)
lmms-eval/lmms_eval/models/simple/auroracap.py:216
↓ 7 callersFunctionrefcoco_bbox_rec_aggregation_result
Aggregate the results of the RefCOCO evaluation task using the specified metric. Args: - results (list of dict): List of result dictiona
lmms-eval/lmms_eval/tasks/refcoco+/utils_rec.py:163
↓ 7 callersFunctionrefcoco_bbox_rec_aggregation_result
Aggregate the results of the RefCOCO evaluation task using the specified metric. Args: - results (list of dict): List of result dictiona
lmms-eval/lmms_eval/tasks/refcoco/utils_rec.py:163
↓ 7 callersFunctionrefcoco_bbox_rec_aggregation_result
Aggregate the results of the RefCOCO evaluation task using the specified metric. Args: - results (list of dict): List of result dictiona
lmms-eval/lmms_eval/tasks/refcocog/utils_rec.py:163
↓ 7 callersFunctionrepeat_kv
This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
llava/model/language_model/modeling_llama.py:231
↓ 7 callersFunctionscreenspot_rec_aggregation_result
Aggregate the results of the screenspot evaluation task using the specified metric. Args: - results (list of dict): List of result dicti
lmms-eval/lmms_eval/tasks/screenspot/utils_rec.py:126
↓ 7 callersMethodto_hf_messages
(self, video_kwargs: Dict[str, str] = None)
lmms-eval/lmms_eval/protocol.py:64
↓ 7 callersMethodtranspose_for_scores
(self, x)
llava/model/multimodal_resampler/qformer.py:145
↓ 7 callersFunctionvalidate_point_inside_bounds
(x, y, imWidth, imHeight)
lmms-eval/lmms_eval/tasks/ocrbench_v2/spotting_eval/rrc_evaluation_funcs_1_1.py:303
↓ 6 callersFunction_aggregate_all_category
(results, categories)
lmms-eval/lmms_eval/tasks/salbench/utils.py:132
↓ 6 callersFunction_aggregate_by_category
(results, category: str)
lmms-eval/lmms_eval/tasks/structeditbench/utils.py:454
↓ 6 callersMethod_create_numeric_node
(self, value)
lmms-eval/lmms_eval/models/model_utils/thyme/sandbox.py:218
↓ 6 callersMethod_get_numeric_value
(self, node_value)
lmms-eval/lmms_eval/models/model_utils/thyme/sandbox.py:211
↓ 6 callersFunction_parse_json_list
(raw: str)
lmms-eval/lmms_eval/tasks/uni_mmmu/utils.py:93
↓ 6 callersFunctionapply_rotary_pos_emb
Applies Rotary Position Embedding to the query and key tensors. Args: q (`torch.Tensor`): The query tensor. k (`torch.Tensor`): T
llava/model/language_model/modeling_llama.py:174
↓ 6 callersFunctioncalculate_ins_level_acc
Calculate the instruction level accuracy for given Subject results https://github.com/MMMU-Benchmark/MMMU/blob/51ce7f3e829c16bb44bc5445782686b4c35
lmms-eval/lmms_eval/tasks/jmmmu_pro/utils.py:340
↓ 6 callersFunctionconvert_markdown_table_to_html
Converts a markdown table to the corresponding html string for TEDS computation.
lmms-eval/lmms_eval/tasks/ocrbench_v2/TEDS_metric.py:176
↓ 6 callersMethodcreate_options_prompt
(self, row_data, option_candidate)
lmms-eval/lmms_eval/tasks/mmbench/mmbench_evals.py:20
↓ 6 callersMethoddoc_to_text
(self, doc)
lmms-eval/lmms_eval/api/task.py:374
↓ 6 callersFunctionexpand2square
(pil_img, background_color)
llava/mm_utils.py:300
↓ 6 callersMethodget_chat_response
(self, prompt, temperature=0, max_tokens=256, n=1, patience=10000000, sleep_time=0)
lmms-eval/lmms_eval/tasks/mmrefine/mmrefine_evals.py:48
↓ 6 callersFunctionget_wups
calculate the wups score :param pred: :param truth: :return:
lmms-eval/lmms_eval/tasks/nextqa/utils.py:232
↓ 6 callersMethodis_available
Check if the judge service is available
lmms-eval/lmms_eval/llm_judge/base.py:29
↓ 6 callersFunctionlevenshtein_distance
(s1, s2)
lmms-eval/lmms_eval/tasks/ocrbench_v2/vqa_metric.py:7
↓ 6 callersFunctionlistinstr
(lst, s)
lmms-eval/lmms_eval/models/simple/xcomposer2_4KHD.py:273
↓ 6 callersFunctionmake_table
Generate table of results. Automatically hides columns that are all N/A (e.g., stability metrics when num_samples=1, or baseline comparison w
lmms-eval/lmms_eval/utils.py:528
↓ 6 callersFunctionnormalize_facing
Normalize facing field to standard direction. Args: facing: The facing value to normalize Returns: Normalized facing directi
lmms-eval/lmms_eval/tasks/spatialtreebench/metrics/mindcube_cogmap/src/evaluation/cogmap/graph_operations.py:128
↓ 6 callersFunctionparse_score
(review)
lmms-eval/lmms_eval/tasks/videochatgpt/utils.py:424
↓ 6 callersFunctionsplit_audio
Splits the audio into chunks of a given length. Args: audio_arrays: The audio array to split. chunk_lim: The length of each c
lmms-eval/lmms_eval/models/model_utils/audio_processing.py:12
↓ 6 callersMethodtest_docs
:return: Iterable[obj] A iterable of any object, that doc_to_text can handle
lmms-eval/lmms_eval/api/task.py:324
↓ 6 callersMethodvalidation_docs
:return: Iterable[obj] A iterable of any object, that doc_to_text can handle
lmms-eval/lmms_eval/api/task.py:317
↓ 5 callersMethod_name_is_registered
(self, name)
lmms-eval/lmms_eval/tasks/__init__.py:162
↓ 5 callersFunction_ntuple
(n)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/utils.py:273
↓ 5 callersMethod_request
(self, method: str, endpoint: str, **kwargs)
lmms-eval/lmms_eval/entrypoints/client.py:345
↓ 5 callersMethodcardinal2chntext
(self)
lmms-eval/lmms_eval/tasks/librispeech/cn_tn.py:746
↓ 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
lmms-eval/lmms_eval/tasks/refcoco+/utils_rec.py:128
↓ 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
lmms-eval/lmms_eval/tasks/refcoco/utils_rec.py:128
↓ 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
lmms-eval/lmms_eval/tasks/screenspot/utils_rec.py:91
↓ 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
lmms-eval/lmms_eval/tasks/refcocog/utils_rec.py:128
↓ 5 callersFunctionconvert_str_to_dict
Parses the 'predict' string and returns a dictionary. Missing or unparseable content is handled gracefully. Parameters: - predict_st
lmms-eval/lmms_eval/tasks/ocrbench_v2/TEDS_metric.py:211
↓ 5 callersMethoddevice
(self)
lmms-eval/lmms_eval/models/simple/ola.py:252
↓ 5 callersMethoddownload
Downloads and returns the task dataset. Override this method to download the dataset from a custom API. :param data_dir: str
lmms-eval/lmms_eval/api/task.py:239
↓ 5 callersFunctiondownsample_audio
(audio_array: np.ndarray, original_sr: int, target_sr: int)
lmms-eval/lmms_eval/models/model_utils/audio_processing.py:7
↓ 5 callersMethodencode_images
(self, images)
llava/model/llava_arch.py:192
↓ 5 callersMethodeval_result
(self, results, eval_method)
lmms-eval/lmms_eval/tasks/mmbench/mmbench_evals.py:243
↓ 5 callersMethodevaluate_async
Asynchronously evaluate the given request and return a response Args: request: JudgeRequest containing the evaluation co
lmms-eval/lmms_eval/llm_judge/base.py:112
↓ 5 callersFunctionextract_json_from_text
Extract JSON cognitive map from text response. Returns the JSON object if found, otherwise None. Args: text: Text containing a JSON o
lmms-eval/lmms_eval/tasks/spatialtreebench/metrics/mindcube_cogmap/src/evaluation/core/extractors.py:95
↓ 5 callersMethodflatten
Flatten a nested list.
lmms-eval/lmms_eval/models/chat/internvl_hf.py:200
↓ 5 callersMethodflatten
(self, input)
lmms-eval/lmms_eval/models/chat/huggingface.py:187
↓ 5 callersMethodget_2dPool
(self, image_feature, stride=2)
llava/model/llava_arch.py:171
↓ 5 callersFunctionget_column_value
(doc, candidates)
lmms-eval/lmms_eval/tasks/voicebench/utils.py:20
↓ 5 callersFunctionget_eval_generic
(question, answer, pred, task, max_tokens: int, retries: int = 5)
lmms-eval/lmms_eval/tasks/videochatgpt/utils.py:214
↓ 5 callersMethodget_vision_tower
(self)
llava/model/llava_arch.py:168
↓ 5 callersFunctionload_defualt_config
()
lmms-eval/lmms_eval/tasks/plm_videobench/eval_utils.py:293
↓ 5 callersFunctionload_state_dict
(checkpoint_path: str, map_location: str = "cpu", model_key: str = "model|module|state_dict", is_openai: bool
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/factory.py:84
↓ 5 callersMethodnormalize_dict
Sort by value, while iterate over element if data is list
lmms-eval/lmms_eval/tasks/synthdog/donut_evaluator.py:87
↓ 5 callersFunctionpreprocess
(text)
lmms-eval/lmms_eval/tasks/gpqa/cot_zeroshot/utils.py:7
↓ 5 callersFunctionpreprocess
(text)
lmms-eval/lmms_eval/tasks/gpqa/n_shot/utils.py:7
↓ 5 callersFunctionpreprocess
(text)
lmms-eval/lmms_eval/tasks/gpqa/zeroshot/utils.py:7
↓ 5 callersFunctionpreprocess
(text)
lmms-eval/lmms_eval/tasks/gpqa/generative/utils.py:7
↓ 5 callersFunctionpreprocess
(text)
lmms-eval/lmms_eval/tasks/gpqa/cot_n_shot/utils.py:7
↓ 5 callersFunctionpreprocess
(text)
lmms-eval/lmms_eval/tasks/gpqa/reasoning/utils.py:20
↓ 5 callersMethodsample
Draw the first `n` samples in order from the specified split. Used for tasks with "canonical" ordered fewshot examples, such as MMLU
lmms-eval/lmms_eval/api/samplers.py:59
↓ 5 callersFunctionstr_to_bboxes
(bbox_list)
lmms-eval/lmms_eval/tasks/megabench/metrics/scoring/common/conversions.py:96
↓ 5 callersMethodword_tokenize
(self, word)
lmms-eval/lmms_eval/tasks/_task_utils/vqa_eval_metric.py:178
↓ 4 callersFunction_aggregate_metric
(results, metric_name: str)
lmms-eval/lmms_eval/tasks/kris_bench/utils.py:709
↓ 4 callersFunction_clean_tag
(tag: str)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/pretrained.py:174
↓ 4 callersFunction_extract_image_bytes
(img_data: Any)
lmms-eval/lmms_eval/tasks/uni_mmmu/utils.py:58
↓ 4 callersFunction_extract_instruction_score_and_reason
(response: str)
lmms-eval/lmms_eval/tasks/kris_bench/utils.py:387
↓ 4 callersMethod_get_config
(self, name)
lmms-eval/lmms_eval/tasks/__init__.py:207
↓ 4 callersFunction_get_int_env
(name: str, default: int)
lmms-eval/lmms_eval/tasks/structeditbench/utils.py:84
↓ 4 callersFunction_load_baseline_from_local
Load baseline from local JSONL file.
lmms-eval/lmms_eval/baselines/loader.py:78
↓ 4 callersMethod_make_layer
(self, planes, blocks, stride=1)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/modified_resnet.py:130
↓ 4 callersFunction_tokenize_str
(role, content)
lmms-eval/lmms_eval/models/model_utils/qwen/qwen_generate_utils.py:134
↓ 4 callersFunction_tokenize_str
(role, content)
lmms-eval/lmms_eval/models/simple/cambrian.py:79
↓ 4 callersMethodadd_request_response_to_cache
Add a request and response to the cache
lmms-eval/lmms_eval/api/model.py:201
↓ 4 callersMethodadd_token_per_grid
(self, image_feature)
llava/model/llava_arch.py:222
↓ 4 callersMethodaggregation
:returns: {str: [metric_score] -> float} A dictionary where keys are the names of submetrics and values are functions
lmms-eval/lmms_eval/api/task.py:520
↓ 4 callersFunctionapply_rotary_pos_emb_vision
(tensor: torch.Tensor, freqs: torch.Tensor)
llava/model/multimodal_encoder/mlcd/vit_rope2d_hf.py:19
↓ 4 callersMethodbuild_description
(self)
lmms-eval/lmms_eval/tasks/ifeval/instructions.py:846
↓ 4 callersFunctionbuild_query
Build the text query by combining the context, question and options. The <image_n> token is still there Return a dictionary with the query and gro
lmms-eval/lmms_eval/tasks/emma/utils.py:59
↓ 4 callersFunctioncalculate_iou
(box1, box2)
lmms-eval/lmms_eval/tasks/ocrbench_v2/IoUscore_metric.py:7
↓ 4 callersFunctioncalculate_iou
Calculate the IoU between predicted and target bounding boxes.
lmms-eval/lmms_eval/tasks/megabench/metrics/scoring/common/metrics.py:6
↓ 4 callersFunctionchn2num
(chinese_string, numbering_type=NUMBERING_TYPES[1])
lmms-eval/lmms_eval/tasks/librispeech/cn_tn.py:563
↓ 4 callersMethodclean
(self)
lmms-eval/lmms_eval/api/model.py:325
↓ 4 callersFunctioncompute_accuracy
(grouped_results)
lmms-eval/lmms_eval/tasks/lemonade/utils.py:268
↓ 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.
lmms-eval/lmms_eval/tasks/ocrbench_v2/TEDS_metric.py:383
↓ 4 callersFunctionconstruct_prompt
(doc, mc_prompt="", open_ended_prompt="", prompt_type="reasoning")
lmms-eval/lmms_eval/tasks/mmmu/utils.py:51
↓ 4 callersFunctionconvert_time_to_frame
(time_in_seconds, fps)
lmms-eval/lmms_eval/tasks/egoplan/utils.py:55
↓ 4 callersFunctiondict_to_html
(data)
lmms-eval/lmms_eval/tasks/ocrbench_v2/TEDS_metric.py:199
↓ 4 callersMethoddoc_to_target
(self, doc: dict)
lmms-eval/lmms_eval/api/task.py:1335
↓ 4 callersMethoddoc_to_text
(self, doc)
lmms-eval/lmms_eval/api/task.py:1298
↓ 4 callersMethodencode_image
(self, image: Union[Image.Image, str])
lmms-eval/lmms_eval/protocol.py:167
↓ 4 callersMethodevaluate
Run basic evaluation with answer accuracy only. Args: jsonl_path: Path to JSONL file with model responses output_path
lmms-eval/lmms_eval/tasks/spatialtreebench/metrics/mindcube_cogmap/src/evaluation/evaluator.py:27
↓ 4 callersFunctionexists
(val)
llava/model/multimodal_resampler/perceiver.py:16
↓ 4 callersFunctionextract_value
(args, results, model, task, err=False)
lmms-eval/tools/regression.py:90
↓ 4 callersFunctionferret_aggregation
(results, category)
lmms-eval/lmms_eval/tasks/ferret/utils.py:185
↓ 4 callersFunctionfind_word_position
(string, word)
lmms-eval/lmms_eval/tasks/naturalbench/utils.py:122
↓ 4 callersMethodflatten
Convert Dictionary into Non-nested Dictionary Example: input(dict) { "menu": [
lmms-eval/lmms_eval/tasks/synthdog/donut_evaluator.py:19
↓ 4 callersMethodflatten
(self, input)
lmms-eval/lmms_eval/models/simple/llava_hf.py:249
← previousnext →101–200 of 6,334, ranked by callers