This is the benchmark code for the "RAM-W600: A Multi-Task Wrist Dataset and Benchmark for Rheumatoid Arthritis".
Dataset URL: https://huggingface.co/datasets/TokyoTechMagicYang/RAM-W600.
-
[2025-09-19] 🎉🎉Our dataset and benchmark paper has been accepted by NeurIPS 2025! 🎉🎉
-
[2025-08-29] We conducted a major update of the RAM-W600 dataset.
In this update, we expanded the dataset with 427 additional X-ray images, updated the split and released the metadata. -
[2025-05-10] We released the first update of the RAM-W600 dataset, which includes 621 X-ray images.
- Install the conda environment
conda create -n ramw600 python=3.10
conda activate ramw600- Install PyTorch
# CUDA 12.6
pip3 install torch torchvision torchaudio- Install other requirements
pip install -r requirements.txtPlease refer to the link above to download the dataset.
- Training
The training configurations for segmentation and classification tasks are in./train_seg.pyand./train_cls.py.
We also provide scripts in./train_seg.shand./train_cls.sh.
Before running, you should refer tomain_seg.pyandmain_cls.pyand add your paths to the bash files.
After running, the checkpoints will be saved in./ckpts/.
bash train_seg.sh- Testing
The testing configurations for segmentation and classification tasks are in./test_seg.pyand./test_cls.py.
We also provide scripts in./test_seg.shand./test_cls.sh.
After running, the results of the visualization will be saved in the folder you chose for testing.
bash test_seg.sh