Instructions to use baidu/ERNIE-Image with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use baidu/ERNIE-Image with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("baidu/ERNIE-Image", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Update README.md
Browse files
README.md
CHANGED
|
@@ -39,8 +39,7 @@ Thanks to its relatively compact model size, ERNIE-Image can be deployed on **co
|
|
| 39 |
|
| 40 |
|
| 41 |
### Showcase
|
| 42 |
-
|
| 43 |
-
|
| 44 |
<!doctype html>
|
| 45 |
<html lang="zh-CN">
|
| 46 |
<head>
|
|
@@ -116,7 +115,7 @@ Thanks to its relatively compact model size, ERNIE-Image can be deployed on **co
|
|
| 116 |
</main>
|
| 117 |
</body>
|
| 118 |
</html>
|
| 119 |
-
|
| 120 |
|
| 121 |
## Uses
|
| 122 |
|
|
|
|
| 39 |
|
| 40 |
|
| 41 |
### Showcase
|
| 42 |
+
<iframe>
|
|
|
|
| 43 |
<!doctype html>
|
| 44 |
<html lang="zh-CN">
|
| 45 |
<head>
|
|
|
|
| 115 |
</main>
|
| 116 |
</body>
|
| 117 |
</html>
|
| 118 |
+
</iframe>
|
| 119 |
|
| 120 |
## Uses
|
| 121 |
|