Update README.md
Browse files
README.md
CHANGED
@@ -11,7 +11,7 @@ tags:
|
|
11 |
---
|
12 |
## Model Card for lyraSD
|
13 |
|
14 |
-
lyraSD is currently the **fastest Stable Diffusion model** available, boasting an inference cost of only **0.
|
15 |
|
16 |
Among its main features are:
|
17 |
|
@@ -28,8 +28,8 @@ Among its main features are:
|
|
28 |
- device: Nvidia A100 40G
|
29 |
- img size: 512x512
|
30 |
- percision:fp16
|
31 |
-
- steps:
|
32 |
-
- solver:
|
33 |
|
34 |
### text2img
|
35 |
|model|time cost(ms)|memory(MB)|
|
@@ -56,12 +56,12 @@ Among its main features are:
|
|
56 |
```python
|
57 |
from lyraSD import LyraSD
|
58 |
|
59 |
-
t2imodel = LyraSD("text2img", "./sd1.
|
60 |
t2imodel.inference(prompt="A fantasy landscape, trending on artstation", use_super=False)
|
61 |
|
62 |
|
63 |
from PIL import Image
|
64 |
-
i2imodel = LyraSD("img2img", "./sd1.
|
65 |
demo_img = Image.open("output/text2img_demo.jpg")
|
66 |
i2imodel.inference(prompt="A fantasy landscape, trending on artstation", image=demo_img)
|
67 |
|
|
|
11 |
---
|
12 |
## Model Card for lyraSD
|
13 |
|
14 |
+
lyraSD is currently the **fastest Stable Diffusion model** available, boasting an inference cost of only **0.435 seconds** for a 512x512 image, accelerating the process up to **10 times faster** than the original version.
|
15 |
|
16 |
Among its main features are:
|
17 |
|
|
|
28 |
- device: Nvidia A100 40G
|
29 |
- img size: 512x512
|
30 |
- percision:fp16
|
31 |
+
- steps: 30
|
32 |
+
- solver: LMSD
|
33 |
|
34 |
### text2img
|
35 |
|model|time cost(ms)|memory(MB)|
|
|
|
56 |
```python
|
57 |
from lyraSD import LyraSD
|
58 |
|
59 |
+
t2imodel = LyraSD("text2img", "./sd1.4-engine")
|
60 |
t2imodel.inference(prompt="A fantasy landscape, trending on artstation", use_super=False)
|
61 |
|
62 |
|
63 |
from PIL import Image
|
64 |
+
i2imodel = LyraSD("img2img", "./sd1.4-engine")
|
65 |
demo_img = Image.open("output/text2img_demo.jpg")
|
66 |
i2imodel.inference(prompt="A fantasy landscape, trending on artstation", image=demo_img)
|
67 |
|