CoolFace
Datasetpublic

VictorButoi/flexray-data

FleXray data release Website: FleXray project page Paper: FleXray: Universal Clinical X-ray Segmentation Code: github.com/VictorButoi/FleXray Training and evaluation data for FleXray, a pan-anatomy X-ray segmentation model. This repository holds every real X-ray source whose license permits redistribution, repackaged as image/mask pairs with fxr-dataset manifests and dataset-native label names that FleXray maps into its common protocol (CC BY 4.0), plus two more parts of the… See the full description on the dataset page: https://huggingface.co/datasets/VictorButoi/flexray-data.

sourceHugging Facecc-by-4.0updated 3h agoView on Hugging Face
0likes2kdownloads
Dataset Card

FleXray data release

Training and evaluation data for FleXray, a pan-anatomy X-ray segmentation model. This repository holds every real X-ray source whose license permits redistribution, repackaged as image/mask pairs with fxr-dataset manifests and dataset-native label names that FleXray maps into its common protocol (CC BY 4.0), plus two more parts of the data described in the paper:

  • FluXray (synthetic, CC BY-NC 4.0): FluXray/ — 138,063 generatively edited digitally reconstructed radiographs rendered from the 1,597 MOOSE CTs at 90 poses each, quality-filtered, with exact overlapping masks in 63 channels (62 structures plus background). Shipped as the training database itself (FluXray/thunder_dbs/1.0/data.mdb, an LMDB of float16 256 x 256 images and 63-channel binary masks that flexray reads directly) together with samples.csv (pose, split, MOOSE subject and per-sample license for every image), protocol.yml (label order and mask thresholds), and the filter_*.csv quality-control scores and thresholds. FluXray/README.md documents every file; FluXray/LICENSE summarizes the license.
  • MURA forearm/humerus annotations (masks only, CC BY 4.0): bundled with the FleXray GitHub repository and mirrored here under mura_forearm_humerus_annotations/

Licenses therefore differ by folder: the redistributed real X-ray folders, splits/, and the MURA annotations are CC BY 4.0; FluXray/ is CC BY-NC 4.0 as a collection, with each image inheriting the license of its MOOSE source site.

Data access

This release contains 4,232 real image/mask pairs across seven datasets, 138,063 FluXray samples, and 100 MURA annotation masks whose source images must be obtained separately. Browse the dataset folders below or use the download and packaging instructions.

The automatic Hugging Face image-folder viewer is disabled because it only recognizes a subset of the images and does not represent the paired masks or the FluXray database. Use each dataset.yml for image/mask paths and split assignments; FluXray's samples.csv records its samples and splits.

  • Real image/mask datasets: PNG images, PNG or NPY masks, and a packaging manifest per dataset.
  • FluXray: a ThunderDB database plus protocol and sample metadata. The database download is about 18.8 GB.
  • MURA annotations: masks and a script that joins them to your own MURA download.
  • Splits and exclusions: source-relative records for reconstructing the published partitions.

Redistributed datasets (CC BY 4.0)

DatasetRole in paperSamples (train/val/test)LabelsSource
HandBonestraining93 (65/15/13)carpals, phalanges (distal/intermediate/proximal), metacarpals, radii, ulnaehttps://universe.roboflow.com/boneage-x90qt/-hand-bones-mdjkr
FootBonestraining571 (400/86/85)metatarsals (1-5), toeshttps://universe.roboflow.com/monchbot1/foot_op
ElbowLatevaluation601 (419/91/91)humeri, radii, ulnaehttps://universe.roboflow.com/ionspace/elbow_lat-lnn0s-pmycd
HipRayevaluation139 (97/21/21)femurs, hipshttps://data.mendeley.com/datasets/zm6bxzhmfz/1
LowerLimbsevaluation56 (39/9/8)femurs, tibiae, fibulaehttps://universe.roboflow.com/orthopedicstitching/bone-identifier-1rey5
MTDDHevaluation905 (632/138/135)ilium, pubis, ischium, femoral head, femurhttps://doi.org/10.57760/sciencedb.24372
BTXRDevaluation (finetuning)1867 (1305/281/281)tumorhttps://doi.org/10.6084/m9.figshare.27865398

Each <Dataset>/ 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/<Name>.yml.

DatasetRoleWhy not redistributedWhere to get it
MOOSE / ENHANCE-PET 1.6ktraining (CT, DRR rendering)CT sources are not redistributed; already publichttps://registry.opendata.aws/enhance-pet-1-6k/
ElbowCTtraining (CT)CT sources are not redistributedhttps://figshare.com/articles/dataset/3DmodelsofelbowjointsalongwithcorrespondingCTdatafromChineseindividuals/28245599
PedsCTtraining (CT)CT sources are not redistributedhttps://www.cancerimagingarchive.net/collection/pediatric-ct-seg/
HaN-Segtraining (CT)CC BY-NC-ND 4.0 (no derivatives)https://han-seg2023.grand-challenge.org/
RSNAFractraining (CT)Kaggle competition rules forbid redistributionhttps://www.kaggle.com/competitions/rsna-2022-cervical-spine-fracture-detection/
Shoulder-CTtraining (CT)no license granted by the uploaderhttps://www.kaggle.com/datasets/syxlicheng/automatically-transform-ct-datasets-into-drrs
MURAtraining (images)Stanford Research Use Agreementhttps://stanfordmlgroup.github.io/competitions/mura/ (our masks: see above)
AASCEevaluationlicense undeterminedhttps://aasce19.github.io/
DarwinCVD19evaluationmixed per-image image licenseshttps://darwin.v7labs.com/v7-labs/covid-19-chest-x-ray-dataset
DeepFluoroevaluationCC BY-NC 4.0; already hosted on Hugging Facehttps://huggingface.co/datasets/eigenvivek/xvr-data
RAM-W600evaluationCC BY-NC-SA 4.0; already hosted on Hugging Facehttps://huggingface.co/datasets/TokyoTechMagicYang/RAM-W600
VinDr-Ribevaluationsigned data use agreement requiredhttps://vindr.ai/ribcxr
PedsTorsoevaluationupstream project no longer available; license cannot be verifiedhttps://universe.roboflow.com/monchbot1/thoracoabdominal

Splits and exclusions

splits/<Dataset>/splits.csv lists the train/val/test assignment of every image FleXray trained or evaluated on, and splits/<Dataset>/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 and training configuration 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
@software{butoi2026flexray,
  title = {FleXray: Universal Clinical X-ray Segmentation},
  author = {Butoi, Victor Ion and Gopalakrishnan, Vivek and
            Guttag, John V. and Dalca, Adrian V. and Dey, Neel},
  year = {2026},
  license = {MIT},
  url = {https://github.com/VictorButoi/FleXray}
}

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.