Instructions to use lsmpp/kontextrefiner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use lsmpp/kontextrefiner with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("lsmpp/kontextrefiner", 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
Ctrl+K
- 30.7 kB
- 17.5 kB
- 5.92 kB
- 4.9 kB
- 5.05 kB
- 10.3 kB
- 11.8 kB
- 1.02 kB
- 87 Bytes
- 74 Bytes
- 102 Bytes
- 101 Bytes
- 101 Bytes
- 102 Bytes
- 87 Bytes
- 9.26 kB
- 8.13 kB
- 16.3 kB
- 4.12 kB
- 12 kB
- 12.1 kB
- 9.94 kB
- 8.81 kB
- 10.4 kB
- 11.6 kB
- 8.13 kB
- 59.2 kB
- 27.3 kB
- 75.1 kB
- 59.2 kB
- 79.6 kB
- 91.1 kB
- 73.1 kB
- 63 kB
- 62.7 kB
- 82.1 kB
- 86.8 kB
- 74 kB