Text-to-Image
Diffusers
Safetensors
StableDiffusionPipeline
stable-diffusion
medical-imaging
chest-xray
compdiff
fairness
Instructions to use mahmoudibra98/compdiff-chest-xray with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use mahmoudibra98/compdiff-chest-xray with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("mahmoudibra98/compdiff-chest-xray", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Commit History
-
Release CompDiff chest v2: typed 3-attribute conditioner (age in HCN), step-10k checkpoint
Verified signatureReplaces the July 2026 sex x race model (kept as branch `v1`). New conditioner (compdiff2.py, hcn/model.safetensors), new CompDiffPipeline with age as a continuous conditioner input, updated model card and training_config.yaml. Removes hcn_v7.py and hcn/pytorch_model.bin from main.af2d273
-
Add CompDiff model (diffusers layout + HCN)
Verified signaturec265a82