Instructions to use mlii0117/sd1.5_MPECT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use mlii0117/sd1.5_MPECT with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("mlii0117/sd1.5_MPECT", 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
Update README.md
Browse files
README.md
CHANGED
|
@@ -48,13 +48,16 @@ generator = torch.Generator("cuda").manual_seed(0)
|
|
| 48 |
- **Arterial Phase**
|
| 49 |
```
|
| 50 |
Convert this non-contrast CT slice to mimic an arterial-phase contrast-enhanced CT.
|
| 51 |
-
Brighten and enhance the aorta, major arteries, and adjacent organ boundaries
|
|
|
|
|
|
|
| 52 |
```
|
| 53 |
|
| 54 |
- **Venous Phase**
|
| 55 |
```
|
| 56 |
Convert this non-contrast CT slice to mimic a venous-phase contrast-enhanced CT.
|
| 57 |
-
Brighten and enhance the
|
|
|
|
| 58 |
```
|
| 59 |
|
| 60 |
### 🧪 Full Pipeline Example
|
|
|
|
| 48 |
- **Arterial Phase**
|
| 49 |
```
|
| 50 |
Convert this non-contrast CT slice to mimic an arterial-phase contrast-enhanced CT.
|
| 51 |
+
Brighten and enhance the aorta, major arteries, and adjacent organ boundaries to emphasize arterial flow,
|
| 52 |
+
focusing on clarity and contrast in these areas while maintaining other features unchanged.
|
| 53 |
+
|
| 54 |
```
|
| 55 |
|
| 56 |
- **Venous Phase**
|
| 57 |
```
|
| 58 |
Convert this non-contrast CT slice to mimic a venous-phase contrast-enhanced CT.
|
| 59 |
+
Brighten and enhance the veins, especially the portal and hepatic veins,
|
| 60 |
+
and emphasize organ boundaries to mimic venous flow, focusing on brightness and contrast in these areas while maintaining other features unchanged."
|
| 61 |
```
|
| 62 |
|
| 63 |
### 🧪 Full Pipeline Example
|