Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • 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
ERNIE-Image / transformer
16.1 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 1 commit
HsiaX's picture
HsiaX
Upload folder using huggingface_hub
ce03a72 verified about 1 month ago
  • config.json
    383 Bytes
    Upload folder using huggingface_hub about 1 month ago
  • diffusion_pytorch_model-00001-of-00002.safetensors
    9.99 GB
    xet
    Upload folder using huggingface_hub about 1 month ago
  • diffusion_pytorch_model-00002-of-00002.safetensors
    6.07 GB
    xet
    Upload folder using huggingface_hub about 1 month ago
  • diffusion_pytorch_model.safetensors.index.json
    38.9 kB
    Upload folder using huggingface_hub about 1 month ago