MCPcopy Create free account

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

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

↓ 1 callersMethodprune_heads
(self, heads)
llava/model/multimodal_resampler/qformer.py:260
↓ 1 callersMethodquery
Query GPT4o to determine if the ASCII images show the same thing.
lmms-eval/lmms_eval/tasks/megabench/metrics/scoring/ascii_art_vlm_judge.py:52
↓ 1 callersMethodquery
(self, reference_info, response, images, question, eval_context=None)
lmms-eval/lmms_eval/tasks/megabench/metrics/scoring/vlm_as_judge.py:130
↓ 1 callersFunctionread_json
(path)
lmms-eval/lmms_eval/tasks/charades_sta/eval_tvg.py:7
↓ 1 callersFunctionread_video_custom
(video_path, fps=1, max_frames_num=180, force_include_last_frame=True)
lmms-eval/lmms_eval/models/simple/videollama3.py:245
↓ 1 callersFunctionrealworldqa_doc_to_visual
(doc)
lmms-eval/lmms_eval/tasks/realworldqa/reasoning/utils.py:15
↓ 1 callersFunctionrecord_video_length_stream
(container, indices)
lmms-eval/lmms_eval/models/model_utils/load_video.py:25
↓ 1 callersMethodrecreate_metadata_card
Creates a metadata card for the evaluation results dataset and pushes it to the Hugging Face hub.
lmms-eval/lmms_eval/loggers/evaluation_tracker.py:323
↓ 1 callersFunctionrefine_samples_vllm
(llm, sampling_params, tokenizer, sample_jsonl, output_jsonl, mcq=True)
lmms-eval/lmms_eval/tasks/videomathqa/cot_postprocess.py:51
↓ 1 callersFunctionrefspatial_doc_to_text
(doc: dict[str, Any])
lmms-eval/lmms_eval/tasks/refspatial/utils.py:27
↓ 1 callersFunctionrelax_exact_match
Check if the prediction string matches the ground truth exactly. Args: predict_str (str): The prediction string to be checked. gr
lmms-eval/lmms_eval/tasks/_task_utils/reasoning_utils.py:330
↓ 1 callersFunctionrelaxed_correctness
Calculates relaxed correctness. The correctness tolerates certain error ratio defined by max_relative_change. See https://arxiv.org/pdf/2203.
lmms-eval/lmms_eval/tasks/chartqa/utils.py:25
↓ 1 callersFunctionremove_articles
(text)
lmms-eval/lmms_eval/tasks/mmsearch/score/f1_score.py:9
↓ 1 callersFunctionremove_blocks
(blank_blocks_y, blank_blocks_x, image)
lmms-eval/lmms_eval/tasks/mmsearch/utils/image_utils.py:95
↓ 1 callersFunctionremove_boxed
(s)
lmms-eval/lmms_eval/tasks/scibench/utils.py:10
↓ 1 callersFunctionremove_boxed
(s: str)
lmms-eval/lmms_eval/tasks/gpqa/openai/utils.py:280
↓ 1 callersFunctionremove_boxed
(s: str)
lmms-eval/lmms_eval/tasks/aime/utils.py:339
↓ 1 callersFunctionremove_boxed
(s: str)
lmms-eval/lmms_eval/tasks/openai_math/utils.py:356
↓ 1 callersFunctionremove_comments
(s)
lmms-eval/lmms_eval/tasks/ocrbench_v2/TEDS_metric.py:294
↓ 1 callersFunctionremove_def_indef_articles
Remove definite and indefinite articles.
lmms-eval/lmms_eval/tasks/megabench/metrics/scoring/common/transformations.py:7
↓ 1 callersFunctionremove_erhua
去除儿化音词中的儿: 他女儿在那边儿 -> 他女儿在那边
lmms-eval/lmms_eval/tasks/librispeech/cn_tn.py:1001
↓ 1 callersFunctionremove_latex_math_delimiters
(latex_str)
lmms-eval/lmms_eval/tasks/megabench/metrics/scoring/common/transformations.py:97
↓ 1 callersFunctionremove_none_pattern
(input_string)
lmms-eval/lmms_eval/logging_utils.py:26
↓ 1 callersFunctionremove_none_pattern
Remove the ',none' substring from the input_string if it exists at the end. Args: input_string (str): The input string from which to remo
lmms-eval/lmms_eval/loggers/utils.py:14
↓ 1 callersFunctionremove_punc
(text)
lmms-eval/lmms_eval/tasks/mmsearch/score/f1_score.py:16
↓ 1 callersMethodremove_punctuation
Remove punctuation based on Unicode category.
lmms-eval/lmms_eval/tasks/common_voice_15/utils.py:113
↓ 1 callersMethodremove_punctuation
Remove punctuation based on Unicode category.
lmms-eval/lmms_eval/tasks/gigaspeech/utils.py:117
↓ 1 callersMethodremove_punctuation
Remove punctuation based on Unicode category.
lmms-eval/lmms_eval/tasks/people_speech/utils.py:113
↓ 1 callersMethodremove_punctuation
Remove punctuation based on Unicode category.
lmms-eval/lmms_eval/tasks/tedlium/utils.py:113
↓ 1 callersMethodremove_punctuation
Remove punctuation based on Unicode category.
lmms-eval/lmms_eval/tasks/fleurs/utils.py:222
↓ 1 callersMethodremove_punctuation
Remove punctuation based on Unicode category.
lmms-eval/lmms_eval/tasks/librispeech/utils.py:127
↓ 1 callersMethodremove_punctuation
(cls, sent: str)
lmms-eval/lmms_eval/tasks/covost2/utils.py:144
↓ 1 callersMethodremove_punctuation
Remove punctuation based on Unicode category.
lmms-eval/lmms_eval/tasks/open_asr/utils.py:126
↓ 1 callersFunctionremove_space
(text)
lmms-eval/lmms_eval/tasks/librispeech/cn_tn.py:1028
↓ 1 callersFunctionremove_symbols_and_diacritics
Replace any other markers, symbols, and punctuations with a space, and drop any diacritics (category 'Mn' and some manual mappings)
lmms-eval/lmms_eval/tasks/gigaspeech/whisper_normalizer/basic.py:27
↓ 1 callersFunctionremove_symbols_and_diacritics
Replace any other markers, symbols, and punctuations with a space, and drop any diacritics (category 'Mn' and some manual mappings)
lmms-eval/lmms_eval/tasks/librispeech/whisper_normalizer/basic.py:27
↓ 1 callersFunctionremove_type_in_cnf
(s)
lmms-eval/lmms_eval/tasks/megabench/metrics/scoring/symbolic_planning.py:77
↓ 1 callersFunctionreplace_greek_letters
Replace Greek letters in Unicode with their LaTeX equivalents.
lmms-eval/lmms_eval/tasks/megabench/metrics/scoring/common/transformations.py:92
↓ 1 callersFunctionreplace_images_tokens
(input_string)
lmms-eval/lmms_eval/tasks/jmmmu_pro/utils.py:24
↓ 1 callersFunctionreplace_images_tokens
(input_string)
lmms-eval/lmms_eval/tasks/jmmmu/utils.py:25
↓ 1 callersFunctionreplace_images_tokens
Function to replace <image_n> tokens with a single <image> token. Use only for interleaved format.
lmms-eval/lmms_eval/tasks/emma/utils.py:96
↓ 1 callersFunctionreplace_images_tokens
(input_string)
lmms-eval/lmms_eval/tasks/mmmu_pro/utils.py:21
↓ 1 callersFunctionreplace_images_tokens
(input_string)
lmms-eval/lmms_eval/tasks/mmmu_pro/reasoning/utils.py:29
↓ 1 callersFunctionreplace_images_tokens
(input_string)
lmms-eval/lmms_eval/tasks/mmmu/utils.py:36
↓ 1 callersFunctionreplace_images_tokens
(input_string)
lmms-eval/lmms_eval/tasks/mmmu/utils_group_img.py:135
↓ 1 callersFunctionreplace_images_tokens
(input_string)
lmms-eval/lmms_eval/tasks/mmmu/reasoning/utils.py:29
↓ 1 callersFunctionreplace_macrons_with_latex_overline
Replace letters with macrons with the LaTeX bar.
lmms-eval/lmms_eval/tasks/megabench/metrics/scoring/common/transformations.py:13
↓ 1 callersFunctionreplace_potential_chinese_comma
(input_string)
lmms-eval/lmms_eval/tasks/megabench/metrics/scoring/multi_ref_phrase.py:7
↓ 1 callersMethodreq_level_generate
Generate at request level with tool calling support. Returns output in the same format as batch_level_generate for consistency.
lmms-eval/lmms_eval/models/chat/sglang.py:560
↓ 1 callersFunctionrequest_caching_arg_to_dict
(cache_requests: str)
lmms-eval/lmms_eval/evaluator.py:810
↓ 1 callersFunctionrequire_package
Require an optional package, raising helpful error if missing.
lmms-eval/lmms_eval/imports.py:85
↓ 1 callersFunctionresize_and_center_crop
(image, shortest_edge_length)
llava/mm_utils.py:12
↓ 1 callersFunctionresize_and_pad_image
Resize and pad an image to a target resolution while maintaining aspect ratio. Args: image (PIL.Image.Image): The input image.
llava/mm_utils.py:152
↓ 1 callersFunctionresize_clip_pos_embed
(state_dict, model, interpolation: str = "bicubic", seq_dim=1)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/utils.py:14
↓ 1 callersFunctionresize_eva_pos_embed
(state_dict, model, interpolation: str = "bicubic", seq_dim=1)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/utils.py:110
↓ 1 callersFunctionresize_evaclip_pos_embed
(state_dict, model, interpolation: str = "bicubic", seq_dim=1)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/utils.py:80
↓ 1 callersFunctionresize_image_height
(image, fixed_size)
lmms-eval/lmms_eval/tasks/mmvetv2/utils.py:51
↓ 1 callersFunctionresize_image_height
(image, fixed_size)
lmms-eval/lmms_eval/tasks/mmmu/utils_group_img.py:39
↓ 1 callersFunctionresize_image_width
(image, fixed_size)
lmms-eval/lmms_eval/tasks/mmvetv2/utils.py:72
↓ 1 callersFunctionresize_image_width
(image, fixed_size)
lmms-eval/lmms_eval/tasks/mmmu/utils_group_img.py:60
↓ 1 callersFunctionresize_visual_pos_embed
(state_dict, model, interpolation: str = "bicubic", seq_dim=1)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/utils.py:47
↓ 1 callersFunctionresolve_videomme_video_path
(video_id: str)
playground/bench_efficiency.py:112
↓ 1 callersMethodretrieve_batch_results
(self, file_id)
lmms-eval/lmms_eval/models/simple/batch_gpt4.py:222
↓ 1 callersFunctionrhyming_part_include_unstressed
Get the "rhyming part" of a string with CMUdict phones. "Rhyming part" here means everything from the vowel in the last syllable up to the en
lmms-eval/lmms_eval/tasks/megabench/metrics/scoring/constrained_generation.py:123
↓ 1 callersFunctionrotate_facing_x
Rotate facing direction around X-axis. Args: facing: The facing direction Returns: Rotated facing direction
lmms-eval/lmms_eval/tasks/spatialtreebench/metrics/mindcube_cogmap/src/evaluation/cogmap/graph_operations.py:434
↓ 1 callersFunctionrotate_facing_y
Rotate facing direction around Y-axis. Args: facing: The facing direction Returns: Rotated facing direction
lmms-eval/lmms_eval/tasks/spatialtreebench/metrics/mindcube_cogmap/src/evaluation/cogmap/graph_operations.py:471
↓ 1 callersFunctionrotate_facing_z
Rotate facing direction around Z-axis. Args: facing: The facing direction angle: Rotation angle in degrees Returns:
lmms-eval/lmms_eval/tasks/spatialtreebench/metrics/mindcube_cogmap/src/evaluation/cogmap/graph_operations.py:390
↓ 1 callersFunctionrotate_half
(x)
llava/model/multimodal_encoder/mlcd/vit_rope2d_hf.py:13
↓ 1 callersMethodrun
()
lmms-eval/lmms_eval/models/chat/async_openai.py:240
↓ 1 callersFunctionrun_benchmark
( model, tokenizer, input_ids, attention_mask, image_tensors, image_sizes, num_war
playground/bench_efficiency.py:350
↓ 1 callersFunctionrun_dataset_benchmark
(args: BenchmarkArgs)
playground/bench_efficiency.py:586
↓ 1 callersFunctionrun_evaluation_test
Helper function to run an evaluation test. Args: server_url: URL of the evaluation server model: Model name tasks: L
lmms-eval/test/eval/utils.py:283
↓ 1 callersFunctionrun_evaluation_tests
Run evaluation tests using Python unittest. Args: test_pattern: Pattern to match test files verbose: Whether to run tests in
lmms-eval/test/eval/run_cicd.py:14
↓ 1 callersFunctionrun_query
(query: str, screenshot_dir_path: str, max_result_num: int)
lmms-eval/lmms_eval/tasks/mmsearch/utils/utils.py:62
↓ 1 callersFunctionrun_server
Run the evaluation server.
lmms-eval/lmms_eval/launch_server.py:21
↓ 1 callersFunctionrun_task_tests
Find the package root and run the tests for the given tasks
lmms-eval/lmms_eval/utils.py:713
↓ 1 callersMethodrun_tests
(self)
lmms-eval/lmms_eval/tasks/megabench/metrics/scoring/program_judge.py:78
↓ 1 callersMethodrun_user_code
(self, input_data)
lmms-eval/lmms_eval/tasks/megabench/metrics/scoring/program_judge.py:36
↓ 1 callersMethodsafe_equal
Check if the prediction is equal to the answer, even if they are of different types
lmms-eval/lmms_eval/tasks/mathvista/mathvista_evals.py:325
↓ 1 callersFunctionsafe_judge_with_retry
(model, question, gt, pred, max_retries=10, delay=2)
lmms-eval/lmms_eval/tasks/videoevalpro/utils.py:72
↓ 1 callersMethodsafe_literal_eval
(self, s)
lmms-eval/lmms_eval/tasks/phyx/phyx_evals.py:200
↓ 1 callersFunctionsafe_load_tokenizer
(tokenizer_id)
llava/conversation.py:380
↓ 1 callersFunctionsafe_parse_response
(reply)
lmms-eval/lmms_eval/tasks/videomathqa/cot_step_evaluation.py:79
↓ 1 callersMethodsample
Draw `n` samples from our fewshot docs. This method should be overridden by subclasses.
lmms-eval/lmms_eval/api/samplers.py:50
↓ 1 callersMethodsave_attention_map
(self, attention_map)
llava/model/multimodal_resampler/qformer.py:139
↓ 1 callersMethodsave_image_to_temp_file
(self, image)
lmms-eval/lmms_eval/models/simple/qwen_vl_api.py:67
↓ 1 callersMethodsave_results_aggregated
Saves the aggregated results and samples to the output path and pushes them to the Hugging Face hub if requested. Args:
lmms-eval/lmms_eval/loggers/evaluation_tracker.py:169
↓ 1 callersMethodsave_results_samples
Saves the samples results to the output path and pushes them to the Hugging Face hub if requested. Args: task_name (str)
lmms-eval/lmms_eval/loggers/evaluation_tracker.py:240
↓ 1 callersFunctionsave_to_cache
(file_name, obj)
lmms-eval/lmms_eval/caching/cache.py:38
↓ 1 callersFunctionsearch_text_brief_result
(query, max_result_num, screenshot_dir)
lmms-eval/lmms_eval/tasks/mmsearch/utils/utils.py:57
↓ 1 callersFunctionsearch_url_full_result
(urls, screenshot_dir)
lmms-eval/lmms_eval/tasks/mmsearch/utils/utils.py:165
↓ 1 callersFunctionseed_aggregation_result
(results)
lmms-eval/lmms_eval/tasks/seedbench/utils.py:27
↓ 1 callersFunctionseed_aggregation_result
(results)
lmms-eval/lmms_eval/tasks/seedbench/ko_utils.py:27
↓ 1 callersFunctionseed_aggregation_result
(results)
lmms-eval/lmms_eval/tasks/seedbench_2_plus/utils.py:35
↓ 1 callersFunctionseed_aggregation_result
(results)
lmms-eval/lmms_eval/tasks/seedbench_2/utils.py:39
↓ 1 callersFunctionsegment
Segments the video features into distinct segments based on similarity. Args: video_features (torch.Tensor): The video features to segmen
flashvid/utils.py:191
↓ 1 callersFunctionsegment_compression
Compress the segment features by applying Temporal Average Merging (TAM) and Spatial Merging. Args: segment_features (torch.Tensor): The
flashvid/utils.py:81
↓ 1 callersFunctionsend_post_request
Sends a POST request to the specified URL with the given JSON file. Parameters: - json_file (str): Path to the JSON file to be used in t
tools/egoschema.py:7
↓ 1 callersMethodserialize_function
Serializes a given function or string. If 'keep_callable' is True, the original callable is returned. Otherwise, attempts to return t
lmms-eval/lmms_eval/api/group.py:61
↓ 1 callersMethodset_cache_hook
(self, cache_hook)
lmms-eval/lmms_eval/api/model.py:322
← previousnext →2,201–2,300 of 6,334, ranked by callers