Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

Osama03
/
Medical-X-ray-image-generation-stable-diffusion

Text-to-Image
Diffusers
Safetensors
English
medical
X-ray
Diffusion
Generation
Text-to-image
stable-diffusion
lora
fine_tune
Model card Files Files and versions
xet
Community

Instructions to use Osama03/Medical-X-ray-image-generation-stable-diffusion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use Osama03/Medical-X-ray-image-generation-stable-diffusion with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", dtype=torch.bfloat16, device_map="cuda")
    pipe.load_lora_weights("Osama03/Medical-X-ray-image-generation-stable-diffusion")
    
    prompt = "Hey doc, I've been feeling really out of breath lately,  especially when I'm walking up a flight of stairs or doing some light exercise.  It's like my chest gets tight and I can't catch my breath.  I've also been coughing up some stuff that's not quite right, it's been a few weeks now. And I've noticed a bit of weight loss, I'm not sure if that's related but it's been on my mind. I've been to a few doctors already, but they haven't been able to figure out what's going on.  I'm hoping you can help."
    image = pipe(prompt).images[0]
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • Draw Things
  • DiffusionBee
Medical-X-ray-image-generation-stable-diffusion
13.8 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 10 commits
Osama03's picture
Osama03
Update README.md
688e9ce verified about 1 year ago
  • checkpoint-12000
    Upload folder using huggingface_hub about 1 year ago
  • checkpoint-3000
    Upload folder using huggingface_hub about 1 year ago
  • checkpoint-6000
    Upload folder using huggingface_hub about 1 year ago
  • checkpoint-9000
    Upload folder using huggingface_hub about 1 year ago
  • .gitattributes
    1.57 kB
    Upload example.png about 1 year ago
  • README.md
    4.58 kB
    Update README.md about 1 year ago
  • example.png
    331 kB
    xet
    Upload example.png about 1 year ago
  • pytorch_lora_weights.safetensors
    3.23 MB
    xet
    Upload folder using huggingface_hub about 1 year ago