MCPcopy Create free account

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

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

Functiongradio_taskselect
(idx)
demo_gradio4-29.py:518
Functiongradio_visualize
(chatbot, gr_img)
demo_v2.py:483
Functiongradio_visualize
(chatbot, gr_img)
demo_gradio4-29.py:503
Functionidentity_func
(img)
minigpt4/processors/randaugment.py:15
Functionimage_upload_trigger
(upload_flag, replace_flag, img_list)
demo_v2.py:392
Functionimage_upload_trigger
(upload_flag, replace_flag, img_list)
demo_gradio4-29.py:394
Methodinference_step
(self)
minigpt4/tasks/base_task.py:82
Methodinfo
Print information about the VQA annotation file. :return:
minigpt4/common/vqa_tools/VQA/PythonHelperTools/vqaTools/vqa.py:63
Methodinit_lr
(self)
minigpt4/runners/runner_base.py:290
Functionlevel_to_args
(level)
minigpt4/processors/randaugment.py:224
Methodlist_datasets
(cls)
minigpt4/common/registry.py:276
Methodlist_models
(cls)
minigpt4/common/registry.py:260
Functionlist_of_str
(arg)
eval_scripts/model_evaluation.py:34
Methodlist_processors
(cls)
minigpt4/common/registry.py:268
Methodlist_runners
(cls)
minigpt4/common/registry.py:256
MethodloadQA
Load questions and answers with the specified question ids. :param ids (int array) : integer ids specifying question ids
minigpt4/common/vqa_tools/vqa.py:148
MethodloadRes
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
Methodload_checkpoint_from_config
Load checkpoint as specified in the config file. If load_finetuned is True, load the finetuned model; otherwise, load the pretrained
minigpt4/models/base_model.py:92
Functionload_dataset
Example >>> dataset = load_dataset("coco_caption", cfg=None) >>> splits = dataset.keys() >>> print([len(dataset[split]) for split in
minigpt4/datasets/builders/__init__.py:39
Functionload_file
Common i/o utility to handle loading data from various file formats. Supported: .pkl, .pickle, .npy, .json For the npy files, we
minigpt4/common/utils.py:313
Functionload_json
(filename)
minigpt4/common/utils.py:54
Functionload_model
Load supported models. To list all available models and types in registry: >>> from minigpt4.models import model_zoo >>> print(model
minigpt4/models/__init__.py:29
Functionload_model_and_preprocess
Load model and its related preprocessors. List all available models and types in registry: >>> from minigpt4.models import model_zoo
minigpt4/models/__init__.py:115
Functionload_processor
Example >>> processor = load_processor("alpro_video_train", cfg=None)
minigpt4/processors/__init__.py:25
Methodlog_freq
(self)
minigpt4/runners/runner_base.py:285
Methodlr_scheduler
A property to get and create learning rate scheduler by split just in need.
minigpt4/runners/runner_base.py:142
Functionmain_process
(func)
minigpt4/common/dist_utils.py:110
Methodmax_epoch
(self)
minigpt4/runners/runner_base.py:281
Methodmedian
(self)
minigpt4/common/logger.py:51
Methodmin_lr
(self)
minigpt4/runners/runner_base.py:294
Methodmodel_cfg
(self)
minigpt4/common/config.py:168
Methodmulti_select
(self, images, texts, answers, num_cand=None)
minigpt4/models/minigpt_base.py:394
Functionnode_to_dict
(node)
minigpt4/common/config.py:197
Functionnone_level_to_args
(level)
minigpt4/processors/randaugment.py:266
Methodoptimizer
(self)
minigpt4/runners/runner_base.py:99
Functionposterize_func
same output as PIL.ImageOps.posterize
minigpt4/processors/randaugment.py:192
Methodprepare_inputs_for_generation
( self, input_ids, query_embeds, past=None, attention_mask=None, **model_kwargs )
minigpt4/models/Qformer.py:1097
Methodprint_help
(self)
minigpt4/common/config.py:284
Functionprocess_bbox
(phrases, boxes)
minigpt4/datasets/datasets/cc_sbu_dataset.py:11
Methodregister_builder
r"""Register a dataset builder to registry with key 'name' Args: name: Key with which the builder will be registered. Us
minigpt4/common/registry.py:22
Methodregister_lr_scheduler
r"""Register a model to registry with key 'name' Args: name: Key with which the task will be registered. Usage:
minigpt4/common/registry.py:141
Methodregister_model
r"""Register a task to registry with key 'name' Args: name: Key with which the task will be registered. Usage:
minigpt4/common/registry.py:83
Methodregister_processor
r"""Register a processor to registry with key 'name' Args: name: Key with which the task will be registered. Usage:
minigpt4/common/registry.py:112
Methodregister_runner
r"""Register a model to registry with key 'name' Args: name: Key with which the task will be registered. Usage:
minigpt4/common/registry.py:165
Methodregister_task
r"""Register a task to registry with key 'name' Args: name: Key with which the task will be registered. Usage:
minigpt4/common/registry.py:54
Methodrescale
(param, layer_id)
minigpt4/models/eva_vit.py:301
Methodreset_classifier
(self, num_classes, global_pool='')
minigpt4/models/eva_vit.py:320
Methodresume_ckpt_path
(self)
minigpt4/runners/runner_base.py:337
Functionrotate_func
like PIL, rotate by degree, not radians
minigpt4/processors/randaugment.py:76
Methodrun_cfg
(self)
minigpt4/common/config.py:156
Functionsample_phrase_box
(phrases, boxes)
minigpt4/datasets/datasets/cc_sbu_dataset.py:43
Methodsave_attn_gradients
(self, attn_gradients)
minigpt4/models/Qformer.py:149
Functionsave_file
Common i/o utility to handle saving data to various file formats. Supported: .pkl, .pickle, .npy, .json Specifically for .json, u
minigpt4/common/utils.py:275
Methodsave_result
(result, result_dir, filename, remove_duplicate="")
minigpt4/tasks/base_task.py:253
Methodscaler
(self)
minigpt4/runners/runner_base.py:132
Methodset_input_embeddings
(self, value)
minigpt4/models/Qformer.py:702
Methodset_output_embeddings
(self, new_embeddings)
minigpt4/models/Qformer.py:984
Methodset_output_embeddings
(self, new_embeddings)
minigpt4/models/Qformer.py:1147
Methodset_processors
(self, vis_processor, text_processor)
minigpt4/datasets/datasets/base_dataset.py:47
Functionsetup_task
(cfg)
minigpt4/tasks/__init__.py:13
Functionsharpness_func
The differences the this result and PIL are all on the 4 boundaries, the center areas are same
minigpt4/processors/randaugment.py:138
Functionshear_x_func
(img, factor, fill=(0, 0, 0))
minigpt4/processors/randaugment.py:159
Functionshear_y_func
(img, factor, fill=(0, 0, 0))
minigpt4/processors/randaugment.py:200
MethodshowQA
Display the specified annotations. :param anns (array of object): annotations to display :return: None
minigpt4/common/vqa_tools/vqa.py:159
Methodshow_n_params
(self, return_str=True)
minigpt4/models/base_model.py:116
Functionsolarize_func
same output as PIL.ImageOps.posterize
minigpt4/processors/randaugment.py:87
Methodstep
(self, cur_epoch, cur_step)
minigpt4/common/optims.py:79
Methodsynchronize_between_processes
Warning: does not synchronize the deque!
minigpt4/common/logger.py:37
Methodtest_splits
(self)
minigpt4/runners/runner_base.py:311
Methodto_dict
(self, sample)
minigpt4/datasets/datasets/cc_sbu_dataset.py:102
Methodto_dict
(self, sample)
minigpt4/datasets/datasets/cc_sbu_dataset.py:135
Functionto_google_drive_download_url
Utility function to transform a view URL of google drive to a download URL for google drive Example input: https://drive.google.c
minigpt4/common/utils.py:93
Methodto_gradio_chatbot
(self)
minigpt4/conversation/conversation.py:62
Methodtrain_epoch
( self, epoch, model, data_loader, optimizer, lr_scheduler,
minigpt4/tasks/base_task.py:104
Methodtrain_iters
( self, epoch, start_iters, iters_per_inner_epoch, model, data
minigpt4/tasks/base_task.py:129
Methodtrain_loader
(self)
minigpt4/runners/runner_base.py:341
Methodtrain_splits
(self)
minigpt4/runners/runner_base.py:317
Functiontranslate_x_func
same output as PIL.Image.transform
minigpt4/processors/randaugment.py:168
Functiontranslate_y_func
same output as PIL.Image.transform
minigpt4/processors/randaugment.py:180
Methodunregister
r"""Remove an item from registry with key 'name' Args: name: Key which needs to be removed. Usage:: from mmf
minigpt4/common/registry.py:315
Methoduse_dist_eval_sampler
(self)
minigpt4/runners/runner_base.py:333
Methoduse_distributed
(self)
minigpt4/runners/runner_base.py:75
Methodvalid_splits
(self)
minigpt4/runners/runner_base.py:302
Methodvit_to_cpu
(self)
minigpt4/models/minigpt_base.py:62
Methodwrap
(builder_cls)
minigpt4/common/registry.py:34
Functionwrapper
(*args, **kwargs)
minigpt4/common/dist_utils.py:112
← previous501–586 of 586, ranked by callers