Skip to content

A Chat Model serves as a medical assistant towards Xray image.

Notifications You must be signed in to change notification settings

Frankgu3528/ChatXRay

Repository files navigation

img

ChatXRay is a Multimodel chatbot that input chest radiographs and generate medical report. You can find my paper here.

img

Quick-Start

Of course, you need to modify all the path in the repo to suit your own datapath.

Set up

pip install -r requirements.txt

generate finetuning dataset

./script/down_mimic.py
python generate_QWen_json.py

train

python finetune.py

inference

python infer.py         # use ChatXRay to infer
python Qwen_infer.py    # use Qwen-VL to infer
python ./baselines/Fuyu-8b/infer.py # use Fuyu-8b to infer

generate inference result

python test_baseline.py

About

A Chat Model serves as a medical assistant towards Xray image.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published