Giter Site home page Giter Site logo

coarse-to-fine-grained-contrastive-learning's Introduction

Coarse-to-Fine-Grained-Contrastive-Learning

This repository contains the implementation of the method described in our paper, "Leveraging Coarse-to-Fine Grained Representations in Contrastive Learning for Differential Medical Visual Question Answering".

Overview

🔥 Environment Setup

  1. Creating conda environment
conda create -n your_env_name python=3.8
conda activate your_env_name
  1. Install the required packages
pip install -r requirements.txt

📚 Dataset

The Medical-Diff-VQA dataset, a derivative of the MIMIC-CXR dataset, consists of questions categorized into seven categories: abnormality (145,421), location (84,193), type (27,478), level (67,296), view (56,265), presence (155,726), and difference(164,324). The 'difference' questions are specifically for comparing two images. In total, the Medical-Diff-VQA dataset contains 700,703 question-answer pairs derived from 164,324 pairs of main and reference images.

More details can be found in this paper and the generation of dataset can be found in this project.

MIMIC-CXR:

  • Download from Physionet.
  • Note: This dataset requires authorization.

🛠 ️Getting Started

This repository contains the code of two main folders, feature extraction and model. The feature extraction folder contains the code for extracting the image features and generating the dynamic graphs. The model folder contains the code for training and test our model. Please refer README.md in each folder for more details.

Acknowledgement

If you find our work useful, please consider citing our paper:

Comming soon

This project is build upon EKAID, MCCFormer, GLoRIA and BLIP. Thanks to the contributors of these great codebases.

coarse-to-fine-grained-contrastive-learning's People

Contributors

ecoxial2007 avatar big-white-rabbit avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.