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
Kandinsky 2.1
Kandinsky 2.1 is created by Arseniy Shakhmatov, Anton Razzhigaev, Aleksandr Nikolich, Vladimir Arkhipkin, Igor Pavlov, Andrey Kuznetsov, and Denis Dimitrov.
The description from it's GitHub page is:
Kandinsky 2.1 inherits best practicies from Dall-E 2 and Latent diffusion, while introducing some new ideas. As text and image encoder it uses CLIP model and diffusion image prior (mapping) between latent spaces of CLIP modalities. This approach increases the visual performance of the model and unveils new horizons in blending images and text-guided image manipulation.
The original codebase can be found at ai-forever/Kandinsky-2.
Check out the Kandinsky Community organization on the Hub for the official model checkpoints for tasks like text-to-image, image-to-image, and inpainting.
Make sure to check out the Schedulers guide to learn how to explore the tradeoff between scheduler speed and quality, and see the reuse components across pipelines section to learn how to efficiently load the same components into multiple pipelines.
KandinskyPriorPipeline
[[autodoc]] KandinskyPriorPipeline - all - call - interpolate
KandinskyPipeline
[[autodoc]] KandinskyPipeline - all - call
KandinskyCombinedPipeline
[[autodoc]] KandinskyCombinedPipeline - all - call
KandinskyImg2ImgPipeline
[[autodoc]] KandinskyImg2ImgPipeline - all - call
KandinskyImg2ImgCombinedPipeline
[[autodoc]] KandinskyImg2ImgCombinedPipeline - all - call
KandinskyInpaintPipeline
[[autodoc]] KandinskyInpaintPipeline - all - call
KandinskyInpaintCombinedPipeline
[[autodoc]] KandinskyInpaintCombinedPipeline - all - call