Text-to-Image
Diffusers
Safetensors
English
medical
X-ray
Diffusion
Generation
Text-to-image
stable-diffusion
lora
fine_tune
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 Settings
- Draw Things
- DiffusionBee
Download checkpoint-3000/model.safetensors from Osama03/Medical-X-ray-image-generation-stable-diffusion: direct link, hf CLI and curl.
- Browser
- Download file 3.44 GB
-
https://huggingface.co/Osama03/Medical-X-ray-image-generation-stable-diffusion/resolve/a24ca911776e7902ee2142dd7370f2b79b641b2d/checkpoint-3000/model.safetensors
- Command line
-
hf download hf://Osama03/Medical-X-ray-image-generation-stable-diffusion@a24ca911776e7902ee2142dd7370f2b79b641b2d/checkpoint-3000/model.safetensors
-
curl -L -o model.safetensors https://huggingface.co/Osama03/Medical-X-ray-image-generation-stable-diffusion/resolve/a24ca911776e7902ee2142dd7370f2b79b641b2d/checkpoint-3000/model.safetensors
3.44 GB
- Xet hash:
- ab922f61188a115dc4bef345512c9e89734c6d653d72b1a27738bb4d3979e4bd
- Size of remote file:
- 3.44 GB
- SHA256:
- 4b827d7ba39b261ca6393fcec4d7f4b21b25fc1eeece7a3bf41b010c682f66b1
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.