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
Update README.md
Browse files
README.md
CHANGED
|
@@ -17,13 +17,17 @@ tags:
|
|
| 17 |
- fine_tune
|
| 18 |
|
| 19 |
widget:
|
| 20 |
-
- text: >-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
---
|
| 29 |
|
|
|
|
| 17 |
- fine_tune
|
| 18 |
|
| 19 |
widget:
|
| 20 |
+
- text: >-
|
| 21 |
+
Hey doc, I've been feeling really out of breath lately,
|
| 22 |
+
especially when I'm walking up a flight of stairs or doing some light exercise.
|
| 23 |
+
It's like my chest gets tight and I can't catch my breath.
|
| 24 |
+
I've also been coughing up some stuff that's not quite right, it's been a few weeks now.
|
| 25 |
+
And I've noticed a bit of weight loss, I'm not sure if that's related but it's been on my mind.
|
| 26 |
+
I've been to a few doctors already, but they haven't been able to figure out what's going on.
|
| 27 |
+
I'm hoping you can help.
|
| 28 |
+
|
| 29 |
+
- output:
|
| 30 |
+
url: example.png
|
| 31 |
+
|
| 32 |
---
|
| 33 |
|