Spaces:
Running on Zero
Running on Zero
metadata
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