--- 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