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
- allegro
- animatediff
- audioldm2
- aura_flow
- chroma
- cogvideo
- cogview3
- cogview4
- consisid
- consistency_models
- controlnet
- controlnet_flux
- controlnet_hunyuandit
- controlnet_sd3
- cosmos
- ddim
- ddpm
- deepfloyd_if
- dit
- easyanimate
- flux
- hidream_image
- hunyuan_video
- hunyuandit
- ip_adapters
- kandinsky
- kandinsky2_2
- kandinsky3
- kolors
- latent_consistency_models
- latent_diffusion
- latte
- ledits_pp
- ltx
- lumina
- lumina2
- marigold
- mochi
- omnigen
- pag
- pixart_alpha
- pixart_sigma
- pndm
- sana
- shap_e
- skyreels_v2
- stable_audio
- stable_cascade
- stable_diffusion
- stable_diffusion_2