MCPcopy Index your code
hub / github.com/Vision-CAIR/MiniGPT-Med

github.com/Vision-CAIR/MiniGPT-Med @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
688 symbols 1,867 edges 60 files 117 documented · 17%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

MiniGPT-Med: Large Language Model as a General Interface for Radiology Diagnosis

Asma Alkhaldi, Raneem Alnajim, Layan Alabdullatef, Rawan Alyahya, Jun Chen, Deyao Zhu, Ahmed Alsinan, Mohamed Elhoseiny

Saudi Data and Artificial Intelligence Authority (SDAIA) and King Abdullah University of Science and Technology (KAUST)

Website link: https://minigpt-med.github.io/ - Paper accepted at TMLR 2026 🎉: https://openreview.net/pdf?id=NenHFEg1Di

Installation

git clone https://github.com/Vision-CAIR/MiniGPT-Med
cd MiniGPT-Med
conda env create -f environment.yml
conda activate miniGPT-Med

Download miniGPT-Med trained model weights

  • miniGPT-Med's weights miniGPT-Med Model

  • Then modify line 8 at miniGPT-Med/eval_configs/minigptv2_eval.yaml to be the path of miniGPT-Med weight.

Prepare weight for LLMs

Llama2 Version

git clone https://huggingface.co/meta-llama/Llama-2-7b-chat-hf

Then modify line 14 at miniGPT-Med/minigpt4/configs/models/minigpt_v2.yaml to be the path of Llama-2-7b-chat-hf.

Launching Demo Locally

python demo_v2.py --cfg-path eval_configs/minigptv2_eval.yaml --gpu-id 0

Dataset

Dataset Images json file
MIMIC Download Download
NLST Download Downlaod
SLAKE Downlaod Download
RSNA Downlaod Download
Rad-VQA Downalod Download

Acknowledgement

  • MiniGPT-4
  • Lavis
  • Vicuna
  • Falcon
  • Llama 2

Core symbols most depended-on inside this repo

get
called by 101
minigpt4/common/registry.py
print
called by 57
minigpt4/common/dist_utils.py
info
called by 57
minigpt4/common/vqa_tools/vqa.py
add_argument
called by 52
minigpt4/common/config.py
update
called by 12
minigpt4/common/logger.py
build_processors
called by 11
minigpt4/datasets/builders/base_dataset_builder.py
from_config
called by 10
minigpt4/models/minigpt4.py
copy
called by 9
minigpt4/conversation/conversation.py

Shape

Method 435
Function 151
Class 101
Route 1

Languages

Python100%

Modules by API surface

minigpt4/models/Qformer.py67 symbols
minigpt4/runners/runner_base.py35 symbols
minigpt4/processors/randaugment.py34 symbols
minigpt4/models/eva_vit.py34 symbols
minigpt4/common/config.py31 symbols
minigpt4/common/registry.py25 symbols
minigpt4/datasets/datasets/rsna_dataset.py22 symbols
minigpt4/datasets/datasets/nlst_dataset.py22 symbols
minigpt4/datasets/datasets/MS-CXR.py22 symbols
minigpt4/common/logger.py22 symbols
minigpt4/datasets/builders/image_text_pair_builder.py20 symbols
minigpt4/common/utils.py20 symbols

For agents

$ claude mcp add MiniGPT-Med \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact