Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

baidu
/
ERNIE-Image

Text-to-Image
Diffusers
Safetensors
ErnieImagePipeline
8B
Model card Files Files and versions
xet
Community
8

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
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

Edit model?

🚀 3
#8 opened 21 days ago by
evewashere

Can you train it to handle Arabic? Or is there a way to make it display good arabic?

#7 opened 21 days ago by
AAR-AAR-AAR

Does it support Quantize text encoder ?

#6 opened 24 days ago by
razvanab

Typo on ERNIE Image collection

#5 opened 24 days ago by
MihaiPopa-1

The model is terrible when generating human. How many japanese girls were this model trained by?

🤯 3
8
#4 opened 25 days ago by
relorelolore

thank you

2
#2 opened 26 days ago by
ruebre

Just curious, can the base model generate NSFW content right out of the box?

👍 3
4
#1 opened 27 days ago by
nosok12313
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs