Downloads · 30 days
0
liguo12/REVA_PO_Weights
REVA_PO_Weights is a image-to-text model from liguo12. Use it when you need a caption or text from an image. The card lists the license as cc-by-4.0.
Pretrained checkpoints for REVA-PO: Stabilizing Reinforcement Learning for Chest X-ray Report Generation, accepted to ECCV 2026.
Downloads · 30 days
0
Access
Public
Updated Oct 1, 2026
Repo size
89.9 GB
Likes
0
Public
Click a slice to open those files.
.pth73.2 GB · 100%
From the Hugging Face model README
Pretrained checkpoints for REVA-PO: Stabilizing Reinforcement Learning for Chest X-ray Report Generation, accepted to ECCV 2026.
REVA-PO is a reinforcement learning framework for chest X-ray report generation. It combines:
This repository contains the PyTorch and DeepSpeed checkpoints used to reproduce the IU-Xray and MIMIC-CXR experiments.
These files are project-specific
.pthcheckpoints. They are not standalone Hugging Face Transformers checkpoints and cannot be loaded directly withAutoModel.from_pretrained(). Use them with the released REVA-PO code and configuration files.
REVA_PO_Weights/
├── Medical_MAE/
│ └── vit-b_CXR_0.5M_mae_CheXpert.pth
├── iuxray/
│ ├── iuxray_cls_ckpt.pth
│ ├── iuxray_stage1_ckpt.pth
│ ├── iuxray_stage2_ckpt.pth
│ ├── iuxray_stage3_ckpt.pth
│ └── mimic_stage1_ckpt.pth
└── mimic/
├── chexbert.pth
├── mimic_cls_ckpt.pth
├── mimic_stage1_ckpt.pth
├── mimic_stage2_ckpt.pth
└── mimic_stage3_ckpt.pth
| File | Purpose |
|---|---|
Medical_MAE/vit-b_CXR_0.5M_mae_CheXpert.pth | Medical MAE initialization used when fine-tuning the image classifier. |
mimic/chexbert.pth | CheXbert checkpoint used by the MIMIC-CXR training and evaluation pipeline. |
| File | Purpose |
|---|---|
mimic/mimic_cls_ckpt.pth | Image classifier fine-tuned for MIMIC-CXR. |
mimic/mimic_stage1_ckpt.pth | Stage 1 warm-up checkpoint. |
mimic/mimic_stage2_ckpt.pth | Stage 2 classifier-guided supervised fine-tuning checkpoint. |
mimic/mimic_stage3_ckpt.pth | Final Stage 3 REVA-PO checkpoint used for evaluation. |
| File | Purpose |
|---|---|
iuxray/mimic_stage1_ckpt.pth | MIMIC-CXR Stage 1 initialization used for IU-Xray Stage 1 training. |
iuxray/iuxray_cls_ckpt.pth | Image classifier fine-tuned for IU-Xray. |
iuxray/iuxray_stage1_ckpt.pth | Stage 1 warm-up checkpoint. |
iuxray/iuxray_stage2_ckpt.pth | Stage 2 classifier-guided supervised fine-tuning checkpoint. |
iuxray/iuxray_stage3_ckpt.pth | Final Stage 3 REVA-PO checkpoint used for evaluation. |
Install the Hugging Face Hub client:
pip install -U huggingface_hub
Download all checkpoints:
from huggingface_hub import snapshot_download
snapshot_download(
repo_id="liguo12/REVA_PO_Weights",
local_dir="REVA_PO_Weights",
)
Download only the final checkpoints and required auxiliary weights:
from huggingface_hub import hf_hub_download
files = [
"iuxray/iuxray_cls_ckpt.pth",
"iuxray/iuxray_stage2_ckpt.pth",
"iuxray/iuxray_stage3_ckpt.pth",
"mimic/chexbert.pth",
"mimic/mimic_cls_ckpt.pth",
"mimic/mimic_stage2_ckpt.pth",
"mimic/mimic_stage3_ckpt.pth",
]
for filename in files:
hf_hub_download(
repo_id="liguo12/REVA_PO_Weights",
filename=filename,
local_dir="REVA_PO_Weights",
)
Clone the code repository and install its requirements:
git clone https://github.com/LiGuo12/REVA_PO.git
cd REVA_PO
pip install -r requirements.txt
Download and prepare the datasets from the REVA-PO dataset repository.
Update train_configs/stage3/iuxray_stage3.yaml with local paths:
use_chexbert: true
chexbert_ckpt: /path/to/REVA_PO_Weights/mimic/chexbert.pth
pretrained_cls_ckp: /path/to/REVA_PO_Weights/iuxray/iuxray_cls_ckpt.pth
pretrained_stage2: /path/to/REVA_PO_Weights/iuxray/iuxray_stage2_ckpt.pth
pretrained_stage3: /path/to/REVA_PO_Weights/iuxray/iuxray_stage3_ckpt.pth
storage: /path/to/iuxray_dataset
ann_file: /path/to/iuxray_dataset/annotation_with_categories.json
Adjust world_size and the DeepSpeed batch size for the available hardware, then run:
deepspeed --num_gpus 8 train.py \
--cfg-path train_configs/stage3/iuxray_stage3.yaml \
--use_zero_optimizer \
--deepspeed_config train_configs/stage3/zero_iuxray_stage3.json
Update train_configs/stage3/mimic_stage3.yaml with local paths:
chexbert_ckpt: /path/to/REVA_PO_Weights/mimic/chexbert.pth
pretrained_cls_ckp: /path/to/REVA_PO_Weights/mimic/mimic_cls_ckpt.pth
pretrained_stage2: /path/to/REVA_PO_Weights/mimic/mimic_stage2_ckpt.pth
pretrained_stage3: /path/to/REVA_PO_Weights/mimic/mimic_stage3_ckpt.pth
storage: /path/to/mimic_dataset
ann_file: /path/to/mimic_dataset/mimic_with_categories_sampled_10k.json
Adjust world_size and the DeepSpeed batch size for the available hardware, then run:
deepspeed --num_gpus 8 train.py \
--cfg-path train_configs/stage3/mimic_stage3.yaml \
--use_zero_optimizer \
--deepspeed_config train_configs/stage3/zero_mimic_stage3.json
See the GitHub README for Stage 1, Stage 2, classifier fine-tuning, and full training instructions.
The checkpoints were trained and evaluated using:
liguo12/REVA_PO_DatasetsMIMIC-CXR images require credentialed access through PhysioNet.
These checkpoints are intended for research on:
They are not intended for direct clinical diagnosis, patient management, or deployment without independent medical and technical validation.
The checkpoints inherit limitations from their training datasets, including institution-specific patterns, reporting bias, class imbalance, and annotation noise. Generated reports can contain omissions or incorrect findings. Results on IU-Xray and MIMIC-CXR do not establish performance on other institutions, patient groups, image devices, or clinical workflows.
The repository stores PyTorch .pth files, which use pickle-based serialization. Only load checkpoint files from sources you trust. The provided checkpoints should be used through the released REVA-PO code and compatible PyTorch and DeepSpeed versions.
The REVA-PO checkpoint files and other original materials released in this repository are licensed under the Creative Commons Attribution 4.0 International License. You may use, share, and adapt these materials for research or other purposes, provided that appropriate credit is given to the REVA-PO authors.
This license applies only to materials created and released by the REVA-PO authors. It does not replace the terms of the source datasets or upstream pretrained models:
If you use these checkpoints or the REVA-PO method, please cite:
@inproceedings{guo2026reva,
title={REVA-PO: Stabilizing Reinforcement Learning for Chest X-Ray Report Generation},
author={Guo, Li and Tahir, Anas M and Wang, Z Jane},
booktitle={European Conference on Computer Vision},
pages={565--583},
year={2026},
organization={Springer}
}