MCPcopy Create free account

hub / github.com/DLYuanGod/TinyGPT-V / functions

Functions1,352 in github.com/DLYuanGod/TinyGPT-V

↓ 3 callersMethodvalue
(self)
TinyGPT-V-main/minigpt4/common/logger.py:69
↓ 3 callersMethodvalue
(self)
minigpt4/common/logger.py:69
↓ 2 callersMethod__init__
(self, loaded_data, vis_processor, root_path)
TinyGPT-V-main/minigpt4/datasets/datasets/coco_caption.py:79
↓ 2 callersMethod__init__
vis_root (string): Root directory of images (e.g. coco/images/) ann_root (string): directory to store the annotation file
TinyGPT-V-main/minigpt4/datasets/datasets/caption_datasets.py:30
↓ 2 callersMethod__init__
(self, prompt="", max_words=50)
TinyGPT-V-main/minigpt4/processors/blip_processors.py:30
↓ 2 callersMethod__init__
(self, loaded_data, vis_processor, root_path)
minigpt4/datasets/datasets/coco_caption.py:79
↓ 2 callersMethod__init__
vis_root (string): Root directory of images (e.g. coco/images/) ann_root (string): directory to store the annotation file
minigpt4/datasets/datasets/caption_datasets.py:30
↓ 2 callersMethod__init__
(self, prompt="", max_words=50)
minigpt4/processors/blip_processors.py:30
↓ 2 callersMethod_add_instance_ids
(self, key="instance_id")
TinyGPT-V-main/minigpt4/datasets/datasets/base_dataset.py:53
↓ 2 callersMethod_add_instance_ids
(self, key="instance_id")
minigpt4/datasets/datasets/base_dataset.py:53
↓ 2 callersMethod_compute_inv_freq
(self, device: Optional[str] = None)
TinyGPT-V-main/minigpt4/models/modeling_phi.py:214
↓ 2 callersMethod_compute_inv_freq
(self, device: Optional[str] = None)
minigpt4/models/modeling_phi.py:214
↓ 2 callersMethod_forward_cross_attn
( self, x: torch.FloatTensor, past_key_values: Optional[InferenceParams], key_
TinyGPT-V-main/minigpt4/models/modeling_phi.py:620
↓ 2 callersMethod_forward_cross_attn
( self, x: torch.FloatTensor, past_key_values: Optional[InferenceParams], key_
minigpt4/models/modeling_phi.py:620
↓ 2 callersMethod_save_checkpoint
Save the checkpoint at the current epoch.
TinyGPT-V-main/minigpt4/runners/runner_base.py:575
↓ 2 callersMethod_save_checkpoint
Save the checkpoint at the current epoch.
minigpt4/runners/runner_base.py:575
↓ 2 callersMethod_set_cos_sin_cache
(self, seq_len, device, dtype)
modeling_phi.py:114
↓ 2 callersMethod_set_cos_sin_cache
(self, seq_len, device, dtype)
TinyGPT-V-main/modeling_phi.py:114
↓ 2 callersMethod_split_heads
Split the last dimension into (num_heads, head_dim) without making any copies, results share same memory storage as `fused_qkv`
modeling_phi.py:304
↓ 2 callersMethod_split_heads
Split the last dimension into (num_heads, head_dim) without making any copies, results share same memory storage as `fused_qkv`
TinyGPT-V-main/modeling_phi.py:304
↓ 2 callersMethod_train_inner_loop
An inner training loop compatible with both epoch-based and iter-based training. When using epoch-based, training stops after one ep
TinyGPT-V-main/minigpt4/tasks/base_task.py:157
↓ 2 callersMethod_train_inner_loop
An inner training loop compatible with both epoch-based and iter-based training. When using epoch-based, training stops after one ep
minigpt4/tasks/base_task.py:157
↓ 2 callersMethod_update_cos_sin_cache
( self, seqlen: int, device: Optional[str] = None, dtype: Optional[torch.dtype
TinyGPT-V-main/minigpt4/models/modeling_phi.py:217
↓ 2 callersMethod_update_cos_sin_cache
( self, seqlen: int, device: Optional[str] = None, dtype: Optional[torch.dtype
minigpt4/models/modeling_phi.py:217
↓ 2 callersFunction_urlretrieve
(url: str, filename: str, chunk_size: int = 1024)
TinyGPT-V-main/minigpt4/common/utils.py:154
↓ 2 callersFunction_urlretrieve
(url: str, filename: str, chunk_size: int = 1024)
minigpt4/common/utils.py:154
↓ 2 callersMethodadd_meter
(self, name, meter)
TinyGPT-V-main/minigpt4/common/logger.py:119
↓ 2 callersMethodadd_meter
(self, name, meter)
minigpt4/common/logger.py:119
↓ 2 callersMethodanswer
(self, conv, img_list, **kargs)
TinyGPT-V-main/minigpt4/conversation/conversation.py:189
↓ 2 callersMethodanswer
(self, conv, img_list, **kargs)
minigpt4/conversation/conversation.py:189
↓ 2 callersMethodanswer_prepare
(self, conv, img_list, max_new_tokens=300, num_beams=1, min_length=1, top_p=0.9, repeti
TinyGPT-V-main/minigpt4/conversation/conversation.py:159
↓ 2 callersMethodanswer_prepare
(self, conv, img_list, max_new_tokens=300, num_beams=1, min_length=1, top_p=0.9, repeti
minigpt4/conversation/conversation.py:159
↓ 2 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
modeling_phi.py:191
↓ 2 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
TinyGPT-V-main/modeling_phi.py:191
↓ 2 callersMethodask
(self, text, conv)
TinyGPT-V-main/minigpt4/conversation/conversation.py:152
↓ 2 callersMethodask
(self, text, conv)
minigpt4/conversation/conversation.py:152
↓ 2 callersFunctioncomputeIoU
(bbox1, bbox2)
TinyGPT-V-main/minigpt4/common/eval_utils.py:64
↓ 2 callersMethodcreateIndex
(self)
TinyGPT-V-main/minigpt4/common/vqa_tools/vqa.py:53
↓ 2 callersMethodcreateIndex
(self)
TinyGPT-V-main/minigpt4/common/vqa_tools/VQA/PythonHelperTools/vqaTools/vqa.py:47
↓ 2 callersMethodcreateIndex
(self)
minigpt4/common/vqa_tools/vqa.py:53
↓ 2 callersMethodcreateIndex
(self)
minigpt4/common/vqa_tools/VQA/PythonHelperTools/vqaTools/vqa.py:47
↓ 2 callersMethoddevice
(self)
TinyGPT-V-main/minigpt4/models/base_model.py:38
↓ 2 callersMethoddevice
(self)
minigpt4/models/base_model.py:38
↓ 2 callersFunctiondownload_url
Download a file from a url and place it in root. Args: url (str): URL to download file from root (str): Directory to place downloa
TinyGPT-V-main/minigpt4/common/utils.py:167
↓ 2 callersFunctiondownload_url
Download a file from a url and place it in root. Args: url (str): URL to download file from root (str): Directory to place downloa
minigpt4/common/utils.py:167
↓ 2 callersFunctionescape_markdown
(text)
demo_v2.py:142
↓ 2 callersFunctionescape_markdown
(text)
TinyGPT-V-main/demo_v2.py:142
↓ 2 callersMethodeval_epoch
Evaluate the model on a given split. Args: split_name (str): name of the split to evaluate on. cur_epoch (in
TinyGPT-V-main/minigpt4/runners/runner_base.py:450
↓ 2 callersMethodeval_epoch
Evaluate the model on a given split. Args: split_name (str): name of the split to evaluate on. cur_epoch (in
minigpt4/runners/runner_base.py:450
↓ 2 callersMethodevaluate
(self, cur_epoch="best", skip_reload=False)
TinyGPT-V-main/minigpt4/runners/runner_base.py:422
↓ 2 callersMethodformat_arguments
(self)
TinyGPT-V-main/minigpt4/common/config.py:276
↓ 2 callersMethodformat_arguments
(self)
minigpt4/common/config.py:276
↓ 2 callersMethodformat_help
(self)
TinyGPT-V-main/minigpt4/common/config.py:279
↓ 2 callersMethodformat_help
(self)
minigpt4/common/config.py:279
↓ 2 callersMethodfrom_config
(cls, cfg=None)
TinyGPT-V-main/minigpt4/processors/base_processor.py:20
↓ 2 callersMethodfrom_config
(cls, cfg=None)
minigpt4/processors/base_processor.py:20
↓ 2 callersMethodgetQuesIds
Get question ids that satisfy given filter conditions. default skips that filter :param imgIds (int array) : get question ids f
TinyGPT-V-main/minigpt4/common/vqa_tools/vqa.py:79
↓ 2 callersMethodgetQuesIds
Get question ids that satisfy given filter conditions. default skips that filter :param imgIds (int array) : get question ids f
minigpt4/common/vqa_tools/vqa.py:79
↓ 2 callersMethodgetRefBox
(self, ref_id)
TinyGPT-V-main/minigpt4/datasets/datasets/coco_dataset.py:308
↓ 2 callersMethodgetRefBox
(self, ref_id)
minigpt4/datasets/datasets/coco_dataset.py:308
↓ 2 callersMethodget_context_emb
(self, prompt, img_list)
TinyGPT-V-main/minigpt4/models/minigpt_base.py:68
↓ 2 callersMethodget_context_emb
(self, prompt, img_list)
minigpt4/models/minigpt_base.py:68
↓ 2 callersMethodget_data
(self, index)
TinyGPT-V-main/minigpt4/datasets/datasets/aok_vqa_datasets.py:51
↓ 2 callersMethodget_data
(self, index)
minigpt4/datasets/datasets/aok_vqa_datasets.py:51
↓ 2 callersMethodget_extended_attention_mask
Makes broadcastable attention and causal masks so that future and masked tokens are ignored. Arguments: attention_mask (
TinyGPT-V-main/minigpt4/models/Qformer.py:713
↓ 2 callersMethodget_extended_attention_mask
Makes broadcastable attention and causal masks so that future and masked tokens are ignored. Arguments: attention_mask (
minigpt4/models/Qformer.py:713
↓ 2 callersMethodget_prompt
(self)
TinyGPT-V-main/minigpt4/conversation/conversation.py:39
↓ 2 callersMethodget_prompt
(self)
minigpt4/conversation/conversation.py:39
↓ 2 callersFunctionget_world_size
()
TinyGPT-V-main/minigpt4/common/dist_utils.py:41
↓ 2 callersFunctionget_world_size
()
minigpt4/common/dist_utils.py:41
↓ 2 callersMethodloadRes
Load result file and return a result object. :param resFile (str) : file name of result file :return: res (obj)
minigpt4/common/vqa_tools/vqa.py:173
↓ 2 callersMethodload_checkpoint
Load from a finetuned checkpoint. This should expect no mismatch in the model keys and the checkpoint keys.
TinyGPT-V-main/minigpt4/models/base_model.py:41
↓ 2 callersMethodload_checkpoint
Load from a finetuned checkpoint. This should expect no mismatch in the model keys and the checkpoint keys.
minigpt4/models/base_model.py:41
↓ 2 callersFunctionload_dataset
Example >>> dataset = load_dataset("coco_caption", cfg=None) >>> splits = dataset.keys() >>> print([len(dataset[split]) for split in
minigpt4/datasets/builders/__init__.py:23
↓ 2 callersMethodlog_every
(self, iterable, print_freq, header=None)
TinyGPT-V-main/minigpt4/common/logger.py:122
↓ 2 callersMethodlog_every
(self, iterable, print_freq, header=None)
minigpt4/common/logger.py:122
↓ 2 callersMethodlog_stats
(self, stats, split_name)
TinyGPT-V-main/minigpt4/runners/runner_base.py:648
↓ 2 callersMethodlog_stats
(self, stats, split_name)
minigpt4/runners/runner_base.py:648
↓ 2 callersFunctionmove_to_cuda
(sample)
TinyGPT-V-main/minigpt4/datasets/data_utils.py:83
↓ 2 callersFunctionmove_to_cuda
(sample)
minigpt4/datasets/data_utils.py:83
↓ 2 callersMethodmulti_select
(self, images, texts, answers, num_cand=None)
minigpt4/models/minigpt_base.py:397
↓ 2 callersMethodnext
(self, it)
TinyGPT-V-main/minigpt4/datasets/datasets/dataloader_utils.py:101
↓ 2 callersMethodnext
(self, it)
minigpt4/datasets/datasets/dataloader_utils.py:103
↓ 2 callersMethodpreload
(self, it)
TinyGPT-V-main/minigpt4/datasets/datasets/dataloader_utils.py:76
↓ 2 callersMethodpreload
(self, it)
minigpt4/datasets/datasets/dataloader_utils.py:78
↓ 2 callersFunctionprepare_sample
(samples, cuda_enabled=True)
TinyGPT-V-main/minigpt4/datasets/data_utils.py:90
↓ 2 callersFunctionprepare_sample
(samples, cuda_enabled=True)
minigpt4/datasets/data_utils.py:90
↓ 2 callersMethodpreprocess
(self, index)
TinyGPT-V-main/minigpt4/datasets/datasets/coco_dataset.py:49
↓ 2 callersMethodpreprocess
(self, index)
minigpt4/datasets/datasets/coco_dataset.py:49
↓ 2 callersMethodprocessDigitArticle
(self, inText)
TinyGPT-V-main/minigpt4/common/vqa_tools/VQA/PythonEvaluationTools/vqaEvaluation/vqaEval.py:142
↓ 2 callersMethodprocessDigitArticle
(self, inText)
minigpt4/common/vqa_tools/VQA/PythonEvaluationTools/vqaEvaluation/vqaEval.py:142
↓ 2 callersMethodprocessPunctuation
(self, inText)
TinyGPT-V-main/minigpt4/common/vqa_tools/vqa_eval.py:249
↓ 2 callersMethodprocessPunctuation
(self, inText)
TinyGPT-V-main/minigpt4/common/vqa_tools/VQA/PythonEvaluationTools/vqaEvaluation/vqaEval.py:130
↓ 2 callersMethodprocessPunctuation
(self, inText)
minigpt4/common/vqa_tools/vqa_eval.py:249
↓ 2 callersMethodprocessPunctuation
(self, inText)
minigpt4/common/vqa_tools/VQA/PythonEvaluationTools/vqaEvaluation/vqaEval.py:130
↓ 2 callersFunctionrotate_half
Rotates half the hidden dims of the input.
modeling_phi.py:183
↓ 2 callersFunctionrotate_half
Rotates half the hidden dims of the input.
TinyGPT-V-main/modeling_phi.py:183
↓ 2 callersFunctionsave_tmp_img
(visual_img)
demo_v2.py:115
↓ 2 callersFunctionsave_tmp_img
(visual_img)
TinyGPT-V-main/demo_v2.py:115
↓ 2 callersMethodsetup_task
(cls, **kwargs)
TinyGPT-V-main/minigpt4/tasks/base_task.py:27
← previousnext →101–200 of 1,352, ranked by callers