Instructions to use not-pegasus/IMAGE_MODAL with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use not-pegasus/IMAGE_MODAL with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("not-pegasus/IMAGE_MODAL", 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
| # This file must be kept very simple, because it is consumed from several | |
| # places -- it is imported by h11/__init__.py, execfile'd by setup.py, etc. | |
| # We use a simple scheme: | |
| # 1.0.0 -> 1.0.0+dev -> 1.1.0 -> 1.1.0+dev | |
| # where the +dev versions are never released into the wild, they're just what | |
| # we stick into the VCS in between releases. | |
| # | |
| # This is compatible with PEP 440: | |
| # http://legacy.python.org/dev/peps/pep-0440/ | |
| # via the use of the "local suffix" "+dev", which is disallowed on index | |
| # servers and causes 1.0.0+dev to sort after plain 1.0.0, which is what we | |
| # want. (Contrast with the special suffix 1.0.0.dev, which sorts *before* | |
| # 1.0.0.) | |
| __version__ = "0.16.0" | |