MCPcopy Create free account

hub / github.com/cpystan/SD-VLM / functions

Functions509 in github.com/cpystan/SD-VLM

↓ 112 callersMethodappend
(self, value)
evaluation/llm_generate.py:33
↓ 25 callersMethodappend_message
(self, role, message)
llava/conversation.py:109
↓ 23 callersMethodcopy
(self)
llava/conversation.py:180
↓ 23 callersFunctiontokenizer_image_token
(prompt, tokenizer, image_token_index=IMAGE_TOKEN_INDEX, return_tensors=None)
llava/mm_utils.py:185
↓ 19 callersMethodwrite
(self, buf)
llava/utils.py:73
↓ 15 callersMethodget_prompt
(self)
llava/conversation.py:32
↓ 12 callersMethodto_gradio_chatbot
(self)
llava/conversation.py:162
↓ 11 callersMethodget_model
(self)
llava/model/llava_arch.py:138
↓ 11 callersFunctionload_pretrained_model
(model_path, model_base, model_name, load_8bit=False, load_4bit=False, device_map="auto", device="cuda", use_f
llava/model/builder.py:26
↓ 10 callersFunctiondisable_torch_init
Disable the redundant torch default initialization to accelerate model creation.
llava/utils.py:93
↓ 10 callersFunctionprocess_images
(images, image_processor, model_cfg)
llava/mm_utils.py:166
↓ 9 callersMethodadd
(self,type_name,rate)
evaluation/evaluate_final.py:72
↓ 9 callersMethodgenerate
( self, inputs: Optional[torch.Tensor] = None, images: Optional[torch.Tensor] = None,
llava/model/language_model/llava_llama.py:206
↓ 9 callersFunctionget_model_name_from_path
(model_path)
llava/mm_utils.py:207
↓ 7 callersMethodget_vision_tower
(self)
llava/model/llava_arch.py:47
↓ 6 callersMethodappend
(self, value)
evaluation/evaluate_final.py:98
↓ 6 callersMethodconstrain_to_multiple_of
(self, x, min_val=0, max_val=None)
llava/model/depth/depth_anything_v2/util/transform.py:51
↓ 6 callersMethodconstrain_to_multiple_of
(self, x, min_val=0, max_val=None)
llava/model/depth/metric_depth/dataset/transform.py:96
↓ 6 callersMethodconstrain_to_multiple_of
(self, x, min_val=0, max_val=None)
llava/model/depth/metric_depth/depth_anything_v2/util/transform.py:51
↓ 6 callersMethodflush
(self)
llava/utils.py:87
↓ 5 callersFunctionget_answer
(problem, options)
scripts/convert_sqa_to_llava_base_prompt.py:25
↓ 5 callersFunctionget_choice_text
(probelm, options)
scripts/convert_sqa_to_llava_base_prompt.py:15
↓ 5 callersFunctionget_context_text
(problem, use_caption)
scripts/convert_sqa_to_llava_base_prompt.py:6
↓ 5 callersFunctionget_lecture_text
(problem)
scripts/convert_sqa_to_llava_base_prompt.py:29
↓ 5 callersFunctionget_question_text
(problem)
scripts/convert_sqa_to_llava_base_prompt.py:1
↓ 5 callersFunctionget_solution_text
(problem)
scripts/convert_sqa_to_llava_base_prompt.py:35
↓ 5 callersMethodprepare_inputs_labels_for_multimodal
( self, input_ids, position_ids, attention_mask, past_key_values, labels, images, ori_imgs, im
llava/model/llava_arch.py:312
↓ 5 callersMethodupdate
(self, new_dict)
evaluation/llm_generate.py:57
↓ 4 callersFunction_make_fusion_block
(features, use_bn, size=None)
llava/model/depth/depth_anything_v2/dpt.py:12
↓ 4 callersFunction_make_fusion_block
(features, use_bn, size=None)
llava/model/depth/metric_depth/depth_anything_v2/dpt.py:12
↓ 4 callersFunctionbuild_logger
(logger_name, logger_filename)
llava/utils.py:17
↓ 4 callersMethodembed_tokens
(self, x)
llava/model/language_model/llava_mpt.py:36
↓ 4 callersFunctionexpand2square
(pil_img, background_color)
llava/mm_utils.py:152
↓ 4 callersMethodget_images
(self, return_pil=False)
llava/conversation.py:152
↓ 4 callersFunctionget_length_grouped_indices
(lengths, batch_size, world_size, generator=None, merge=True)
llava/train/llava_trainer.py:89
↓ 4 callersMethodload_model
(self, device_map=None)
llava/model/multimodal_encoder/clip_encoder.py:24
↓ 4 callersMethodprepare_tokens_with_masks
(self, x, masks=None)
llava/model/depth/depth_anything_v2/dinov2.py:212
↓ 4 callersMethodprepare_tokens_with_masks
(self, x, masks=None)
llava/model/depth/metric_depth/depth_anything_v2/dinov2.py:212
↓ 4 callersFunctionread_jsonl
(path: str, key: str=None)
llava/eval/generate_webpage_data_from_table.py:10
↓ 4 callersFunctiontext2Markdown
(text)
llava/eval/webpage/script.js:35
↓ 3 callersMethod__init__
(self, num_channels: int, eps: float = 1e-6)
llava/model/language_model/llava_llama.py:51
↓ 3 callersFunctiondisplayQuestion
(index)
llava/eval/webpage/script.js:110
↓ 3 callersFunctioneval_single
(result_file, eval_only_type=None)
scripts/convert_seed_for_submission.py:14
↓ 3 callersMethodfeature_select
(self, image_forward_outs)
llava/model/multimodal_encoder/clip_encoder.py:35
↓ 3 callersFunctionget_pred_idx
Get the index (e.g. 2) from the prediction (e.g. 'C')
llava/eval/eval_science_qa_gpt4_requery.py:30
↓ 3 callersMethodget_vision_tower
(self)
llava/model/llava_arch.py:210
↓ 3 callersMethodget_worker_status
(self, worker_name: str)
llava/serve/controller.py:88
↓ 3 callersMethodinfer_image
(self, raw_image, input_size=518,target_size=(336,336),gpu=None)
llava/model/depth/depth_anything_v2/dpt.py:187
↓ 3 callersFunctionload_image_from_base64
(image)
llava/mm_utils.py:148
↓ 3 callersFunctionmaybe_zero_3
(param, ignore_status=False, name=None)
llava/train/train.py:123
↓ 3 callersFunctiontrain
(attn_implementation=None)
llava/train/train.py:876
↓ 3 callersFunctionupdateQuestionSelect
(question_id)
llava/eval/webpage/script.js:48
↓ 3 callersFunctionvote_last_response
(state, vote_type, model_selector, request: gr.Request)
llava/serve/gradio_web_server.py:82
↓ 2 callersMethod__init__
( self, in_channels, features=256, use_bn=False, out_channels=[256
llava/model/depth/depth_anything_v2/dpt.py:39
↓ 2 callersMethod__init__
( self, in_channels, features=256, use_bn=False, out_channels=[256
llava/model/depth/metric_depth/depth_anything_v2/dpt.py:39
↓ 2 callersFunction_tokenize_fn
Tokenize a list of strings.
llava/train/train.py:257
↓ 2 callersMethodadd
(self,type_name,rate)
evaluation/evaluate_final.py:30
↓ 2 callersFunctionauto_upgrade
(config)
llava/model/utils.py:4
↓ 2 callersFunctionbuild_prompt_chatbot
(problems, shot_qids, prompt_format, use_caption=False, options=["A", "B", "C", "D", "E"], is_test=False)
scripts/convert_sqa_to_llava_base_prompt.py:221
↓ 2 callersFunctionbuild_vision_projector
(config, delay_load=False, **kwargs)
llava/model/multimodal_projector/builder.py:33
↓ 2 callersFunctionbuild_vision_tower
(vision_tower_cfg, **kwargs)
llava/model/multimodal_encoder/builder.py:5
↓ 2 callersFunctioncreate_one_example
(format, question, context, choice, answer, lecture, solution, test_example=True)
scripts/convert_sqa_to_llava_base_prompt.py:106
↓ 2 callersFunctioncreate_one_example_gpt4
(format, question, context, choice, answer, lecture, solution, test_example=True)
scripts/convert_sqa_to_llava_base_prompt.py:162
↓ 2 callersMethodcustom_adaptive_avg_pool2d
(self,input_tensor, output_size)
llava/model/llava_arch.py:251
↓ 2 callersMethoddict
(self)
llava/conversation.py:191
↓ 2 callersFunctiondisplayAnswers
(index)
llava/eval/webpage/script.js:116
↓ 2 callersFunctiondrop_add_residual_stochastic_depth
( x: Tensor, residual_func: Callable[[Tensor], Tensor], sample_drop_ratio: float = 0.0, )
llava/model/depth/depth_anything_v2/dinov2_layers/block.py:110
↓ 2 callersFunctiondrop_add_residual_stochastic_depth
( x: Tensor, residual_func: Callable[[Tensor], Tensor], sample_drop_ratio: float = 0.0, )
llava/model/depth/metric_depth/depth_anything_v2/dinov2_layers/block.py:110
↓ 2 callersFunctiondrop_add_residual_stochastic_depth_list
( x_list: List[Tensor], residual_func: Callable[[Tensor, Any], Tensor], sample_drop_ratio: float =
llava/model/depth/depth_anything_v2/dinov2_layers/block.py:181
↓ 2 callersFunctiondrop_add_residual_stochastic_depth_list
( x_list: List[Tensor], residual_func: Callable[[Tensor, Any], Tensor], sample_drop_ratio: float =
llava/model/depth/metric_depth/depth_anything_v2/dinov2_layers/block.py:181
↓ 2 callersFunctioneval_single
(annotation_file, result_file)
llava/eval/eval_textvqa.py:35
↓ 2 callersFunctionget_attn_bias_and_cat
this will perform the index select, cat the tensors, and provide the attn_bias from cache
llava/model/depth/depth_anything_v2/dinov2_layers/block.py:157
↓ 2 callersFunctionget_attn_bias_and_cat
this will perform the index select, cat the tensors, and provide the attn_bias from cache
llava/model/depth/metric_depth/depth_anything_v2/dinov2_layers/block.py:157
↓ 2 callersFunctionget_conv_log_filename
()
llava/serve/gradio_web_server.py:32
↓ 2 callersFunctionget_model_list
()
llava/serve/gradio_web_server.py:38
↓ 2 callersFunctionget_pred_idx
Get the index (e.g. 2) from the prediction (e.g. 'C')
llava/eval/eval_science_qa_gpt4.py:28
↓ 2 callersFunctionget_pred_idx
Get the index (e.g. 2) from the prediction (e.g. 'C')
llava/eval/eval_science_qa.py:28
↓ 2 callersMethodget_queue_length
(self)
llava/serve/model_worker.py:108
↓ 2 callersMethodget_queue_length
(self)
llava/serve/sglang_worker.py:118
↓ 2 callersMethodget_status
(self)
llava/serve/model_worker.py:115
↓ 2 callersMethodget_status
(self)
llava/serve/sglang_worker.py:125
↓ 2 callersMethodget_worker_address
(self, model_name: str)
llava/serve/controller.py:120
↓ 2 callersMethodimage2tensor
(self, raw_image, input_size=518,gpu=None)
llava/model/depth/depth_anything_v2/dpt.py:196
↓ 2 callersMethodinfer_image
(self, raw_image, input_size=518)
llava/model/depth/metric_depth/depth_anything_v2/dpt.py:188
↓ 2 callersFunctionis_none
(value)
llava/eval/model_vqa_mmbench.py:33
↓ 2 callersFunctionmake_2tuple
(x)
llava/model/depth/depth_anything_v2/dinov2_layers/patch_embed.py:17
↓ 2 callersFunctionmake_2tuple
(x)
llava/model/depth/metric_depth/depth_anything_v2/dinov2_layers/patch_embed.py:17
↓ 2 callersFunctionpreprocess_multimodal
( sources: Sequence[str], data_args: DataArguments )
llava/train/train.py:317
↓ 2 callersFunctionpretty_print_semaphore
(semaphore)
llava/utils.py:123
↓ 2 callersMethodprocess_image
(self, image, image_process_mode, return_pil=False, image_format='PNG', max_len=1344, min_len=672)
llava/conversation.py:112
↓ 2 callersFunctionrank0_print
(*args)
llava/train/train.py:49
↓ 2 callersMethodregister_to_controller
(self)
llava/serve/model_worker.py:75
↓ 2 callersMethodregister_to_controller
(self)
llava/serve/sglang_worker.py:85
↓ 2 callersMethodregister_worker
(self, worker_name: str, check_heart_beat: bool, worker_status: dict)
llava/serve/controller.py:69
↓ 2 callersMethodremove_worker
(self, worker_name: str)
llava/serve/controller.py:101
↓ 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
llava/mm_utils.py:12
↓ 2 callersMethodsend_heart_beat
(self)
llava/serve/model_worker.py:87
↓ 2 callersMethodsend_heart_beat
(self)
llava/serve/sglang_worker.py:97
↓ 2 callersFunctionswitchQuestionAndCategory
()
llava/eval/webpage/script.js:203
↓ 2 callersFunctionupdateExpandButtonVisibility
(card)
llava/eval/webpage/script.js:226
next →1–100 of 509, ranked by callers