MCPcopy Create free account

hub / github.com/alibaba-damo-academy/MedEvalKit / functions

Functions839 in github.com/alibaba-damo-academy/MedEvalKit

↓ 2 callersFunctionconstruct_prompt
(sample)
utils/MMMU/data_utils.py:136
↓ 2 callersMethodcopy
(self)
models/InternVL/conversations.py:281
↓ 2 callersFunctiondeal_tasks
(tasks, max_concurrent_tasks=500)
utils/utils.py:271
↓ 2 callersMethoddevice
(self)
models/HealthGPT/llava/model/multimodal_encoder/clip_encoder.py:68
↓ 2 callersMethoddict
(self)
models/HealthGPT/llava/conversation.py:205
↓ 2 callersFunctiondisplayAnswers
(index)
models/HealthGPT/llava/eval/webpage/script.js:116
↓ 2 callersFunctiondownload
(url)
models/HuatuoGPT/model/utils.py:4
↓ 2 callersFunctiondownload
(url)
models/LLava_Med/utils.py:35
↓ 2 callersFunctionencode_image
编码图片为base64,并确保大小不超过指定值
models/GPT/GPT.py:44
↓ 2 callersMethodencode_images
(self, images)
models/HealthGPT/llava/model/llava_arch.py:140
↓ 2 callersMethodencode_images
(self, images)
models/LLava_Med/utils.py:159
↓ 2 callersFunctioneval_single
(annotation_file, result_file)
models/HealthGPT/llava/eval/eval_textvqa.py:35
↓ 2 callersFunctionexpand2square
(pil_img, background_color)
models/HealthGPT/utils.py:9
↓ 2 callersFunctionexpand2square
(pil_img, background_color)
models/HealthGPT/llava/mm_utils.py:152
↓ 2 callersFunctionexpand2square
(pil_img, background_color)
models/LLava_Med/mm_utils.py:15
↓ 2 callersMethodfeature_select
(self, image_forward_outs)
models/HuatuoGPT/model/multimodal_encoder/clip_encoder_larger_input.py:152
↓ 2 callersMethodfeature_select
(self, image_forward_outs)
models/HuatuoGPT/model/multimodal_encoder/clip_encoder.py:39
↓ 2 callersMethodfeature_select
(self, image_forward_outs)
models/LLava_Med/multimodal_encoder/clip_encoder.py:29
↓ 2 callersFunctionfind_all_linear_names
(model)
models/HealthGPT/utils.py:22
↓ 2 callersMethodgenerate_output_async
(self,idx, messages,**kwargs)
utils/utils.py:345
↓ 2 callersFunctionget_conv_log_filename
()
models/HealthGPT/llava/serve/gradio_web_server.py:32
↓ 2 callersMethodget_image_tensors
(self, images)
models/HuatuoGPT/cli.py:193
↓ 2 callersFunctionget_model_list
()
models/HealthGPT/llava/serve/gradio_web_server.py:38
↓ 2 callersFunctionget_pred_idx
Get the index (e.g. 2) from the prediction (e.g. 'C')
models/HealthGPT/llava/eval/eval_science_qa_gpt4.py:28
↓ 2 callersFunctionget_pred_idx
Get the index (e.g. 2) from the prediction (e.g. 'C')
models/HealthGPT/llava/eval/eval_science_qa.py:28
↓ 2 callersMethodget_queue_length
(self)
models/HealthGPT/llava/serve/model_worker.py:108
↓ 2 callersMethodget_queue_length
(self)
models/HealthGPT/llava/serve/sglang_worker.py:118
↓ 2 callersMethodget_status
(self)
models/HealthGPT/llava/serve/model_worker.py:115
↓ 2 callersMethodget_status
(self)
models/HealthGPT/llava/serve/sglang_worker.py:125
↓ 2 callersMethodget_worker_address
(self, model_name: str)
models/HealthGPT/llava/serve/controller.py:120
↓ 2 callersMethodinput_moderation
(self, t: str)
models/HuatuoGPT/cli.py:159
↓ 2 callersMethodinsert_image_placeholder
(self, t, num_images, placeholder='<image>', sep='\n')
models/HuatuoGPT/cli.py:165
↓ 2 callersFunctioninsert_separator
(X, sep)
models/HealthGPT/llava/mm_utils.py:188
↓ 2 callersFunctionis_none
(value)
models/HealthGPT/llava/eval/model_vqa_mmbench.py:33
↓ 2 callersFunctionload_image
(image_file, input_size=448, max_num=12)
models/InternVL/utils.py:74
↓ 2 callersFunctionload_pretrained_model
(model_path, model_base, model_name, load_8bit=False, load_4bit=False, device_map="auto", device="cuda", **kwa
models/HuatuoGPT/model/builder.py:27
↓ 2 callersFunctionload_weights
(model, hlora_path, fusion_layer_path=None)
models/HealthGPT/utils.py:90
↓ 2 callersFunctionparse_multi_choice_response
Parse the prediction from the generated response. Return the predicted index e.g., A, B, C, D.
utils/MMMU/eval_utils.py:10
↓ 2 callersFunctionphysician_completions_main
( run_reference_completions: bool = False, num_examples: int | None = None, n_threads: int = 120,
utils/HealthBench/official_code.py:545
↓ 2 callersFunctionprep_reports
Preprocesses reports
utils/Metrics_Compute/cal_report_metrics.py:35
↓ 2 callersMethodprepare_inputs_labels_for_multimodal
( self, input_ids, position_ids, attention_mask, past_key_values, labels, images, image_sizes=None
models/LLava_Med/utils.py:164
↓ 2 callersFunctionpretty_print_semaphore
(semaphore)
models/HealthGPT/llava/utils.py:123
↓ 2 callersMethodprocess_image
(self, image, image_process_mode, return_pil=False, image_format='PNG', max_len=1344, min_len=672)
models/HealthGPT/llava/conversation.py:126
↓ 2 callersFunctionprocess_images
(images, image_processor, model_cfg)
models/LLava_Med/mm_utils.py:33
↓ 2 callersMethodprocess_messages
(self,messages)
models/LLava/LLava_vllm.py:27
↓ 2 callersMethodprocess_messages
(self,messages)
models/vllm_text/vllm_tokenizer.py:25
↓ 2 callersMethodprocess_messages
(self,messages)
models/vllm_text/vllm_processor.py:26
↓ 2 callersMethodprocess_messages
(self,messages)
models/vllm_text/vllm_no_template.py:25
↓ 2 callersMethodprocess_messages
(self,messages)
models/Llama_3/Llama_3_2_vision_instruct_vllm.py:27
↓ 2 callersMethodprocess_messages
(self,messages)
models/HuatuoGPT/HuatuoGPT_vllm.py:38
↓ 2 callersMethodprocess_messages
(self,messages)
models/Qwen2_VL/Qwen2_VL_vllm.py:27
↓ 2 callersMethodprocess_messages
(self,messages)
models/LLava_Med/LLava_Med_vllm.py:27
↓ 2 callersMethodprocess_messages
(self,messages)
models/MedGemma/MedGemma_vllm.py:29
↓ 2 callersMethodprocess_messages
(self,messages)
models/InternVL/InternVL_vllm.py:31
↓ 2 callersMethodprocess_messages
(self,messages)
models/Qwen2_5_VL/Qwen2_5_VL_vllm.py:27
↓ 2 callersMethodprocess_messages
(self,messages)
models/GPT/GPT.py:143
↓ 2 callersMethodprocess_messages
(self,messages)
models/VILA_M3/VILA_M3.py:26
↓ 2 callersFunctionprocess_single_sample
(data)
utils/MMMU/data_utils.py:87
↓ 2 callersMethodregister_to_controller
(self)
models/HealthGPT/llava/serve/model_worker.py:75
↓ 2 callersMethodregister_to_controller
(self)
models/HealthGPT/llava/serve/sglang_worker.py:85
↓ 2 callersMethodregister_worker
(self, worker_name: str, check_heart_beat: bool, worker_status: dict)
models/HealthGPT/llava/serve/controller.py:69
↓ 2 callersMethodremove_worker
(self, worker_name: str)
models/HealthGPT/llava/serve/controller.py:101
↓ 2 callersFunctionrun_model
(samples, model,)
utils/MMMU/eval_test.py:17
↓ 2 callersFunctionselect_best_resolution
Selects the best resolution from a list of possible resolutions based on the original size. Args: original_size (tuple): The origina
models/HealthGPT/llava/mm_utils.py:12
↓ 2 callersFunctionsem_task
(task)
utils/utils.py:275
↓ 2 callersMethodsend_heart_beat
(self)
models/HealthGPT/llava/serve/model_worker.py:87
↓ 2 callersMethodsend_heart_beat
(self)
models/HealthGPT/llava/serve/sglang_worker.py:97
↓ 2 callersFunctionswitchQuestionAndCategory
()
models/HealthGPT/llava/eval/webpage/script.js:203
↓ 2 callersFunctiontokenize
(text)
utils/utils.py:29
↓ 2 callersMethodtokenizer_image_token
(self, prompt, image_token_index=IMAGE_TOKEN_INDEX, return_tensors=None)
models/HuatuoGPT/cli.py:84
↓ 2 callersFunctionupdateExpandButtonVisibility
(card)
models/HealthGPT/llava/eval/webpage/script.js:226
↓ 2 callersFunctionupdateModelSelect
()
models/HealthGPT/llava/eval/webpage/script.js:64
↓ 1 callersMethod__init__
(self, config: Qwen2Config)
models/HealthGPT/llava/model/language_model/llava_qwen.py:36
↓ 1 callersMethod__init__
(self, config: LlamaConfig)
models/HealthGPT/llava/model/language_model/llava_llama.py:37
↓ 1 callersMethod__init__
(self, config: Phi3Config)
models/HealthGPT/llava/model/language_model/llava_phi3.py:39
↓ 1 callersMethod__init__
(self, config: MptConfig)
models/HealthGPT/llava/model/language_model/llava_mpt.py:32
↓ 1 callersMethod__init__
(self, config: MistralConfig)
models/HealthGPT/llava/model/language_model/llava_mistral.py:38
↓ 1 callersMethod__init__
(self)
models/HealthGPT/llava/model/multimodal_projector/builder.py:7
↓ 1 callersMethod__init__
(self, vision_tower, args, delay_load=False)
models/HealthGPT/llava/model/multimodal_encoder/clip_encoder.py:8
↓ 1 callersMethod__init__
( self, in_features: int, out_features: int, r: int = 0, lora_alpha: i
models/HealthGPT/llava/peft/tuners/lora.py:260
↓ 1 callersMethod__init__
(self, config: Qwen2Config)
models/HuatuoGPT/model/language_model/llava_qwen2.py:38
↓ 1 callersMethod__init__
(self, config: LlamaConfig)
models/HuatuoGPT/model/language_model/llava_llama.py:39
↓ 1 callersMethod__init__
(self, config: MptConfig)
models/HuatuoGPT/model/language_model/llava_mpt.py:32
↓ 1 callersMethod__init__
(self)
models/HuatuoGPT/model/multimodal_projector/builder.py:7
↓ 1 callersMethod__init__
(self, vision_tower, args, delay_load=False)
models/HuatuoGPT/model/multimodal_encoder/clip_encoder_larger_input.py:121
↓ 1 callersMethod__init__
(self)
models/LLava_Med/multimodal_projector/builder.py:7
↓ 1 callersFunction_aggregate_get_clipped_mean
( out_samples, )
utils/HealthBench/utils.py:49
↓ 1 callersFunction_aggregate_get_clipped_mean
Aggregate multiple SingleEvalResults into a single EvalResult for HealthBench. For each metric, returns the stats in _compute_clipped_stats.
utils/HealthBench/official_code.py:223
↓ 1 callersMethod_compute_answer_scores
compute the accuracy (soft score) of human answers
models/HealthGPT/llava/eval/m4c_evaluator.py:225
↓ 1 callersFunction_compute_clipped_stats
Computes the mean (clipped to [0, 1]), bootstrap std for that mean, and n_samples for final HealthBench scoring.
utils/HealthBench/utils.py:31
↓ 1 callersFunction_compute_clipped_stats
Computes the mean (clipped to [0, 1]), bootstrap std for that mean, and n_samples for final HealthBench scoring.
utils/HealthBench/official_code.py:204
↓ 1 callersMethod_find_and_replace
(self)
models/HealthGPT/llava/peft/tuners/lora.py:118
↓ 1 callersMethod_get_submodules
(self, key)
models/HealthGPT/llava/peft/tuners/lora.py:161
↓ 1 callersMethod_prefix_tuning_forward
( self, input_ids=None, attention_mask=None, inputs_embeds=None, label
models/HealthGPT/llava/peft/peft_model.py:425
↓ 1 callersMethod_prefix_tuning_forward
( self, input_ids=None, attention_mask=None, inputs_embeds=None, label
models/HealthGPT/llava/peft/peft_model.py:879
↓ 1 callersFunction_prepare_prompt_learning_config
(peft_config, model_config)
models/HealthGPT/llava/peft/mapping.py:74
↓ 1 callersMethod_replace_module
(self, parent_module, child_name, new_module, old_module)
models/HealthGPT/llava/peft/tuners/lora.py:167
↓ 1 callersMethod_setup_prompt_encoder
(self)
models/HealthGPT/llava/peft/peft_model.py:189
↓ 1 callersFunctionadd_special_tokens_and_resize_model
(tokenizer, model, vq_idx_nums=8192)
models/HealthGPT/utils.py:37
↓ 1 callersFunctionapply_delta
(base_model_path, target_model_path, delta_path)
models/HealthGPT/llava/model/apply_delta.py:13
← previousnext →101–200 of 839, ranked by callers