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
|
@@ -40,28 +40,20 @@ Thanks to its relatively compact model size, ERNIE-Image can be deployed on **co
|
|
| 40 |
|
| 41 |
### Showcase
|
| 42 |
|
| 43 |
-
|
| 44 |
-
<
|
| 45 |
-
<
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
<
|
| 49 |
-
<img src="https://cdn-uploads.huggingface.co/production/uploads/6358acfe0e4fef21982a929b/Eqwlir8L874J97Y1W6mDS.jpeg" style="border-radius:8px;">
|
| 50 |
-
</div>
|
| 51 |
-
|
| 52 |
-
<div style="text-align:center; border:1px solid #eee; padding:10px; border-radius:12px; box-shadow:0 2px 8px rgba(0,0,0,0.1);">
|
| 53 |
-
<img src="https://cdn-uploads.huggingface.co/production/uploads/6358acfe0e4fef21982a929b/dqQ3Egmldjq5Yk5BurlEs.jpeg" style="border-radius:8px;">
|
| 54 |
-
</div>
|
| 55 |
-
|
| 56 |
-
</div>
|
| 57 |
-
|
| 58 |
-
| 
|
| 59 |
-
|
| 60 |
-
|
|
| 61 |
|
| 62 |
-

|
| 51 |
|
| 52 |
+
" alt="generated image">
|
| 53 |
+
</article>
|
| 54 |
+
</div>
|
| 55 |
+
</section>
|
| 56 |
+
|
| 57 |
|
| 58 |
## Uses
|
| 59 |
|