Instructions to use prompthero/openjourney-v4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use prompthero/openjourney-v4 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("prompthero/openjourney-v4", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Add Diffusers weights
Add Diffusers weights converted from checkpoint openjourney-v2.ckpt in revision fa6195f8621ebc0ff4220e4ccd705dab34b68323
This PR adds weights for the diffusers library. openjourney-v1 was highly used with diffusers, it would be great to use with openjourney-v2 as well. This PR can also enable the inference API etc...
That's pretty damn awesome.
Is the script you used for conversion publicly available?
If so, where can we find it?
Yes, I actually just ran this space:
https://huggingface.co/spaces/anzorq/sd-to-diffusers
It automatically opens a PR on a repo of your choice :-)
If you want to have the converted weights in a personal repo, you could also just try this space: https://huggingface.co/spaces/diffusers/convert-sd-ckpt
Thanks for the info!
is it ok if we merge this?