Commit
·
9bbdd39
1
Parent(s):
a97263d
Update README.md
Browse files
README.md
CHANGED
|
@@ -19,6 +19,10 @@ These are comparion for this model ran on T4 GPU, compared with segmind/tiny-sd,
|
|
| 19 |
|
| 20 |

|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
### THIS IS NOT THE FULL DESCRIPTION FOR THIS MODEL.
|
| 23 |
|
| 24 |
### License
|
|
@@ -33,13 +37,14 @@ The CreativeML OpenRAIL License specifies:
|
|
| 33 |
|
| 34 |
Code:
|
| 35 |
```python
|
| 36 |
-
|
| 37 |
import torch
|
| 38 |
from diffusers import StableDiffusionPipeline
|
|
|
|
| 39 |
model_id="HyHorX/realistic-diffusion-v1"
|
|
|
|
| 40 |
pipe=StableDiffusionPipeline.from_pretrained(model_id,torch_dtype=torch.float16)
|
| 41 |
pipe=pipe.to("cuda")
|
| 42 |
-
prompt=
|
| 43 |
-
image=pipe(prompt).images[0]
|
| 44 |
image
|
| 45 |
```
|
|
|
|
| 19 |
|
| 20 |

|
| 21 |
|
| 22 |
+
# Training info
|
| 23 |
+
|
| 24 |
+
Learing Rate:
|
| 25 |
+
|
| 26 |
### THIS IS NOT THE FULL DESCRIPTION FOR THIS MODEL.
|
| 27 |
|
| 28 |
### License
|
|
|
|
| 37 |
|
| 38 |
Code:
|
| 39 |
```python
|
|
|
|
| 40 |
import torch
|
| 41 |
from diffusers import StableDiffusionPipeline
|
| 42 |
+
user = "A candid portrait of an elderly person with deep wrinkles, silver hair captured in natural sunlight, wearing a highly detailed coarse wool sweater, dust motes dancing in the light, soft natural backlight, realistic shadows, authentic expression, shot on 35mm film, grainy texture, masterpiece, ultra-realistic"
|
| 43 |
model_id="HyHorX/realistic-diffusion-v1"
|
| 44 |
+
neg_prompt="makeup, young, smooth skin, doll, plastic, fake, bad proportions, blurry, high contrast, artificial lighting."
|
| 45 |
pipe=StableDiffusionPipeline.from_pretrained(model_id,torch_dtype=torch.float16)
|
| 46 |
pipe=pipe.to("cuda")
|
| 47 |
+
prompt=user
|
| 48 |
+
image=pipe(prompt,negative_prompt=neg_prompt).images[0]
|
| 49 |
image
|
| 50 |
```
|