Downloads · 30 days
3
7% of all-time downloads
P-RAJIV/cxr_stable_diffusion_v1_4
cxr_stable_diffusion_v1_4 is a text-to-image model from P-RAJIV. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as mit.
This model is a fine-tuned version of Stable Diffusion v1.4 for generating synthetic chest X-ray images. ---
Downloads · 30 days
3
7% of all-time downloads
All-time downloads
41
Public
Parameters
860M
15.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors11.9 GB · 63%
From the Hugging Face model README
import torch
from diffusers import StableDiffusionPipeline
pipe = StableDiffusionPipeline.from_pretrained(
"P-RAJIV/cxr_stable_diffusion_v1_4",
torch_dtype=torch.float16
).to("cuda")
prompt = "Normal chest X-ray"
image = pipe(prompt, num_inference_steps=30, guidance_scale=7.5).images[0]
image.save("output.png")
🧪 Example Prompts
"Normal chest X-ray"
"Chest X-ray showing cardiomegaly"
"Lung opacity in right lower lobe"
"Severe pneumonia chest radiograph"
⚠️ Limitations
Generated images are synthetic and not for clinical use
May produce anatomically inconsistent outputs
Performance depends heavily on prompt quality
📚 Training Details
Base Model: Stable Diffusion v1.5
Domain: Chest X-ray imaging
Fine-tuning: Text-to-image diffusion training
🧠 Intended Use
Research in medical imaging
Data augmentation
Diffusion model experimentation
❗ Disclaimer
This model is not intended for medical diagnosis or clinical decision-making.