MCPcopy Create free account

hub / github.com/Vision-CAIR/MiniGPT-4 / functions

Functions587 in github.com/Vision-CAIR/MiniGPT-4

Methodbuild
(self)
minigpt4/datasets/builders/image_text_pair_builder.py:268
Methodbuild
(self)
minigpt4/datasets/builders/image_text_pair_builder.py:406
Methodbuild
(self)
minigpt4/datasets/builders/image_text_pair_builder.py:442
Methodbuild
(self)
minigpt4/datasets/builders/image_text_pair_builder.py:474
Methodbuild
(self, **kwargs)
minigpt4/processors/base_processor.py:23
Methodbuild_datasets
(self)
minigpt4/datasets/builders/image_text_pair_builder.py:30
Methodbuild_datasets
(self)
minigpt4/datasets/builders/image_text_pair_builder.py:56
Methodbuild_datasets
(self)
minigpt4/datasets/builders/image_text_pair_builder.py:81
Methodbuild_datasets
(self)
minigpt4/datasets/builders/image_text_pair_builder.py:108
Methodbuild_datasets
(self)
minigpt4/datasets/builders/image_text_pair_builder.py:154
Methodbuild_datasets
(self)
minigpt4/datasets/builders/image_text_pair_builder.py:236
Methodbuild_datasets
(self)
minigpt4/datasets/builders/image_text_pair_builder.py:327
Methodbuild_datasets
(self)
minigpt4/datasets/builders/image_text_pair_builder.py:353
Methodbuild_datasets
(self)
minigpt4/datasets/builders/image_text_pair_builder.py:513
Functioncache_url
This implementation downloads the remote resource and caches it locally. The resource will only be downloaded if not previously requested.
minigpt4/common/utils.py:242
Functioncleanup_dir
Utility for deleting a directory. Useful for cleaning the storage space that contains various training artifacts like checkpoints, data etc.
minigpt4/common/utils.py:408
Methodcollater
(self, samples)
minigpt4/datasets/datasets/base_dataset.py:63
Functioncolor_func
same output as PIL.ImageEnhance.Color
minigpt4/processors/randaugment.py:97
Functioncolored_phrases
(match)
demo_v2.py:369
Functionconcat_datasets
Concatenates multiple datasets into a single dataset. It supports may-style datasets and DataPipeline from WebDataset. Currently, does not s
minigpt4/datasets/data_utils.py:128
Functioncontrast_func
same output as PIL.ImageEnhance.Contrast
minigpt4/processors/randaugment.py:115
Methodcreate_custom_forward
(module)
minigpt4/models/Qformer.py:533
Functioncreate_file_symlink
Simply create the symlinks for a given file1 to file2. Useful during model checkpointing to symlinks to the latest successful checkpoint.
minigpt4/common/utils.py:261
Methodcuda_enabled
(self)
minigpt4/runners/runner_base.py:277
Methodcustom_forward
(*inputs)
minigpt4/models/Qformer.py:534
Functioncutout_func
(img, pad_size, replace=(0, 0, 0))
minigpt4/processors/randaugment.py:209
Functioncutout_level_to_args
(cutout_const, MAX_LEVEL, replace_value)
minigpt4/processors/randaugment.py:250
Methoddataloaders
A property to get and create dataloaders by split just in need. If no train_dataset_ratio is provided, concatenate map-style dataset
minigpt4/runners/runner_base.py:182
Methoddatasets_cfg
(self)
minigpt4/common/config.py:160
Methoddevice
(self)
minigpt4/runners/runner_base.py:68
Methoddict
(self)
minigpt4/conversation/conversation.py:83
Functiondisabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
minigpt4/models/base_model.py:231
Methoddispl_item
(self, index)
minigpt4/datasets/datasets/gqa_datasets.py:19
Methoddispl_item
(self, index)
minigpt4/datasets/datasets/coco_vqa_datasets.py:20
Methoddispl_item
(self, index)
minigpt4/datasets/datasets/caption_datasets.py:17
Methoddispl_item
(self, index)
minigpt4/datasets/datasets/aok_vqa_datasets.py:20
Functiondownload_and_extract_archive
( url: str, download_root: str, extract_root: Optional[str] = None, filename: Optional[str] =
minigpt4/common/utils.py:221
Functiondownload_google_drive_url
Download a file from google drive Downloading an URL from google drive requires confirmation when the file of the size is too big (google
minigpt4/common/utils.py:108
Methodencode_img
(self, img_list)
minigpt4/conversation/conversation.py:210
Methodencode_img
(self, image)
minigpt4/models/minigpt_v2.py:75
Methodepoch
(self)
minigpt4/datasets/datasets/dataloader_utils.py:142
Functionequalize_func
same output as PIL.ImageOps.equalize PIL's implementation is different from cv2.equalize
minigpt4/processors/randaugment.py:52
Methodevaluate
(self, quesIds=None)
minigpt4/common/vqa_tools/vqa_eval.py:193
Methodevaluate_only
Set to True to skip training.
minigpt4/runners/runner_base.py:326
Methodevaluation
(self, model, data_loader, cuda_enabled=True)
minigpt4/tasks/image_text_pretrain.py:17
Methodevaluation_datasets_cfg
(self)
minigpt4/common/config.py:164
Functionexample_trigger
(text_input, image, upload_flag, replace_flag, img_list)
demo_v2.py:401
Methodextra_repr
(self)
minigpt4/models/eva_vit.py:40
Methodfeed_forward_chunk
(self, attention_output)
minigpt4/models/Qformer.py:476
Methodfeed_forward_chunk_query
(self, attention_output)
minigpt4/models/Qformer.py:481
Methodforward
(self, x: torch.Tensor)
minigpt4/models/base_model.py:240
Methodforward
( self, input_ids=None, position_ids=None, query_embeds=None, past_key
minigpt4/models/Qformer.py:78
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
minigpt4/models/Qformer.py:169
Methodforward
(self, hidden_states, input_tensor)
minigpt4/models/Qformer.py:285
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
minigpt4/models/Qformer.py:322
Methodforward
(self, hidden_states)
minigpt4/models/Qformer.py:358
Methodforward
(self, hidden_states, input_tensor)
minigpt4/models/Qformer.py:371
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
minigpt4/models/Qformer.py:402
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
minigpt4/models/Qformer.py:495
Methodforward
(self, hidden_states)
minigpt4/models/Qformer.py:598
Methodforward
(self, hidden_states)
minigpt4/models/Qformer.py:617
Methodforward
(self, hidden_states)
minigpt4/models/Qformer.py:638
Methodforward
(self, sequence_output)
minigpt4/models/Qformer.py:649
Methodforward
r""" encoder_hidden_states (:obj:`torch.FloatTensor` of shape :obj:`(batch_size, sequence_length, hidden_size)`, `optional`): Seq
minigpt4/models/Qformer.py:804
Methodforward
r""" encoder_hidden_states (:obj:`torch.FloatTensor` of shape :obj:`(batch_size, sequence_length, hidden_size)`, `optional`): Seq
minigpt4/models/Qformer.py:987
Methodforward
r""" labels (:obj:`torch.LongTensor` of shape :obj:`(batch_size, sequence_length)`, `optional`): Labels for computing the masked l
minigpt4/models/Qformer.py:1150
Methodforward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
minigpt4/models/modeling_llama.py:18
Methodforward
(self, x)
minigpt4/models/eva_vit.py:37
Methodforward
(self, x)
minigpt4/models/eva_vit.py:54
Methodforward
(self, x, rel_pos_bias=None)
minigpt4/models/eva_vit.py:118
Methodforward
(self, x, rel_pos_bias=None)
minigpt4/models/eva_vit.py:173
Methodforward
(self, x, **kwargs)
minigpt4/models/eva_vit.py:198
Methodforward
(self)
minigpt4/models/eva_vit.py:238
Methodforward
(self, x)
minigpt4/models/eva_vit.py:349
Methodfrom_config
(cls, cfg)
minigpt4/models/minigpt_v2.py:92
Methodfrom_config
(cls, cfg=None)
minigpt4/processors/blip_processors.py:40
Methodfrom_config
(cls, cfg=None)
minigpt4/processors/blip_processors.py:91
Methodfrom_config
(cls, cfg=None)
minigpt4/processors/blip_processors.py:131
MethodgetAnnIds
(self, image_ids=[], cat_ids=[], ref_ids=[])
minigpt4/datasets/datasets/coco_dataset.py:252
FunctiongetAttMap
(img, attMap, blur=True, overlap=True)
minigpt4/common/gradcam.py:7
MethodgetCatIds
(self)
minigpt4/datasets/datasets/coco_dataset.py:281
MethodgetImgIds
Get image ids that satisfy given filter conditions. default skips that filter :param quesIds (int array) : get image ids for gi
minigpt4/common/vqa_tools/vqa.py:114
MethodgetImgIds
(self, ref_ids=[])
minigpt4/datasets/datasets/coco_dataset.py:272
Methodget_attention_map
(self)
minigpt4/models/Qformer.py:158
Methodget_attn_gradients
(self)
minigpt4/models/Qformer.py:152
Functionget_cache_path
(rel_path)
minigpt4/common/utils.py:46
Methodget_classifier
(self)
minigpt4/models/eva_vit.py:317
Methodget_config
(self)
minigpt4/common/config.py:152
Functionget_file_size
Given a file, get the size of file in MB
minigpt4/common/utils.py:419
Methodget_input_embeddings
(self)
minigpt4/models/Qformer.py:699
Methodget_intermediate_layers
(self, x)
minigpt4/models/eva_vit.py:354
Methodget_output_embeddings
(self)
minigpt4/models/Qformer.py:981
Methodget_output_embeddings
(self)
minigpt4/models/Qformer.py:1144
Methodglobal_avg
(self)
minigpt4/common/logger.py:61
Functiongradio_answer
(chatbot, chat_state, img_list, temperature)
demo_v2.py:454
Functiongradio_answer
(chatbot, chat_state, img_list, num_beams, temperature)
demo.py:111
Functiongradio_ask
(user_message, chatbot, chat_state, gr_img, img_list, upload_flag, replace_flag)
demo_v2.py:411
Functiongradio_ask
(user_message, chatbot, chat_state)
demo.py:103
Functiongradio_reset
(chat_state, img_list)
demo_v2.py:383
Functiongradio_reset
(chat_state, img_list)
demo.py:85
← previousnext →401–500 of 587, ranked by callers