Skip to content

MiniGPT-Pancreas: Multimodal Large language Model for Pancreas Cancer Classification and Detection

Notifications You must be signed in to change notification settings

elianastasio/MiniGPT-Pancreas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MiniGPT-Pancreas

MiniGPT-Pancreas: Multimodal Large Language Model for Pancreas Cancer Classification and Detection

Elia Clement Nastasio, Andrea Moglia, Pietro Cerveri

Getting Started

Installation

1. Prepare the code and the environment

Git clone our repository, creating a python environment and activate it via the following command

git clone https://github.com/elianastasio/MiniGPT-Pancreas.git
cd MiniGPT-Pancreas
conda env create -f environment.yml
conda activate minigptp

2. Prepare the pretrained LLM weights

MiniGPT-Pancreas is based on MiniGPT- v2, which is in turn based on Llama2 Chat 7B. Download the LLM weights from the following huggingface space by cloning the repository using git-lfs.

Llama 2 Chat 7B: Download

Then, set the variable llama_model in the model config file to the LLM weight path.

here at Line 14.

3. Prepare the pretrained model checkpoints

Download the base MiniGPT-v2 model checkpoint

MiniGPT-v2 (after stage-3): Download

Set the path to the pretrained checkpoint in the evaluation config file in eval_configs/minigptp_eval.yaml at Line 8.

Dataset Preparation

For details on how to prepare the datasets used in this work, check here

Training

For finetuning details of MiniGPT-Pancreas, check here

Evaluation

For evaluation details of MiniGPT-Pancreas, check here

Launching Demo Locally

python scripts/demo.py --cfg-path configs/minigptp_eval.yaml --gpu-id 0

About

MiniGPT-Pancreas: Multimodal Large language Model for Pancreas Cancer Classification and Detection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages