--- license: - cc-by-4.0 - cc-by-nc-4.0 pretty_name: FleXray Data viewer: false task_categories: [image-segmentation] size_categories: [100K/` folder contains `dataset.yml`, `images/` (16-bit PNG), `labels/` (PNG index maps or NPY channel masks), a `README.md` with preprocessing and label details, and a `LICENSE` with attribution. Images were min-max normalized per image, zero-padded to a square and resized to 256 x 256; splits are the ones used in the paper. ## Datasets referenced by pointer only These sources are used by FleXray but not redistributed here. Their FleXray label specifications (native label names, protocol aliases and drops) are shipped with the `flexray` package under `fxr/configs/datasets/.yml`. | Dataset | Role | Why not redistributed | Where to get it | |---|---|---|---| | MOOSE / ENHANCE-PET 1.6k | training (CT, DRR rendering) | CT sources are not redistributed; already public | https://registry.opendata.aws/enhance-pet-1-6k/ | | ElbowCT | training (CT) | CT sources are not redistributed | https://figshare.com/articles/dataset/3D_models_of_elbow_joints_along_with_corresponding_CT_data_from_Chinese_individuals/28245599 | | PedsCT | training (CT) | CT sources are not redistributed | https://www.cancerimagingarchive.net/collection/pediatric-ct-seg/ | | HaN-Seg | training (CT) | CC BY-NC-ND 4.0 (no derivatives) | https://han-seg2023.grand-challenge.org/ | | RSNAFrac | training (CT) | Kaggle competition rules forbid redistribution | https://www.kaggle.com/competitions/rsna-2022-cervical-spine-fracture-detection/ | | Shoulder-CT | training (CT) | no license granted by the uploader | https://www.kaggle.com/datasets/syxlicheng/automatically-transform-ct-datasets-into-drrs | | MURA | training (images) | Stanford Research Use Agreement | https://stanfordmlgroup.github.io/competitions/mura/ (our masks: see above) | | AASCE | evaluation | license undetermined | https://aasce19.github.io/ | | DarwinCVD19 | evaluation | mixed per-image image licenses | https://darwin.v7labs.com/v7-labs/covid-19-chest-x-ray-dataset | | DeepFluoro | evaluation | CC BY-NC 4.0; already hosted on Hugging Face | https://huggingface.co/datasets/eigenvivek/xvr-data | | RAM-W600 | evaluation | CC BY-NC-SA 4.0; already hosted on Hugging Face | https://huggingface.co/datasets/TokyoTechMagicYang/RAM-W600 | | VinDr-Rib | evaluation | signed data use agreement required | https://vindr.ai/ribcxr | | PedsTorso | evaluation | upstream project no longer available; license cannot be verified | https://universe.roboflow.com/monchbot1/thoracoabdominal | ## Splits and exclusions `splits//splits.csv` lists the train/val/test assignment of every image FleXray trained or evaluated on, and `splits//exclusions.csv` lists every image removed during quality control together with the reason, for all fifteen real X-ray sources above (redistributed or not). Paths are relative to each source's original download, so the paper's partitions can be rebuilt exactly; see `splits/README.md` for the schema. ## Usage Dataset packaging and training require the training extra: ```bash python -m pip install "flexray[train]" ``` Download only the dataset you need. For example, fetch HipRay and its split records without downloading the FluXray database: ```python from huggingface_hub import snapshot_download snapshot_download( repo_id="VictorButoi/flexray-data", repo_type="dataset", local_dir="./flexray-data", allow_patterns=["README.md", "HipRay/*", "splits/HipRay/*"], ) ``` Validate and pack it into the layout consumed by FleXray: ```bash fxr-dataset validate ./flexray-data/HipRay/dataset.yml fxr-dataset pack ./flexray-data/HipRay/dataset.yml /data/flexray/HipRay export XRAY_DATAPATH=/data/flexray ``` Repeat with another folder name to package another real X-ray dataset. To include FluXray, download its approximately 18.8 GB database and sidecars into the same download directory: ```python snapshot_download( repo_id="VictorButoi/flexray-data", repo_type="dataset", local_dir="./flexray-data", allow_patterns=["FluXray/*"], ) ``` ```bash export GENERATED_DATAPATH="$PWD/flexray-data" ``` FluXray is already packaged at `FluXray/thunder_dbs/1.0/`. Its historical `GENERATED_DATAPATH` variable selects the storage root; it is configured as an `Xray` source: ```yaml # training config excerpt data: Xray: HipRay: {} FluXray: {version: "1.0"} ``` See [dataset documentation](https://github.com/VictorButoi/FleXray/blob/main/docs/datasets.md) and [training configuration](https://github.com/VictorButoi/FleXray/blob/main/docs/training.md) for complete examples. Source datasets retain their roles in the paper; adding one to a training config does not change its published evaluation split. ## Citation If you use either **FluXray** or our **MURA annotations**, please cite the FleXray paper: ```bibtex @misc{butoi2026flexray, title={FleXray: Universal Clinical X-ray Segmentation}, author={Victor Ion Butoi and Vivek Gopalakrishnan and John V. Guttag and Adrian V. Dalca and Neel Dey}, year={2026}, eprint={2609.26756}, archivePrefix={arXiv}, primaryClass={cs.CV}, url={https://arxiv.org/abs/2609.26756}, } ``` **If you use any of the other datasets, please cite the original dataset sources and comply with their copyright and license terms.** Citations and licensing details are listed in the `README.md` and `LICENSE` files within each dataset folder.