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
|
@@ -43,9 +43,8 @@ Thanks to its relatively compact model size, ERNIE-Image can be deployed on **co
|
|
| 43 |
|
| 44 |
<section id="shape-3160722256177163633" class="tab-panel active">
|
| 45 |
<div class="masonry">
|
| 46 |
-
|
| 47 |
<article class="card">
|
| 48 |
-
<img
|
| 49 |
</article>
|
| 50 |
</div>
|
| 51 |
</section>
|
|
|
|
| 43 |
|
| 44 |
<section id="shape-3160722256177163633" class="tab-panel active">
|
| 45 |
<div class="masonry">
|
|
|
|
| 46 |
<article class="card">
|
| 47 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/6358acfe0e4fef21982a929b/ukAjGbYZwG4jPRRs9UgJ0.jpeg" alt="generated image">
|
| 48 |
</article>
|
| 49 |
</div>
|
| 50 |
</section>
|