[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111304":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":14,"stars30d":16,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":19,"hasPages":19,"topics":21,"createdAt":10,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":15,"starSnapshotCount":15,"syncStatus":29,"lastSyncTime":30,"discoverSource":31},111304,"kandinsky-s2v","kandinskylab\u002Fkandinsky-s2v","kandinskylab","Speech-to-video inference: an avatar video generated from a reference frame and a speech track","",null,"Python",63,12,1,0,5,44.34,"MIT License",false,"main",[22,23,24],"avatar","s2v","speech-to-video","2026-11-11 23:26:35","2026-11-20 03:26:04","# Kandinsky S2V 1.0\n\n\n\n\n\n\n\n\n\n\u003Cp>\n  \u003Ca href=\"https:\u002F\u002Fkandinskyavatar.github.io\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FProject-Page-green\" alt=\"Project Page\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Farxiv.org\u002Fpdf\u002F2610.19290\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FTechnical-Report-red\" alt=\"Technical Report\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fcollections\u002Fkandinskylab\u002Fkandinsky-s2v-10-6ab65ebe8f765b6dd9d706d7\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F%F0%9F%A4%97%20Hugging%20Face-Models-blue\" alt=\"Hugging Face\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fspaces\u002Fkandinskylab\u002FKandinsky-S2V-1.0-Demo\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F%F0%9F%A4%97%20Hugging%20Face-Demo-yellow\" alt=\"Demo\">\u003C\u002Fa>\n  \u003Ca href=\"LICENSE\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-MIT-lightgrey\" alt=\"License\">\u003C\u002Fa>\n\u003C\u002Fp>\n\nSpeech-to-video inference: an avatar video generated from a **reference frame**\nand a **speech track**. The whole figure is animated, not only the head.\n\nOutput is 25 fps in SD or HD resolution, at the reference frame's aspect ratio.\nLong speech is generated in 5-second chunks.\n\n## Examples\n\nEach is one reference frame plus one speech track. More examples — other\nlanguages, cartoon characters and animals, long videos — are on the\n[project page](https:\u002F\u002Fkandinskyavatar.github.io).\n\n\u003Ctable>\n  \u003Ctr>\n    \u003Ctd width=\"50%\">\u003Cvideo src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F8e8960ad-b68c-4f79-b560-13c4930d92cb\" controls loop>\u003C\u002Fvideo>\u003C\u002Ftd>\n    \u003Ctd width=\"50%\">\u003Cvideo src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F69ed311a-c3b6-4d0a-ac0c-626973f8b147\" controls loop>\u003C\u002Fvideo>\u003C\u002Ftd>\n  \u003C\u002Ftr>\n\u003C\u002Ftable>\n\n\u003Ctable>\n  \u003Ctr>\n    \u003Ctd width=\"25%\">\u003Cvideo src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002Ff0fd2967-a442-4d56-bfdd-266018508535\" controls loop>\u003C\u002Fvideo>\u003C\u002Ftd>\n    \u003Ctd width=\"25%\">\u003Cvideo src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F60661415-05e3-4a0b-823c-ac3fef5f25d1\" controls loop>\u003C\u002Fvideo>\u003C\u002Ftd>\n    \u003Ctd width=\"50%\">\u003Cvideo src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F2f8ebc97-89c9-4810-a90b-640da7e5d31e\" controls loop>\u003C\u002Fvideo>\u003C\u002Ftd>\n  \u003C\u002Ftr>\n\u003C\u002Ftable>\n\n## Requirements\n\nOne NVIDIA GPU with 48 GB or more (80 GB for HD) and a driver ≥ 580, which the\nCUDA 13 build of `torch` needs. `offload.vae_tiling: true` brings the peak down\nto about 28 GB at the cost of faint tile seams.\n\n## Install\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fkandinskylab\u002Fkandinsky-s2v\ncd kandinsky-s2v\nuv sync            # or: pip install -e .\n```\n\n[uv](https:\u002F\u002Fdocs.astral.sh\u002Fuv\u002F) drives the environment and\n[just](https:\u002F\u002Fgithub.com\u002Fcasey\u002Fjust) the tasks; neither is required, and every\nrecipe in the [JUSTFILE](JUSTFILE) is a plain command you can run yourself.\n\n## Generate\n\n```bash\njust generate \\\n    --config src\u002Fkandinsky_s2v\u002Fconfigs\u002Fs2v_lite_distill.yaml \\\n    --audio speech.wav \\\n    --image reference.png \\\n    --out out.mp4\n```\n\nThe number of chunks follows the audio length; pass `--chunks N` to override.\n`--prompt` \u002F `--negative` override the canned prompts in the config, and\n`--steps`, `--guidance`, `--seed` override the sampler defaults.\n\n### Several GPUs\n\nTo speed a generation up, split it across the GPUs of one node:\n\n```bash\njust generate-parallel 8 \\\n    --config src\u002Fkandinsky_s2v\u002Fconfigs\u002Fs2v_pro_distill.yaml \\\n    --audio speech.wav --image reference.png --out out.mp4\n```\n\nThis is `torchrun --nproc-per-node 8` around the same command: every process\nholds the full weights and denoises one slice of the token sequence. N must\ndivide the attention heads — 2 or 4 on Lite, 2, 4 or 8 on Pro.\n\n## Configurations\n\nEach configuration is a YAML file in\n[src\u002Fkandinsky_s2v\u002Fconfigs\u002F](src\u002Fkandinsky_s2v\u002Fconfigs\u002F), passed with\n`--config`. The table gives the time to generate one second of video and the\npeak GPU memory, measured as follows:\n\n- one H100 with FA3, at 512×768 (1280×768 for the HD rows), on a warm run of\n  one chunk (125 frames, 5 s);\n- `with compile` is `compile.strategy: torch` (off by default); on top of these\n  times, a run spends ~20 s compiling once at the start;\n- `4 \u002F 8 GPUs` is the [same generation split](#several-gpus) across 4 GPUs for\n  Lite and 8 for Pro, and counts DiT sampling alone.\n\nDistillation buys roughly 5.1× on Lite, 4.5× on Pro and 5.6× on Pro in HD.\n\n| Config | Model | Time per 1 s of video | with `compile` | 4 \u002F 8 GPUs | Peak VRAM | Weights |\n|---|---|---|---|---|---|:---:|\n| `s2v_lite_distill.yaml` | Lite 2B distilled | 8.7 s | 7.1 s | 3.8 s | 57 GiB | \u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fkandinskylab\u002FKandinsky-S2V-1.0-Lite-distill\">\u003Cimg src=\"https:\u002F\u002Fhuggingface.co\u002Ffront\u002Fassets\u002Fhuggingface_logo-noborder.svg\" height=\"16\" alt=\"🤗\">\u003C\u002Fa> |\n| `s2v_lite.yaml` | Lite 2B | 44 s | 35 s | 14 s | 57 GiB | \u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fkandinskylab\u002FKandinsky-S2V-1.0-Lite\">\u003Cimg src=\"https:\u002F\u002Fhuggingface.co\u002Ffront\u002Fassets\u002Fhuggingface_logo-noborder.svg\" height=\"16\" alt=\"🤗\">\u003C\u002Fa> |\n| `s2v_pro_distill.yaml` | Pro 21B distilled | 41.5 s | 33.6 s | 11.4 s | 46 GiB | \u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fkandinskylab\u002FKandinsky-S2V-1.0-Pro-distill\">\u003Cimg src=\"https:\u002F\u002Fhuggingface.co\u002Ffront\u002Fassets\u002Fhuggingface_logo-noborder.svg\" height=\"16\" alt=\"🤗\">\u003C\u002Fa> |\n| `s2v_pro.yaml` | Pro 21B | 189 s | 152 s | 32 s | 46 GiB | \u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fkandinskylab\u002FKandinsky-S2V-1.0-Pro\">\u003Cimg src=\"https:\u002F\u002Fhuggingface.co\u002Ffront\u002Fassets\u002Fhuggingface_logo-noborder.svg\" height=\"16\" alt=\"🤗\">\u003C\u002Fa> |\n| `s2v_pro_distill_hd.yaml` | Pro 21B distilled, HD | 137 s | 122 s | 29 s | 55 GiB | same as `s2v_pro_distill.yaml` |\n| `s2v_pro_hd.yaml` | Pro 21B, HD | 773 s | 678 s | 114 s | 55 GiB | same as `s2v_pro.yaml` |\n\n## Weights\n\nNothing to download by hand: the first run fetches every weight from the Hub —\nabout 25 GB for Lite and 65 GB for Pro — and `huggingface_hub` caches it\nafterwards. That is the DiT from `kandinskylab\u002FKandinsky-S2V-1.0-*` and the\nthree third-party pieces from upstream: `hunyuanvideo-community\u002FHunyuanVideo\u002Fvae`,\n`Qwen\u002FQwen2.5-Omni-7B` and `openai\u002Fclip-vit-large-patch14`.\n\nAn entry in `paths` may also be a local path.\n\n## Diffusers\n\nThe same model is available as a Diffusers\n[modular pipeline](https:\u002F\u002Fhuggingface.co\u002Fdocs\u002Fdiffusers\u002Fmodular_diffusers\u002Foverview)\n— the `-Diffusers` repositories in the\n[collection](https:\u002F\u002Fhuggingface.co\u002Fcollections\u002Fkandinskylab\u002Fkandinsky-s2v-10-6ab65ebe8f765b6dd9d706d7).\nIt was merged in [huggingface\u002Fdiffusers#15164](https:\u002F\u002Fgithub.com\u002Fhuggingface\u002Fdiffusers\u002Fpull\u002F15164)\nand is not in a release yet, so install Diffusers from `main`:\n\n```bash\npip install git+https:\u002F\u002Fgithub.com\u002Fhuggingface\u002Fdiffusers librosa\n```\n\n```python\nimport librosa\nimport torch\nfrom diffusers import ModularPipeline\nfrom diffusers.utils import encode_video, load_image\n\npipe = ModularPipeline.from_pretrained(\"kandinskylab\u002FKandinsky-S2V-1.0-Lite-distill-Diffusers\")\npipe.load_components(dtype=torch.bfloat16)\npipe.to(\"cuda\")\n\nimage = load_image(\"reference.png\")\naudio, _ = librosa.load(\"speech.wav\", sr=16000)  # a mono waveform at 16 kHz, for the model\nspeech, sample_rate = librosa.load(\"speech.wav\", sr=None)  # the original track, added to the output video\n\nvideo = pipe(image=image, audio=audio, output=\"videos\")[0]\nencode_video(\n    video,\n    fps=25,\n    output_path=\"avatar.mp4\",\n    audio=torch.from_numpy(speech)[None],\n    audio_sample_rate=sample_rate,\n)\n```\n\nThe pipeline reads no files: `image` is a PIL image and `audio` a mono waveform\nat 16 kHz. `from_pretrained` picks the base or distilled blocks from the\ncheckpoint. The Pro bundles do not fit an 80 GB card with every component\nresident; offload them through a `ComponentsManager`:\n\n```python\nimport librosa\nimport torch\nfrom diffusers import ComponentsManager, ModularPipeline\nfrom diffusers.utils import encode_video, load_image\n\nmanager = ComponentsManager()\npipe = ModularPipeline.from_pretrained(\"kandinskylab\u002FKandinsky-S2V-1.0-Pro-distill-Diffusers\", components_manager=manager)\npipe.load_components(dtype=torch.bfloat16)\nmanager.enable_auto_cpu_offload(device=\"cuda\", memory_reserve_margin=\"40GiB\")  # after load_components\n\nimage = load_image(\"reference.png\")\naudio, _ = librosa.load(\"speech.wav\", sr=16000)\nspeech, sample_rate = librosa.load(\"speech.wav\", sr=None)\n\nvideo = pipe(image=image, audio=audio, output=\"videos\")[0]\nencode_video(\n    video,\n    fps=25,\n    output_path=\"avatar.mp4\",\n    audio=torch.from_numpy(speech)[None],\n    audio_sample_rate=sample_rate,\n)\n```\n\n## ComfyUI\n\nLite distilled and Pro distilled can also be run in ComfyUI: see\n[dev\u002Fcomfyui](dev\u002Fcomfyui\u002FREADME.md).\n\n## Responsible use\n\nThe model animates a real person from a single photograph, driven by a\nvoice that need not be theirs. Use a reference frame you have the subject's\nconsent to animate, and do not present the result as a genuine recording of\nanyone.\n\n## Licence\n\nThe code in this repository is MIT, see [LICENSE](LICENSE). The published\nweights carry their own licence, stated on each model card.\n\n## Development\n\n```bash\njust test        # unit tests, no GPU and no weights needed\njust lint\n```\n","Kandinsky S2V 是一个开源的语音驱动虚拟人视频生成工具，支持从单张参考图像和语音音频生成全身动画视频。其核心功能包括端到端的语音到视频（S2V）推理、全身体态驱动（非仅面部\u002F唇动）、分段式长语音处理（5秒切片）、SD\u002FHD分辨率输出及自定义提示词控制。技术上基于扩散模型架构，依赖大显存NVIDIA GPU（48GB+），支持VAE分块降低显存占用。适用于虚拟主播、多语种数字人内容创作、教育类AI讲师视频生成等需要高保真语音同步动画的场景。",2,"2026-11-24 04:40:45","CREATED_QUERY"]