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
- Draw Things
- DiffusionBee
thank you
#2
by ruebre - opened
Hi baidu-Team
I want to thank you for this great model. I am genuinely impressed with this not expected quality. not expected means : I have so much fun playing around in addition with your prompt gallery site. For me, this means a new universe of possibilities.
regards
ruebre
Thank you from my side as well :)
Thank you for your sincere words ,my team and I have been greatly inspired!