MCPcopy Create free account

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

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

Functionvideommmu_doc_to_visual_question_only
(doc)
lmms-eval/lmms_eval/tasks/videommmu/utils.py:64
Functionvideommmu_process_docs_gt_none
Replace correct answer content with 'None' for MCQ questions.
lmms-eval/lmms_eval/tasks/videommmu/gt_none_option/utils.py:5
Functionvideommmu_process_docs_number_option
Change option labels from A.B.C.D to 1.2.3.4 for MCQ questions.
lmms-eval/lmms_eval/tasks/videommmu/number_option/utils.py:5
Functionvideommmu_process_docs_random_choice
Shuffle options and update answer accordingly for MCQ questions.
lmms-eval/lmms_eval/tasks/videommmu/random_choice/utils.py:7
Functionvideommmu_process_results
(doc, results)
lmms-eval/lmms_eval/tasks/videommmu/utils.py:138
Functionvideott_aggregate_oe_results
Args: results: a list of values returned by process_results Returns: A score
lmms-eval/lmms_eval/tasks/video-tt/utils.py:229
Functionvideott_aggregate_results
Args: results: a list of values returned by process_results Returns: A score
lmms-eval/lmms_eval/tasks/video-tt/utils.py:194
Functionvideott_doc_to_text
(doc, lmms_eval_specific_kwargs=None)
lmms-eval/lmms_eval/tasks/video-tt/utils.py:76
Functionvideott_doc_to_text_audio
(doc, lmms_eval_specific_kwargs=None)
lmms-eval/lmms_eval/tasks/video-tt/utils.py:88
Functionvideott_doc_to_visual
(doc)
lmms-eval/lmms_eval/tasks/video-tt/utils.py:61
Functionvideott_process_results
Args: doc: a instance of the eval dataset results: [pred] Returns: a dictionary with key: metric name (in this case v
lmms-eval/lmms_eval/tasks/video-tt/utils.py:157
Functionvideott_process_results_oe
Args: doc: a instance of the eval dataset results: [pred] Returns: a dictionary with key: metric name (in this case v
lmms-eval/lmms_eval/tasks/video-tt/utils.py:176
Functionviewspatial_aggregate_results
Aggregates the 'overall_accuracy' results. Calculates the mean score from a list of result dictionaries. Args: results (list[dict]):
lmms-eval/lmms_eval/tasks/viewspatial/utils.py:64
Functionviewspatial_doc_to_text
Extracts the text prompt from a viewspatial dataset sample. Args: doc (dict): A viewspatial dataset sample dictionary. Returns:
lmms-eval/lmms_eval/tasks/viewspatial/utils.py:4
Functionviewspatial_doc_to_visual
Extracts and converts visual data from a viewspatial dataset sample. This function iterates over the 'images' key in the dataset sample, calling
lmms-eval/lmms_eval/tasks/viewspatial/utils.py:25
Functionviewspatial_process_results
Processes the model's output for a single viewspatial document.
lmms-eval/lmms_eval/tasks/viewspatial/utils.py:45
Functionvinoground_aggregate_results
(results)
lmms-eval/lmms_eval/tasks/vinoground/utils.py:75
Functionvinoground_doc_to_text
(doc, lmms_eval_specific_kwargs=None)
lmms-eval/lmms_eval/tasks/vinoground/utils.py:52
Functionvinoground_doc_to_visual
(doc)
lmms-eval/lmms_eval/tasks/vinoground/utils.py:39
Functionvinoground_process_results
(doc, results)
lmms-eval/lmms_eval/tasks/vinoground/utils.py:61
Functionviolates_moderation
Check whether the text violates OpenAI moderation API.
llava/utils.py:173
Methodvisit_Assign
(self, node)
lmms-eval/lmms_eval/models/model_utils/thyme/sandbox.py:154
Methodvisit_Assign
(self, node)
lmms-eval/lmms_eval/models/model_utils/thyme/sandbox.py:280
Methodvisit_Attribute
Called for attribute access like object.attribute or object.sub_object.attribute We are interested in cases like: - cv.imread
lmms-eval/lmms_eval/models/model_utils/thyme/sandbox.py:435
Functionvisualwebbench_accuracy_aggregate
(results)
lmms-eval/lmms_eval/tasks/visualwebbench/utils.py:118
Functionvisualwebbench_doc_to_choice
(doc)
lmms-eval/lmms_eval/tasks/visualwebbench/utils.py:31
Functionvisualwebbench_doc_to_target
(doc)
lmms-eval/lmms_eval/tasks/visualwebbench/utils.py:38
Functionvisualwebbench_doc_to_text
(doc, lmms_eval_specific_kwargs)
lmms-eval/lmms_eval/tasks/visualwebbench/utils.py:12
Functionvisualwebbench_doc_to_visual
(doc)
lmms-eval/lmms_eval/tasks/visualwebbench/utils.py:47
Functionvisualwebbench_f1_score_aggregate
(results)
lmms-eval/lmms_eval/tasks/visualwebbench/utils.py:122
Functionvisualwebbench_process_results_accuracy
Process results for accuracy-based tasks (action_ground, action_prediction, element_ground)
lmms-eval/lmms_eval/tasks/visualwebbench/utils.py:71
Functionvisualwebbench_process_results_f1
Process results for F1-based tasks (webqa)
lmms-eval/lmms_eval/tasks/visualwebbench/utils.py:91
Functionvisualwebbench_process_results_rouge
(doc, results)
lmms-eval/lmms_eval/tasks/visualwebbench/utils.py:51
Functionvisualwebbench_rouge_1_aggregate
(results)
lmms-eval/lmms_eval/tasks/visualwebbench/utils.py:106
Functionvisualwebbench_rouge_2_aggregate
(results)
lmms-eval/lmms_eval/tasks/visualwebbench/utils.py:110
Functionvisualwebbench_rouge_l_aggregate
(results)
lmms-eval/lmms_eval/tasks/visualwebbench/utils.py:114
Functionvitatecs_aggregate_rating
(results, args)
lmms-eval/lmms_eval/tasks/vitatecs/utils.py:205
Functionvitatecs_doc_to_answer
(doc)
lmms-eval/lmms_eval/tasks/vitatecs/utils.py:98
Functionvitatecs_doc_to_text
(doc, lmms_eval_specific_kwargs=None)
lmms-eval/lmms_eval/tasks/vitatecs/utils.py:55
Functionvitatecs_doc_to_visual
(doc)
lmms-eval/lmms_eval/tasks/vitatecs/utils.py:45
Functionvitatecs_process_results
(doc, result)
lmms-eval/lmms_eval/tasks/vitatecs/utils.py:104
Functionvizwiz_vqa_aggregate_submissions
(results, args)
lmms-eval/lmms_eval/tasks/vizwiz_vqa/utils.py:57
Functionvizwiz_vqa_doc_to_text
(doc, lmms_eval_specific_kwargs=None)
lmms-eval/lmms_eval/tasks/vizwiz_vqa/utils.py:44
Functionvizwiz_vqa_doc_to_visual
(doc)
lmms-eval/lmms_eval/tasks/vizwiz_vqa/utils.py:9
Functionvizwiz_vqa_process_results
(doc, result)
lmms-eval/lmms_eval/tasks/vizwiz_vqa/utils.py:13
Functionvlms_are_biased_aggregate_by_topic
Aggregate results by topic. Args: results: List of result dictionaries with topic and correctness Returns: Dictionary mappin
lmms-eval/lmms_eval/tasks/vlms_are_biased/utils.py:86
Functionvlms_are_biased_doc_to_text
Format question text with optional prompt additions. Args: doc: Document containing prompt field lmms_eval_specific_kwargs: Optio
lmms-eval/lmms_eval/tasks/vlms_are_biased/utils.py:19
Functionvlms_are_biased_doc_to_visual
Extract image from document. Args: doc: Document containing image field Returns: List containing the RGB image
lmms-eval/lmms_eval/tasks/vlms_are_biased/utils.py:7
Functionvlms_are_biased_process_results
Process model results and compute accuracy and bias ratio. Args: doc: Document containing ground truth and expected bias results:
lmms-eval/lmms_eval/tasks/vlms_are_biased/utils.py:42
Functionvlmsareblind_aggregate_by_task
(results: list[dict])
lmms-eval/lmms_eval/tasks/vlmsareblind/utils.py:96
Functionvlmsareblind_doc_to_text
Format the prompt for the model.
lmms-eval/lmms_eval/tasks/vlmsareblind/utils.py:29
Functionvlmsareblind_doc_to_visual
Extract image from the document.
lmms-eval/lmms_eval/tasks/vlmsareblind/utils.py:22
Functionvlmsareblind_process_results
Process the model's response and compare with ground truth.
lmms-eval/lmms_eval/tasks/vlmsareblind/utils.py:78
Functionvlmsareblind_sample_100_per_task
Subsample the dataset to at most 100 examples per task.
lmms-eval/lmms_eval/tasks/vlmsareblind/utils.py:115
Functionvlrewardbench_aggregate_results
Args: results: a list of values returned by process_results Returns: A score
lmms-eval/lmms_eval/tasks/vl_rewardbench/utils.py:130
Functionvlrewardbench_doc_to_text
(doc)
lmms-eval/lmms_eval/tasks/vl_rewardbench/utils.py:56
Functionvlrewardbench_doc_to_visual
(doc)
lmms-eval/lmms_eval/tasks/vl_rewardbench/utils.py:52
Functionvlrewardbench_process_results
Args: doc: a instance of the eval dataset results: [pred] Returns: a dictionary with key: metric name (in this case m
lmms-eval/lmms_eval/tasks/vl_rewardbench/utils.py:95
Functionvmcbench_aggregate_results
Args: results: a list of values returned by process_results Returns: A score
lmms-eval/lmms_eval/tasks/vmcbench/utils.py:138
Functionvmcbench_doc_to_text
(doc, lmms_eval_specific_kwargs=None)
lmms-eval/lmms_eval/tasks/vmcbench/utils.py:37
Functionvmcbench_doc_to_visual
(doc)
lmms-eval/lmms_eval/tasks/vmcbench/utils.py:33
Functionvmcbench_process_results
Args: doc: a instance of the eval dataset results: [pred] Returns: a dictionary with key: metric name, value: metric
lmms-eval/lmms_eval/tasks/vmcbench/utils.py:110
Functionvocalsound_aggregate_results
(results)
lmms-eval/lmms_eval/tasks/vocalsound/utils.py:31
Functionvocalsound_process_results
(doc, result)
lmms-eval/lmms_eval/tasks/vocalsound/utils.py:23
Functionvoicebench_aggregate_results
(results)
lmms-eval/lmms_eval/tasks/voicebench/utils.py:123
Functionvoicebench_doc_to_audio
(doc)
lmms-eval/lmms_eval/tasks/voicebench/utils.py:27
Functionvoicebench_doc_to_text
Generate prompt for the audio model
lmms-eval/lmms_eval/tasks/voicebench/utils.py:115
Functionvoicebench_process_results_bbh
(doc, results)
lmms-eval/lmms_eval/tasks/voicebench/utils.py:305
Functionvoicebench_process_results_harm
(_doc, results)
lmms-eval/lmms_eval/tasks/voicebench/utils.py:208
Functionvoicebench_process_results_ifeval
Adapted from `ifeval.py` to evaluate one sample. Returns {"accuracy": 1.0} if the response strictly follows all listed instructions, otherwis
lmms-eval/lmms_eval/tasks/voicebench/utils.py:1452
Functionvoicebench_process_results_mcq
(doc, results)
lmms-eval/lmms_eval/tasks/voicebench/utils.py:1250
Functionvoicebench_process_results_open
(doc, results)
lmms-eval/lmms_eval/tasks/voicebench/utils.py:138
Functionvoicebench_process_results_qa
The original evaluation uses this for determine score for gpt but no record of the number of agents was found def majority_vote(scores):
lmms-eval/lmms_eval/tasks/voicebench/utils.py:1148
Functionvqav2_aggregate_submissions
(results, args)
lmms-eval/lmms_eval/tasks/vqav2/utils.py:79
Functionvqav2_doc_to_text
(doc, lmms_eval_specific_kwargs=None)
lmms-eval/lmms_eval/tasks/vqav2/utils.py:67
Functionvqav2_doc_to_visual
(doc)
lmms-eval/lmms_eval/tasks/vqav2/utils.py:11
Functionvqav2_process_results_test
(doc, result)
lmms-eval/lmms_eval/tasks/vqav2/utils.py:53
Functionvqav2_process_results_val
(doc, result)
lmms-eval/lmms_eval/tasks/vqav2/utils.py:60
Functionvsibench_aggregate_results
(results)
lmms-eval/lmms_eval/tasks/vsibench/utils.py:130
Functionvsibench_doc_to_text
(doc, lmms_eval_specific_kwargs=None)
lmms-eval/lmms_eval/tasks/vsibench/utils.py:57
Functionvsibench_doc_to_visual
(doc)
lmms-eval/lmms_eval/tasks/vsibench/utils.py:46
Functionvsibench_doc_to_visual_as_images
Return video frames as a list of PIL Images instead of video path. This allows the model to process the video as multi-image input. Args
lmms-eval/lmms_eval/tasks/vsibench/multi_image_input/utils.py:14
Functionvsibench_process_results
(doc, results)
lmms-eval/lmms_eval/tasks/vsibench/utils.py:113
Functionvstar_aggregate_results
Aggregate results by category and overall. Args: results: a list of values returned by process_results Returns: Aggregat
lmms-eval/lmms_eval/tasks/vstar_bench/utils.py:111
Functionvstar_doc_to_text
Convert document to text prompt with options.
lmms-eval/lmms_eval/tasks/vstar_bench/utils.py:12
Functionvstar_doc_to_visual
Convert document to visual input.
lmms-eval/lmms_eval/tasks/vstar_bench/utils.py:7
Functionvstar_process_results
Process the model results and compare with ground truth. Args: doc: a instance of the eval dataset results: [pred] Retur
lmms-eval/lmms_eval/tasks/vstar_bench/utils.py:75
Methodwait_for_job
( self, job_id: str, poll_interval: float = 5.0, timeout: Optional[float] = No
lmms-eval/lmms_eval/entrypoints/client.py:370
Functionwait_for_server
(url: str, timeout: float = 30.0)
lmms-eval/lmms_eval/tui/cli.py:13
Functionwavcaps_aggregate_results
(results)
lmms-eval/lmms_eval/tasks/wavcaps/utils.py:120
Functionwavcaps_doc_to_audio
(doc)
lmms-eval/lmms_eval/tasks/wavcaps/utils.py:11
Functionwavcaps_doc_to_text
(doc, lmms_eval_specific_kwargs)
lmms-eval/lmms_eval/tasks/wavcaps/utils.py:15
Functionwavcaps_process_results
(doc, results)
lmms-eval/lmms_eval/tasks/wavcaps/utils.py:110
Functionwebsrc_aggregate_results
(results)
lmms-eval/lmms_eval/tasks/websrc/utils.py:67
Functionwebsrc_doc_to_text
(doc)
lmms-eval/lmms_eval/tasks/websrc/utils.py:22
Functionwebsrc_doc_to_visual
(doc)
lmms-eval/lmms_eval/tasks/websrc/utils.py:27
Functionwebsrc_process_results
(doc, results)
lmms-eval/lmms_eval/tasks/websrc/utils.py:34
Functionwebsrc_test_aggregate_results_for_submission
(results, args)
lmms-eval/lmms_eval/tasks/websrc/utils.py:57
Functionweighted_perplexity
(items)
lmms-eval/lmms_eval/api/metrics.py:40
Functionwemath_aggregate_results_loose
(results)
lmms-eval/lmms_eval/tasks/wemath/reasoning/utils.py:82
← previousnext →6,101–6,200 of 6,334, ranked by callers