/convirt

Implementation of ConVIRT

Primary LanguagePythonMIT LicenseMIT

ConVIRT - Contrastive Learning Representations of Images and Text pairs

Pytorch implementation of the architecture descibed in the ConVIRT paper: Contrastive Learning of Medical Visual Representations from Paired Images and Text

Yuhao Zhang, Hang Jiang, Yasuhide Miura, Christopher D. Manning, Curtis P. Langlotz

DL4H Project - Team 58

Authors: Chufan Gao, Siddhartha Laghuvarapu.

Requirements

  • Pytorch
  • Numpy
  • Huggingface
  • tqdm

Code instruction

  • To train the model from scratch, the dataset should be downloaded locally, and the paths in the file CXR\_paths\_for\_images\_and\_text.csv should be pointed to the data sources.
  • Use the file run.py to train.
  • Use this link to request for data.

Pretrained weights

You may download pretrained weights from here

References: