Skip to content

ss8319/BrainIAC

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BrainIAC: A foundation model for generalized Brain MRI analysis

BrainIAC_V2 Logo

Overview

BrainIAC (Brain Imaging Adaptive Core) is vision based foundation model for generalized structural Brain MRI analysis. This repository provides the BrainIAC and downstream model checkpoints, with training/inference pipeline across all downstream tasks. Checkout the Paper

Installation

Prerequisites

  • Python 3.9+
  • CUDA 11.0+ (for GPU training)
  • python >= 3.9

Setup Environment

# Clone the repository
git clone https://github.com/YourUsername/BrainIAC_V2.git
cd BrainIAC

# Create conda environment

# Create conda environment
conda create -n brainiac python=3.9
conda activate brainiac
pip install -r requirements.txt

Model Checkpoints

Download the BrainIAC weights and dowstream model checkpoints and place it in ./src/checkpoints/:

Download Link: Model Checkpoints

Quick Start

See quickstart.ipynb to get started on how to preprocess data, load BrainIAC to extract features, generate and visualize saliency maps. We provide data samples from publicly available UPENN-GBM License (with no modifications to the provided preprocessed images) and the Pixar License dataset in the sample_data directory.

Train and Infer Downstream Models

Application Demos

Test BrainIAC's downstream models on your own data with our interactive demos, hosted on hugging face spaces!

interactive demos coming soon for other downstream tasks!

Docker

For local deployment, run BrainIAC downstream model application using Docker:

IDH app

docker run -p 7860:7860 --name brainiac-idh-app divyanshutak1/brainiac-idh:latest

MCI app

docker run -p 7860:7860 divyanshutak1/brainiac-mci:latest

Citation

@article{tak2024brainiac,
    title={BrainIAC: A Foundation Model for Generalized Brain MRI Analysis},
    author={Tak, Divyanshu and others},
    journal={medRxiv},
    year={2024},
    doi={10.1101/2024.12.02.24317992}
}

License

BrainIAC is released under the CC BY-NC License. See LICENSE for details.

About

sMRI foundational model

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 75.1%
  • Python 24.3%
  • Shell 0.6%