Instructions to use baidu/ERNIE-Image-Turbo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use baidu/ERNIE-Image-Turbo 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-Turbo", 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
Remove unused json config entry
#2
by mingyi456 - opened
I get the following message:
The config attributes {'lora_rank': 4, 'use_lora': False} were passed to ErnieImageTransformer2DModel, but are not expected and will be ignored. Please verify your config.json configuration file.
Is there a possible reason why this key exists? If not, I think it is good to remove it.