MCPcopy Create free account

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

Functions586 in github.com/Vision-CAIR/MiniGPT-Med

Methodbbox_phrase_preprocess
(self, index)
minigpt4/datasets/datasets/MS-CXR.py:134
Methodbefore_evaluation
(self, **kwargs)
minigpt4/models/base_model.py:113
Functionbrightness_func
same output as PIL.ImageEnhance.Contrast
minigpt4/processors/randaugment.py:129
Methodbuild
(self, **kwargs)
minigpt4/processors/base_processor.py:23
Methodbuild_datasets
(self)
minigpt4/datasets/builders/image_text_pair_builder.py:22
Methodbuild_datasets
(self)
minigpt4/datasets/builders/image_text_pair_builder.py:53
Methodbuild_datasets
(self)
minigpt4/datasets/builders/image_text_pair_builder.py:77
Methodbuild_datasets
(self)
minigpt4/datasets/builders/image_text_pair_builder.py:124
Methodbuild_datasets
(self)
minigpt4/datasets/builders/image_text_pair_builder.py:146
Methodbuild_datasets
(self)
minigpt4/datasets/builders/image_text_pair_builder.py:169
Methodbuild_datasets
(self)
minigpt4/datasets/builders/image_text_pair_builder.py:192
Methodbuild_datasets
(self)
minigpt4/datasets/builders/image_text_pair_builder.py:215
Methodbuild_datasets
(self)
minigpt4/datasets/builders/image_text_pair_builder.py:239
Methodbuild_datasets
(self)
minigpt4/datasets/builders/base_dataset_builder.py:45
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:60
Functioncolor_func
same output as PIL.ImageEnhance.Color
minigpt4/processors/randaugment.py:97
Functioncolored_phrases
(match)
demo_v2.py:369
Functioncolored_phrases
(match)
demo_gradio4-29.py:371
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/caption_datasets.py:16
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
Functionexample_trigger
(text_input, image, upload_flag, replace_flag, img_list)
demo_gradio4-29.py:403
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
Methodfilter_sample
(self,sample)
minigpt4/datasets/datasets/cc_sbu_dataset.py:131
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:92
Methodfrom_config
(cls, cfg=None)
minigpt4/processors/blip_processors.py:132
FunctiongetAttMap
(img, attMap, blur=True, overlap=True)
minigpt4/common/gradcam.py:7
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
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, temperature)
demo_gradio4-29.py:456
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, gr_img, img_list, upload_flag, replace_flag)
demo_gradio4-29.py:413
Functiongradio_reset
(chat_state, img_list)
demo_v2.py:383
Functiongradio_reset
(chat_state, img_list)
demo_gradio4-29.py:385
Functiongradio_stream_answer
(chatbot, chat_state, img_list, temperature)
demo_v2.py:464
Functiongradio_stream_answer
(chatbot, chat_state, img_list, temperature)
demo_gradio4-29.py:484
Functiongradio_taskselect
(idx)
demo_v2.py:498
← previousnext →401–500 of 586, ranked by callers