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
- 8.19 kB
- 15.1 kB
- 17.2 kB
- 10.4 kB
- 16.3 kB
- 14.5 kB
- 3.74 kB
- 19.3 kB
- 2.6 kB
- 11.6 kB
- 1.8 kB
- 6.31 kB
- 30.1 kB
- 25.7 kB
- 16.3 kB
- 43.7 kB
- 32.1 kB
- 31.7 kB
- 27.4 kB
- 31.1 kB
- 13.9 kB
- 26.4 kB
- 1.13 kB
- 14.6 kB
- 6 kB
- 7.9 kB
- 12.4 kB
- 11.1 kB
- 21.8 kB
- 5.41 kB
- 7.3 kB
- 10.6 kB
- 5.93 kB
- 6.23 kB
- 19.1 kB
- 3.19 kB
- 2.28 kB
- 23 kB
- 13.8 kB