Instructions to use anr2me/Kandinsky-6.0-VSR-2.0-distilled2steps-Repackaged with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use anr2me/Kandinsky-6.0-VSR-2.0-distilled2steps-Repackaged with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("anr2me/Kandinsky-6.0-VSR-2.0-distilled2steps-Repackaged", 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 6.0 VSR 2.0 (distilled, 2 steps) - bf16
This repository holds a bf16 repackage of kandinskylab/Kandinsky-6.0-VSR-2.0-distilled2steps-Diffusers. The weights are the original weights. Nothing is quantized.
Each model is one file, in the folder layout of ComfyUI/models/. The config of each model is in the file header.
| Component | Size (bf16) |
|---|---|
diffusion_models/Kandinsky6_VSR_2.0_distilled2steps_bf16.safetensors |
3.19 GB |
vae/Kandinsky6_VSR_2.0_KVAE_bf16.safetensors |
6.96 GB |
upscale_models/Kandinsky6_VSR_2.0_LatentUpscaler_bf16.safetensors |
7.31 GB |
Method
The converter did not change the weights. It only re-packed the files.
Files
| File in this repository | Put it in |
|---|---|
diffusion_models/Kandinsky6_VSR_2.0_distilled2steps_bf16.safetensors |
ComfyUI/models/diffusion_models/ |
vae/Kandinsky6_VSR_2.0_KVAE_bf16.safetensors |
ComfyUI/models/vae/ |
upscale_models/Kandinsky6_VSR_2.0_LatentUpscaler_bf16.safetensors |
ComfyUI/models/upscale_models/ |
Use in ComfyUI
- Install the official node pack
kandinsky6-sr. Use ComfyUI Manager (search forkandinsky6-sr), or follow the install steps in its README. - Open a terminal in the folder
ComfyUI/custom_nodes/. - Run this command:
git clone https://github.com/anr2me/kandinsky6-sr-int8-convrot.git - Download the model files into the folder
ComfyUI/models/. Use this command:hf download anr2me/Kandinsky-6.0-VSR-2.0-distilled2steps-Repackaged --include "diffusion_models/*" "vae/*" "upscale_models/*" --local-dir ComfyUI/models - Restart ComfyUI.
- Use the node
Load Diffusion Modelfor the transformer. - Use the nodes
Kandinsky6 SR VAE Loader (INT8 ConvRot)andKandinsky6 SR Latent Upscaler Loader (INT8 ConvRot)for the other two models. The nodes with the name(INT8 ConvRot)also load bf16 files.
The official nodes alone cannot read these files. They need a folder with a config.json. The nodes of the node repository read the files in this repository, and they do not need a patch of the official nodes.
Config
Each file has its config in the safetensors header, under the key kandinsky6.component_config. This is the same key as in shadwosii/Kandinsky-6.0. The transformer file also has the key kandinsky6.scheduler_config. This second key is an addition of this repository. It holds the sampler settings that the official pack needs after the transformer load.
An external file next to a model file always has priority over the embedded config. The name is <file-name>.json. For the scheduler of the transformer, the name is <file-name>.scheduler.json. Use an external file to repair a bad embedded config. The node repository has the details.
Limits
- The weights are the original weights. Only the file layout is different.
- The original model is by Kandinsky Lab. It uses the MIT license, and this repository keeps the MIT license.
- Downloads last month
- -
Model tree for anr2me/Kandinsky-6.0-VSR-2.0-distilled2steps-Repackaged
Base model
kandinskylab/Kandinsky-6.0-VSR-5s-Diffusers