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
Just curious, can the base model generate NSFW content right out of the box?
#1
by nosok12313 - opened
Seeing that it's licensed under Apache 2.0, I assume there aren't any strict usage restrictions. But I'm really interested in knowing how well the model actually understands NSFW concepts at a foundational level?"
I have tried it, and it generated a very ugly and scary pus*y for me.
same. ernie prompt enhancer keep messing up results, i wonder if its possible to replace clip and enhancer with uncensored one
the enhancer is fine, the standard sys prompt is just not very good... ernie has issues with genitals as those were most likely not part of the training data, wait for lora or finetunes to fix that...
