Update README.md
Browse files
README.md
CHANGED
@@ -13,7 +13,15 @@ It is the fusion of Stable Diffusion 1.4 and a LORA fine-tuned on 28218 patholog
|
|
13 |
|
14 |
### Model Description
|
15 |
|
16 |
-
|
17 |
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
### Model Description
|
15 |
|
16 |
+
The model is trained on Stable Diffusion 1.4 with a UNet architecture and a pretrained VAE. It uses a batch size of 16 and lora rank of 32.
|
17 |
|
18 |
+
### How to use
|
19 |
+
|
20 |
+
```python
|
21 |
+
pipe = DiffusionPipeline.from_pretrained(
|
22 |
+
"RiddleHe/SD14_pathology_base", torch_dtype=torch.float16
|
23 |
+
)
|
24 |
+
pipe.to('cuda')
|
25 |
+
|
26 |
+
prompt = "A histopathology image of breast cancer tissue"
|
27 |
+
```
|