MCPcopy Create free account

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

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

↓ 2 callersMethodto_dict
(self)
minigpt4/common/config.py:193
↓ 2 callersMethodtrain
(self)
minigpt4/runners/runner_base.py:362
↓ 2 callersFunctiontranslate_level_to_args
(translate_const, MAX_LEVEL, replace_value)
minigpt4/processors/randaugment.py:240
↓ 2 callersFunctiontune_channel
(ch)
minigpt4/processors/randaugment.py:25
↓ 2 callersMethodupdate
(self, value, n=1)
minigpt4/common/logger.py:32
↓ 2 callersMethodupload_img
(self, image, conv, img_list)
minigpt4/conversation/conversation.py:227
↓ 2 callersFunctionvisualize_all_bbox_together
(image, generation)
demo_v2.py:189
↓ 2 callersFunctionvisualize_all_bbox_together
(image, generation)
demo_gradio4-29.py:191
↓ 2 callersFunctionwarmup_lr_schedule
Warmup the learning rate
minigpt4/common/optims.py:108
↓ 1 callersFunctionMIMIC_BERT_Sim
(gt_pth, pred_pth, output_csv)
eval_scripts/metrics.py:22
↓ 1 callersFunctionVQA_BERT_Sim
(gt_pth, pred_pth, output_csv)
eval_scripts/metrics.py:65
↓ 1 callersMethod__getitem__
(self, index)
minigpt4/datasets/datasets/caption_datasets.py:44
↓ 1 callersMethod__init__
(self, model, vis_processor, device='cuda:0', stopping_criteria=None)
minigpt4/conversation/conversation.py:140
↓ 1 callersMethod__init__
vis_root (string): Root directory of images (e.g. coco/images/) ann_root (string): directory to store the annotation file
minigpt4/datasets/datasets/base_dataset.py:16
↓ 1 callersMethod__init__
(self, vis_processor, text_processor, location)
minigpt4/datasets/datasets/cc_sbu_dataset.py:70
↓ 1 callersMethod_add_instance_ids
(self, key="instance_id")
minigpt4/datasets/datasets/base_dataset.py:51
↓ 1 callersFunction_apply
(x)
minigpt4/datasets/data_utils.py:70
↓ 1 callersMethod_build_opt_list
(self, opts)
minigpt4/common/config.py:53
↓ 1 callersMethod_convert_to_dot_list
(self, opts)
minigpt4/common/config.py:138
↓ 1 callersMethod_download_ann
Download annotation files if necessary. All the vision-language datasets should have annotations of unified format. storage_
minigpt4/datasets/builders/base_dataset_builder.py:95
↓ 1 callersMethod_download_data
(self)
minigpt4/datasets/builders/base_dataset_builder.py:91
↓ 1 callersMethod_download_vis
(self)
minigpt4/datasets/builders/base_dataset_builder.py:152
↓ 1 callersFunction_get_google_drive_file_id
(url: str)
minigpt4/common/utils.py:141
↓ 1 callersMethod_load_checkpoint
Resume from a checkpoint.
minigpt4/runners/runner_base.py:622
↓ 1 callersMethod_reload_best_model
Load the best checkpoint for evaluation.
minigpt4/runners/runner_base.py:602
↓ 1 callersMethodafter_evaluation
(self, **kwargs)
minigpt4/tasks/base_task.py:79
↓ 1 callersFunctionapply_to_sample
(f, sample)
minigpt4/datasets/data_utils.py:66
↓ 1 callersMethodassert_bbox_in_range
(self, x1, y1, x2, y2)
minigpt4/datasets/datasets/nlst_dataset.py:52
↓ 1 callersMethodassert_bbox_in_range
(self, x1, y1, x2, y2)
minigpt4/datasets/datasets/rsna_dataset.py:51
↓ 1 callersMethodassert_bbox_in_range
(self, x1, y1, x2, y2)
minigpt4/datasets/datasets/MS-CXR.py:51
↓ 1 callersMethodbbox_phrase_preprocess
(self, index)
minigpt4/datasets/datasets/nlst_dataset.py:69
↓ 1 callersMethodbbox_phrase_preprocess
(self, index)
minigpt4/datasets/datasets/rsna_dataset.py:68
↓ 1 callersMethodbbox_phrase_preprocess
(self, index)
minigpt4/datasets/datasets/MS-CXR.py:68
↓ 1 callersMethodbefore_evaluation
(self, model, dataset, **kwargs)
minigpt4/tasks/base_task.py:76
↓ 1 callersMethodbuild
Create by split datasets inheriting torch.utils.data.Datasets. # build() can be dataset-specific. Overwrite to customize.
minigpt4/datasets/builders/base_dataset_builder.py:166
↓ 1 callersMethodbuild_dataset_config
(config)
minigpt4/common/config.py:89
↓ 1 callersMethodbuild_datasets
Build a dictionary of datasets, keyed by split 'train', 'valid', 'test'. Download dataset and annotations automatically if not exist.
minigpt4/tasks/base_task.py:37
↓ 1 callersMethodbuild_datasets
(self)
minigpt4/datasets/builders/image_text_pair_builder.py:101
↓ 1 callersMethodbuild_evaluation_dataset_config
(config)
minigpt4/common/config.py:117
↓ 1 callersMethodbuild_model
(self, cfg)
minigpt4/tasks/base_task.py:30
↓ 1 callersMethodbuild_model_config
(config, **kwargs)
minigpt4/common/config.py:58
↓ 1 callersMethodbuild_runner_config
(config)
minigpt4/common/config.py:85
↓ 1 callersFunctionclean_mimic_json
(messy_json, cleaned_output)
eval_scripts/clean_json.py:4
↓ 1 callersFunctionclean_vqa_json
(messy_json, cleaned_output)
eval_scripts/clean_json.py:24
↓ 1 callersMethodcollater
(self, samples)
minigpt4/datasets/datasets/base_dataset.py:44
↓ 1 callersFunctioncolor_iterator
(colors)
demo_v2.py:361
↓ 1 callersFunctioncolor_iterator
(colors)
demo_gradio4-29.py:363
↓ 1 callersFunctioncomputeIoU
(bbox1, bbox2)
demo_v2.py:100
↓ 1 callersFunctioncomputeIoU
(bbox1, bbox2)
demo_gradio4-29.py:102
↓ 1 callersFunctioncomputeIoU
(bbox1, bbox2)
minigpt4/common/eval_utils.py:64
↓ 1 callersMethodconcat_emb_input_output
Concatenate the batched input embedding and batched output embedding together. Both the input and the output embedding should be righ
minigpt4/models/minigpt_base.py:137
↓ 1 callersFunctionconvert_to_dict
(data)
eval_scripts/metrics.py:76
↓ 1 callersFunctionconvert_weights_to_fp16
Convert applicable model parameters to fp16
minigpt4/models/eva_vit.py:397
↓ 1 callersFunctioncosine_lr_schedule
Decay the learning rate
minigpt4/common/optims.py:99
↓ 1 callersFunctioncreate_eva_vit_g
(img_size=224,drop_path_rate=0.4,use_checkpoint=False,precision="fp16")
minigpt4/models/eva_vit.py:415
↓ 1 callersMethodcreate_loaders
Create dataloaders for training and validation.
minigpt4/runners/runner_base.py:490
↓ 1 callersFunctioncreate_runner_config_validator
()
minigpt4/common/config.py:289
↓ 1 callersMethoddefault_config_path
(cls, type="default")
minigpt4/datasets/builders/base_dataset_builder.py:88
↓ 1 callersFunctionescape_markdown
(text)
demo_v2.py:142
↓ 1 callersFunctionescape_markdown
(text)
demo_gradio4-29.py:144
↓ 1 callersFunctioneval_parser
()
minigpt4/common/eval_utils.py:17
↓ 1 callersMethodevaluate
(self, cur_epoch="best", skip_reload=False)
minigpt4/runners/runner_base.py:422
↓ 1 callersMethodevaluate
(self, quesIds=None)
minigpt4/common/vqa_tools/VQA/PythonEvaluationTools/vqaEvaluation/vqaEval.py:69
↓ 1 callersMethodevaluation
(self, model, data_loader, cuda_enabled=True)
minigpt4/tasks/base_task.py:85
↓ 1 callersFunctionextract_substrings
(string)
demo_v2.py:81
↓ 1 callersFunctionextract_substrings
(string)
demo_gradio4-29.py:83
↓ 1 callersMethodfix_init_weight
(self)
minigpt4/models/eva_vit.py:300
↓ 1 callersMethodforward
(self, samples, reduction='mean')
minigpt4/models/minigpt_base.py:273
↓ 1 callersMethodforward_features
(self, x)
minigpt4/models/eva_vit.py:324
↓ 1 callersMethodgenerate_boxes
(self, phrases, bounding_boxes)
minigpt4/datasets/datasets/nlst_dataset.py:123
↓ 1 callersMethodgenerate_boxes
(self, phrases, bounding_boxes)
minigpt4/datasets/datasets/rsna_dataset.py:122
↓ 1 callersMethodgenerate_boxes
(self, phrases, bounding_boxes)
minigpt4/datasets/datasets/MS-CXR.py:122
↓ 1 callersMethodgetImgIds
Get image ids that satisfy given filter conditions. default skips that filter :param quesIds (int array) : get image ids for give
minigpt4/common/vqa_tools/VQA/PythonHelperTools/vqaTools/vqa.py:96
↓ 1 callersFunctionget_abs_path
(rel_path)
minigpt4/common/utils.py:50
↓ 1 callersFunctionget_cached_file_path
()
minigpt4/common/dist_utils.py:126
↓ 1 callersFunctionget_dist_info
()
minigpt4/common/dist_utils.py:96
↓ 1 callersMethodget_lr_scheduler_class
(cls, name)
minigpt4/common/registry.py:248
↓ 1 callersMethodget_names
(self)
minigpt4/datasets/builders/__init__.py:84
↓ 1 callersMethodget_random_ops
(self)
minigpt4/processors/randaugment.py:336
↓ 1 callersMethodget_random_ops
(self)
minigpt4/processors/randaugment.py:363
↓ 1 callersFunctionget_redirected_url
Given a URL, returns the URL it redirects to or the original URL in case of no indirection
minigpt4/common/utils.py:78
↓ 1 callersFunctionget_runner_class
Get runner class from config. Default to epoch-based runner.
train.py:63
↓ 1 callersMethodget_runner_class
(cls, name)
minigpt4/common/registry.py:252
↓ 1 callersMethodget_task_class
(cls, name)
minigpt4/common/registry.py:240
↓ 1 callersMethodglobal_avg
(self)
minigpt4/common/logger.py:109
↓ 1 callersMethodinit_Qformer
(cls, num_query_token, vision_width, freeze)
minigpt4/models/minigpt4.py:88
↓ 1 callersFunctioninit_distributed_mode
(args)
minigpt4/common/dist_utils.py:57
↓ 1 callersMethodinit_llm
(cls, llama_model_path, low_resource=False, low_res_device=0, lora_r=0, lora_target_modules=[
minigpt4/models/base_model.py:171
↓ 1 callersFunctioninit_model
(args)
minigpt4/common/eval_utils.py:46
↓ 1 callersMethodinit_vision_encoder
( cls, model_name, img_size, drop_path_rate, use_grad_checkpoint, precision, freeze )
minigpt4/models/base_model.py:142
↓ 1 callersFunctioninterpolate_pos_embed
(model, checkpoint_model)
minigpt4/models/eva_vit.py:373
↓ 1 callersFunctionis_overlapping
(rect1, rect2)
demo_v2.py:94
↓ 1 callersFunctionis_overlapping
(rect1, rect2)
demo_gradio4-29.py:96
↓ 1 callersMethodlist_lr_schedulers
(cls)
minigpt4/common/registry.py:272
↓ 1 callersMethodlist_tasks
(cls)
minigpt4/common/registry.py:264
↓ 1 callersMethodloadRes
Load result file and return a result object. :param resFile (str) : file name of result file :return: res (obj)
minigpt4/common/vqa_tools/VQA/PythonHelperTools/vqaTools/vqa.py:145
↓ 1 callersMethodload_image
(self, image_id)
minigpt4/datasets/datasets/mimic_cxr_dataset.py:23
↓ 1 callersFunctionload_preprocess
Load preprocessor configs and construct preprocessors. If no preprocessor is specified, return BaseProcessor, which does not do any preproce
minigpt4/models/__init__.py:63
↓ 1 callersMethodlog_config
(self)
minigpt4/runners/runner_base.py:657
↓ 1 callersFunctionmain
()
train.py:72
← previousnext →101–200 of 586, ranked by callers