MCPcopy Create free account

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

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

↓ 109 callersMethodget
r"""Get an item from registry with key 'name' Args: name (string): Key whose value needs to be retrieved. default: If
TinyGPT-V-main/minigpt4/common/registry.py:284
↓ 108 callersMethodget
r"""Get an item from registry with key 'name' Args: name (string): Key whose value needs to be retrieved. default: If
minigpt4/common/registry.py:284
↓ 83 callersFunctionprint
(*args, **kwargs)
minigpt4/common/dist_utils.py:25
↓ 75 callersFunctionprint
(*args, **kwargs)
TinyGPT-V-main/minigpt4/common/dist_utils.py:25
↓ 62 callersMethodadd_argument
Assume the first argument is the name of the argument.
minigpt4/common/config.py:248
↓ 59 callersMethodinfo
Print information about the VQA annotation file. :return:
TinyGPT-V-main/minigpt4/common/vqa_tools/vqa.py:71
↓ 59 callersMethodinfo
Print information about the VQA annotation file. :return:
minigpt4/common/vqa_tools/vqa.py:71
↓ 58 callersMethodadd_argument
Assume the first argument is the name of the argument.
TinyGPT-V-main/minigpt4/common/config.py:248
↓ 22 callersMethodupdate
(self, **kwargs)
TinyGPT-V-main/minigpt4/common/logger.py:87
↓ 22 callersMethodupdate
(self, **kwargs)
minigpt4/common/logger.py:87
↓ 18 callersMethodgenerate
function for generate test use
minigpt4/models/minigpt_base.py:320
↓ 16 callersMethodbuild_processors
(self)
TinyGPT-V-main/minigpt4/datasets/builders/base_dataset_builder.py:61
↓ 16 callersMethodbuild_processors
(self)
minigpt4/datasets/builders/base_dataset_builder.py:61
↓ 16 callersFunctionprepare_texts
(texts, conv_temp)
minigpt4/common/eval_utils.py:37
↓ 14 callersMethod__init__
(self, config, layer_num)
TinyGPT-V-main/minigpt4/models/Qformer.py:379
↓ 14 callersMethod__init__
(self, config, layer_num)
minigpt4/models/Qformer.py:379
↓ 11 callersMethod__init__
(self, config)
modeling_phi.py:221
↓ 11 callersMethod__init__
(self, config)
TinyGPT-V-main/modeling_phi.py:221
↓ 11 callersMethod__init__
( self, config: PretrainedConfig, n_inner: Optional[int] = None, act_fn: Optio
TinyGPT-V-main/minigpt4/models/modeling_phi.py:299
↓ 11 callersMethod__init__
( self, config: PretrainedConfig, n_inner: Optional[int] = None, act_fn: Optio
minigpt4/models/modeling_phi.py:299
↓ 11 callersMethodcopy
(self)
minigpt4/conversation/conversation.py:72
↓ 11 callersMethodgenerate
function for generate test use
TinyGPT-V-main/minigpt4/models/minigpt_base.py:318
↓ 10 callersMethodfrom_config
(cls, cfg)
TinyGPT-V-main/minigpt4/models/minigpt4.py:164
↓ 10 callersMethodfrom_config
(cls, cfg)
minigpt4/models/minigpt4.py:164
↓ 10 callersMethodfrom_pretrained
Build a pretrained model from default configuration file, specified by model_type. Args: - model_type (str): model type,
TinyGPT-V-main/minigpt4/models/base_model.py:71
↓ 10 callersMethodfrom_pretrained
Build a pretrained model from default configuration file, specified by model_type. Args: - model_type (str): model type,
minigpt4/models/base_model.py:71
↓ 9 callersMethodcopy
(self)
TinyGPT-V-main/minigpt4/conversation/conversation.py:72
↓ 9 callersFunctionprepare_texts
(texts, conv_temp)
TinyGPT-V-main/minigpt4/common/eval_utils.py:37
↓ 8 callersMethodembed_tokens
(self, token_ids)
TinyGPT-V-main/minigpt4/models/minigpt_base.py:310
↓ 8 callersMethodembed_tokens
(self, token_ids)
minigpt4/models/minigpt_base.py:312
↓ 7 callersMethodget_model_class
(cls, name)
TinyGPT-V-main/minigpt4/common/registry.py:236
↓ 7 callersMethodget_model_class
(cls, name)
minigpt4/common/registry.py:236
↓ 7 callersMethodtranspose_for_scores
(self, x)
TinyGPT-V-main/minigpt4/models/Qformer.py:161
↓ 7 callersMethodtranspose_for_scores
(self, x)
minigpt4/models/Qformer.py:161
↓ 6 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
TinyGPT-V-main/minigpt4/models/eva_vit.py:45
↓ 6 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
minigpt4/models/eva_vit.py:45
↓ 6 callersMethodget_processor_class
(cls, name)
TinyGPT-V-main/minigpt4/common/registry.py:244
↓ 6 callersMethodget_processor_class
(cls, name)
minigpt4/common/registry.py:244
↓ 6 callersFunctionget_rank
()
TinyGPT-V-main/minigpt4/common/dist_utils.py:47
↓ 6 callersFunctionget_rank
()
minigpt4/common/dist_utils.py:47
↓ 6 callersFunctionis_dist_avail_and_initialized
()
TinyGPT-V-main/minigpt4/common/dist_utils.py:33
↓ 6 callersFunctionis_dist_avail_and_initialized
()
minigpt4/common/dist_utils.py:33
↓ 5 callersMethodappend_message
(self, role, message)
TinyGPT-V-main/minigpt4/conversation/conversation.py:60
↓ 5 callersMethodappend_message
(self, role, message)
minigpt4/conversation/conversation.py:60
↓ 5 callersFunctioneval_parser
()
minigpt4/common/eval_utils.py:17
↓ 5 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/PythonHelperTools/vqaTools/vqa.py:72
↓ 5 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/PythonHelperTools/vqaTools/vqa.py:72
↓ 5 callersFunctioninit_model
(args)
minigpt4/common/eval_utils.py:46
↓ 5 callersMethodloadQA
Load questions and answers with the specified question ids. :param ids (int array) : integer ids specifying question ids
TinyGPT-V-main/minigpt4/common/vqa_tools/VQA/PythonHelperTools/vqaTools/vqa.py:120
↓ 5 callersMethodloadQA
Load questions and answers with the specified question ids. :param ids (int array) : integer ids specifying question ids
minigpt4/common/vqa_tools/VQA/PythonHelperTools/vqaTools/vqa.py:120
↓ 5 callersMethodmax
(self)
TinyGPT-V-main/minigpt4/common/logger.py:65
↓ 5 callersMethodmax
(self)
minigpt4/common/logger.py:65
↓ 5 callersMethodmaybe_autocast
(self, dtype=torch.float16)
TinyGPT-V-main/minigpt4/models/base_model.py:132
↓ 5 callersMethodmaybe_autocast
(self, dtype=torch.float16)
minigpt4/models/base_model.py:132
↓ 5 callersMethodregister_path
r"""Register a path to registry with key 'name' Args: name: Key with which the path will be registered. Usage:
TinyGPT-V-main/minigpt4/common/registry.py:189
↓ 5 callersMethodregister_path
r"""Register a path to registry with key 'name' Args: name: Key with which the path will be registered. Usage:
minigpt4/common/registry.py:189
↓ 4 callersFunction_build_proc_from_cfg
(cfg)
TinyGPT-V-main/minigpt4/models/__init__.py:79
↓ 4 callersFunction_build_proc_from_cfg
(cfg)
minigpt4/models/__init__.py:79
↓ 4 callersMethod_build_proc_from_cfg
(cfg)
TinyGPT-V-main/minigpt4/datasets/builders/base_dataset_builder.py:80
↓ 4 callersMethod_build_proc_from_cfg
(cfg)
minigpt4/datasets/builders/base_dataset_builder.py:80
↓ 4 callersMethoddefault_config_path
(cls, model_type)
TinyGPT-V-main/minigpt4/models/base_model.py:87
↓ 4 callersMethoddefault_config_path
(cls, model_type)
minigpt4/models/base_model.py:87
↓ 4 callersFunctiondownload_cached_file
Download a file from a URL and cache it locally. If the file already exists, it is not downloaded again. If distributed, only the main proces
TinyGPT-V-main/minigpt4/common/dist_utils.py:120
↓ 4 callersFunctiondownload_cached_file
Download a file from a URL and cache it locally. If the file already exists, it is not downloaded again. If distributed, only the main proces
minigpt4/common/dist_utils.py:120
↓ 4 callersMethodencode_img
(self, image)
TinyGPT-V-main/minigpt4/models/minigpt4.py:130
↓ 4 callersMethodencode_img
(self, image)
minigpt4/models/minigpt4.py:130
↓ 4 callersFunctionenhance_level_to_args
(MAX_LEVEL)
TinyGPT-V-main/minigpt4/processors/randaugment.py:223
↓ 4 callersFunctionenhance_level_to_args
(MAX_LEVEL)
minigpt4/processors/randaugment.py:223
↓ 4 callersMethodget_builder_class
(cls, name)
TinyGPT-V-main/minigpt4/common/registry.py:232
↓ 4 callersMethodget_builder_class
(cls, name)
minigpt4/common/registry.py:232
↓ 4 callersMethodget_path
(cls, name)
TinyGPT-V-main/minigpt4/common/registry.py:280
↓ 4 callersMethodget_path
(cls, name)
minigpt4/common/registry.py:280
↓ 4 callersFunctionis_main_process
()
TinyGPT-V-main/minigpt4/common/dist_utils.py:53
↓ 4 callersFunctionis_main_process
()
minigpt4/common/dist_utils.py:53
↓ 4 callersMethodmodel
A property to get the DDP-wrapped model on the device.
TinyGPT-V-main/minigpt4/runners/runner_base.py:79
↓ 4 callersMethodmodel
A property to get the DDP-wrapped model on the device.
minigpt4/runners/runner_base.py:79
↓ 4 callersMethodshowQA
Display the specified annotations. :param anns (array of object): annotations to display :return: None
TinyGPT-V-main/minigpt4/common/vqa_tools/VQA/PythonHelperTools/vqaTools/vqa.py:131
↓ 4 callersMethodshowQA
Display the specified annotations. :param anns (array of object): annotations to display :return: None
minigpt4/common/vqa_tools/VQA/PythonHelperTools/vqaTools/vqa.py:131
↓ 3 callersMethod_convert_node_to_json
(self, node)
TinyGPT-V-main/minigpt4/common/config.py:189
↓ 3 callersMethod_convert_node_to_json
(self, node)
minigpt4/common/config.py:189
↓ 3 callersFunctioncomputeIoU
(bbox1, bbox2)
minigpt4/common/eval_utils.py:64
↓ 3 callersFunctioneval_parser
()
TinyGPT-V-main/minigpt4/common/eval_utils.py:17
↓ 3 callersMethodevaluate
(self, cur_epoch="best", skip_reload=False)
minigpt4/runners/runner_base.py:422
↓ 3 callersFunctioninit_model
(args)
TinyGPT-V-main/minigpt4/common/eval_utils.py:46
↓ 3 callersFunctionis_url
(url_or_filename)
TinyGPT-V-main/minigpt4/common/utils.py:41
↓ 3 callersFunctionis_url
(url_or_filename)
minigpt4/common/utils.py:41
↓ 3 callersFunctionload_dataset_config
(cfg_path)
TinyGPT-V-main/minigpt4/datasets/builders/base_dataset_builder.py:232
↓ 3 callersFunctionload_dataset_config
(cfg_path)
minigpt4/datasets/builders/base_dataset_builder.py:232
↓ 3 callersMethodload_from_pretrained
(self, url_or_filename)
TinyGPT-V-main/minigpt4/models/base_model.py:272
↓ 3 callersMethodload_from_pretrained
(self, url_or_filename)
minigpt4/models/base_model.py:272
↓ 3 callersFunctionmakedir
Create the directory if it does not exist.
TinyGPT-V-main/minigpt4/common/utils.py:64
↓ 3 callersFunctionmakedir
Create the directory if it does not exist.
minigpt4/common/utils.py:64
↓ 3 callersMethodprompt_wrap
(self, img_embeds, atts_img, prompts, lengths=None)
TinyGPT-V-main/minigpt4/models/minigpt_base.py:83
↓ 3 callersMethodprompt_wrap
(self, img_embeds, atts_img, prompts, lengths=None)
minigpt4/models/minigpt_base.py:83
↓ 3 callersMethodregister
r"""Register an item to registry with key 'name' Args: name: Key with which the item will be registered. Usage::
TinyGPT-V-main/minigpt4/common/registry.py:205
↓ 3 callersMethodregister
r"""Register an item to registry with key 'name' Args: name: Key with which the item will be registered. Usage::
minigpt4/common/registry.py:205
↓ 3 callersMethodstep
(self, cur_epoch, cur_step)
TinyGPT-V-main/minigpt4/common/optims.py:37
↓ 3 callersMethodstep
(self, cur_epoch, cur_step)
minigpt4/common/optims.py:37
↓ 3 callersMethodunwrap_dist_model
(self, model)
TinyGPT-V-main/minigpt4/runners/runner_base.py:484
↓ 3 callersMethodunwrap_dist_model
(self, model)
minigpt4/runners/runner_base.py:484
next →1–100 of 1,352, ranked by callers