SynthCXR / README.md
gradientguild's picture
Upload folder using huggingface_hub
a4aa5c5 verified
---
title: SynthCXR
emoji: 🫁
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: "6.9.0"
app_file: app.py
hardware: zero-a10g
pinned: false
tags:
- medical-imaging
- chest-x-ray
- diffusion
- lora
short_description: Controllable chest X-ray generation with anatomical masks
---
# 🫁 SynthCXR · Chest X-Ray Generator
Interactively resize anatomical mask components (heart, left lung, right lung) with sliders and generate realistic chest X-rays using a Qwen-Image-Edit model with LoRA fine-tuning on CheXpert.
> **Zero GPU** β€” This Space uses HuggingFace ZeroGPU for dynamic GPU allocation. A GPU is acquired only during image generation and released immediately after.
## Features
- **Mask Scaling Sliders** β€” Real-time preview of organ masks scaled from 0Γ— to 2Γ—
- **Condition Picker** β€” Select from 13 CheXpert pathologies with severity modifiers
- **Demographics** β€” Configure patient age, sex, and radiograph view (AP/PA)
- **CXR Generation** β€” Generate 512Γ—512 chest X-rays conditioned on the modified mask
- **Progress Bar** β€” Real-time step-by-step progress during generation