Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vision-CAIR/MiniGPT-Med
/ functions
Functions
586 in github.com/Vision-CAIR/MiniGPT-Med
⨍
Functions
586
◇
Types & classes
101
↳
Endpoints
1
Method
bbox_phrase_preprocess
(self, index)
minigpt4/datasets/datasets/MS-CXR.py:134
Method
before_evaluation
(self, **kwargs)
minigpt4/models/base_model.py:113
Function
brightness_func
same output as PIL.ImageEnhance.Contrast
minigpt4/processors/randaugment.py:129
Method
build
(self, **kwargs)
minigpt4/processors/base_processor.py:23
Method
build_datasets
(self)
minigpt4/datasets/builders/image_text_pair_builder.py:22
Method
build_datasets
(self)
minigpt4/datasets/builders/image_text_pair_builder.py:53
Method
build_datasets
(self)
minigpt4/datasets/builders/image_text_pair_builder.py:77
Method
build_datasets
(self)
minigpt4/datasets/builders/image_text_pair_builder.py:124
Method
build_datasets
(self)
minigpt4/datasets/builders/image_text_pair_builder.py:146
Method
build_datasets
(self)
minigpt4/datasets/builders/image_text_pair_builder.py:169
Method
build_datasets
(self)
minigpt4/datasets/builders/image_text_pair_builder.py:192
Method
build_datasets
(self)
minigpt4/datasets/builders/image_text_pair_builder.py:215
Method
build_datasets
(self)
minigpt4/datasets/builders/image_text_pair_builder.py:239
Method
build_datasets
(self)
minigpt4/datasets/builders/base_dataset_builder.py:45
Function
cache_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
Function
cleanup_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
Method
collater
(self, samples)
minigpt4/datasets/datasets/base_dataset.py:60
Function
color_func
same output as PIL.ImageEnhance.Color
minigpt4/processors/randaugment.py:97
Function
colored_phrases
(match)
demo_v2.py:369
Function
colored_phrases
(match)
demo_gradio4-29.py:371
Function
concat_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
Function
contrast_func
same output as PIL.ImageEnhance.Contrast
minigpt4/processors/randaugment.py:115
Method
create_custom_forward
(module)
minigpt4/models/Qformer.py:533
Function
create_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
Method
cuda_enabled
(self)
minigpt4/runners/runner_base.py:277
Method
custom_forward
(*inputs)
minigpt4/models/Qformer.py:534
Function
cutout_func
(img, pad_size, replace=(0, 0, 0))
minigpt4/processors/randaugment.py:209
Function
cutout_level_to_args
(cutout_const, MAX_LEVEL, replace_value)
minigpt4/processors/randaugment.py:250
Method
dataloaders
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
Method
datasets_cfg
(self)
minigpt4/common/config.py:160
Method
device
(self)
minigpt4/runners/runner_base.py:68
Method
dict
(self)
minigpt4/conversation/conversation.py:83
Function
disabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
minigpt4/models/base_model.py:231
Method
displ_item
(self, index)
minigpt4/datasets/datasets/caption_datasets.py:16
Function
download_and_extract_archive
( url: str, download_root: str, extract_root: Optional[str] = None, filename: Optional[str] =
minigpt4/common/utils.py:221
Function
download_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
Method
encode_img
(self, img_list)
minigpt4/conversation/conversation.py:210
Method
encode_img
(self, image)
minigpt4/models/minigpt_v2.py:75
Method
epoch
(self)
minigpt4/datasets/datasets/dataloader_utils.py:142
Function
equalize_func
same output as PIL.ImageOps.equalize PIL's implementation is different from cv2.equalize
minigpt4/processors/randaugment.py:52
Method
evaluate
(self, quesIds=None)
minigpt4/common/vqa_tools/vqa_eval.py:193
Method
evaluate_only
Set to True to skip training.
minigpt4/runners/runner_base.py:326
Method
evaluation
(self, model, data_loader, cuda_enabled=True)
minigpt4/tasks/image_text_pretrain.py:17
Method
evaluation_datasets_cfg
(self)
minigpt4/common/config.py:164
Function
example_trigger
(text_input, image, upload_flag, replace_flag, img_list)
demo_v2.py:401
Function
example_trigger
(text_input, image, upload_flag, replace_flag, img_list)
demo_gradio4-29.py:403
Method
extra_repr
(self)
minigpt4/models/eva_vit.py:40
Method
feed_forward_chunk
(self, attention_output)
minigpt4/models/Qformer.py:476
Method
feed_forward_chunk_query
(self, attention_output)
minigpt4/models/Qformer.py:481
Method
filter_sample
(self,sample)
minigpt4/datasets/datasets/cc_sbu_dataset.py:131
Method
forward
(self, x: torch.Tensor)
minigpt4/models/base_model.py:240
Method
forward
( self, input_ids=None, position_ids=None, query_embeds=None, past_key
minigpt4/models/Qformer.py:78
Method
forward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
minigpt4/models/Qformer.py:169
Method
forward
(self, hidden_states, input_tensor)
minigpt4/models/Qformer.py:285
Method
forward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
minigpt4/models/Qformer.py:322
Method
forward
(self, hidden_states)
minigpt4/models/Qformer.py:358
Method
forward
(self, hidden_states, input_tensor)
minigpt4/models/Qformer.py:371
Method
forward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
minigpt4/models/Qformer.py:402
Method
forward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
minigpt4/models/Qformer.py:495
Method
forward
(self, hidden_states)
minigpt4/models/Qformer.py:598
Method
forward
(self, hidden_states)
minigpt4/models/Qformer.py:617
Method
forward
(self, hidden_states)
minigpt4/models/Qformer.py:638
Method
forward
(self, sequence_output)
minigpt4/models/Qformer.py:649
Method
forward
r""" encoder_hidden_states (:obj:`torch.FloatTensor` of shape :obj:`(batch_size, sequence_length, hidden_size)`, `optional`): Seq
minigpt4/models/Qformer.py:804
Method
forward
r""" encoder_hidden_states (:obj:`torch.FloatTensor` of shape :obj:`(batch_size, sequence_length, hidden_size)`, `optional`): Seq
minigpt4/models/Qformer.py:987
Method
forward
r""" labels (:obj:`torch.LongTensor` of shape :obj:`(batch_size, sequence_length)`, `optional`): Labels for computing the masked l
minigpt4/models/Qformer.py:1150
Method
forward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
minigpt4/models/modeling_llama.py:18
Method
forward
(self, x)
minigpt4/models/eva_vit.py:37
Method
forward
(self, x)
minigpt4/models/eva_vit.py:54
Method
forward
(self, x, rel_pos_bias=None)
minigpt4/models/eva_vit.py:118
Method
forward
(self, x, rel_pos_bias=None)
minigpt4/models/eva_vit.py:173
Method
forward
(self, x, **kwargs)
minigpt4/models/eva_vit.py:198
Method
forward
(self)
minigpt4/models/eva_vit.py:238
Method
forward
(self, x)
minigpt4/models/eva_vit.py:349
Method
from_config
(cls, cfg)
minigpt4/models/minigpt_v2.py:92
Method
from_config
(cls, cfg=None)
minigpt4/processors/blip_processors.py:40
Method
from_config
(cls, cfg=None)
minigpt4/processors/blip_processors.py:92
Method
from_config
(cls, cfg=None)
minigpt4/processors/blip_processors.py:132
Function
getAttMap
(img, attMap, blur=True, overlap=True)
minigpt4/common/gradcam.py:7
Method
getImgIds
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
Method
get_attention_map
(self)
minigpt4/models/Qformer.py:158
Method
get_attn_gradients
(self)
minigpt4/models/Qformer.py:152
Function
get_cache_path
(rel_path)
minigpt4/common/utils.py:46
Method
get_classifier
(self)
minigpt4/models/eva_vit.py:317
Method
get_config
(self)
minigpt4/common/config.py:152
Function
get_file_size
Given a file, get the size of file in MB
minigpt4/common/utils.py:419
Method
get_input_embeddings
(self)
minigpt4/models/Qformer.py:699
Method
get_intermediate_layers
(self, x)
minigpt4/models/eva_vit.py:354
Method
get_output_embeddings
(self)
minigpt4/models/Qformer.py:981
Method
get_output_embeddings
(self)
minigpt4/models/Qformer.py:1144
Method
global_avg
(self)
minigpt4/common/logger.py:61
Function
gradio_answer
(chatbot, chat_state, img_list, temperature)
demo_v2.py:454
Function
gradio_answer
(chatbot, chat_state, img_list, temperature)
demo_gradio4-29.py:456
Function
gradio_ask
(user_message, chatbot, chat_state, gr_img, img_list, upload_flag, replace_flag)
demo_v2.py:411
Function
gradio_ask
(user_message, chatbot, chat_state, gr_img, img_list, upload_flag, replace_flag)
demo_gradio4-29.py:413
Function
gradio_reset
(chat_state, img_list)
demo_v2.py:383
Function
gradio_reset
(chat_state, img_list)
demo_gradio4-29.py:385
Function
gradio_stream_answer
(chatbot, chat_state, img_list, temperature)
demo_v2.py:464
Function
gradio_stream_answer
(chatbot, chat_state, img_list, temperature)
demo_gradio4-29.py:484
Function
gradio_taskselect
(idx)
demo_v2.py:498
← previous
next →
401–500 of 586, ranked by callers