[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111261":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":14,"forks30d":14,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":23,"topics":24,"createdAt":9,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":14,"starSnapshotCount":14,"syncStatus":29,"lastSyncTime":30,"discoverSource":31},111261,"TaoMate-FVSR","TaoLiveAIGC\u002FTaoMate-FVSR","TaoLiveAIGC","Audio-guided facial video restoration and visual dubbing demos",null,"Python",117,22,13,0,1,5,53,3,53.89,"Apache License 2.0",false,"main",true,[],"2026-11-05 11:18:55","2026-11-22 18:15:25","# \u003Cimg src=\"https:\u002F\u002Ftaoliveaigc.github.io\u002FTaoMate-FVSR\u002Fassets\u002Ffavicon.svg\" width=\"40\" height=\"40\" alt=\"\" \u002F> TaoMate-FVSR\n\n**Audio-Guided Facial Video Restoration**\n\n[![arXiv](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FarXiv-2611.03393-red.svg)](https:\u002F\u002Farxiv.org\u002Fabs\u002F2611.03393)\n[![Project Page](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FProject-Page-blue)](https:\u002F\u002Ftaoliveaigc.github.io\u002FTaoMate-FVSR\u002F)\n[![Hugging Face](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F%F0%9F%A4%97%20HuggingFace-Model-yellow)](https:\u002F\u002Fhuggingface.co\u002FTaoLiveAIGC\u002FTaoMate-FVSR)\n[![ComfyUI](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FComfyUI-Experimental-blue)](https:\u002F\u002Fgithub.com\u002FTaoLiveAIGC\u002FTaoMate-FVSR\u002Ftree\u002Fcomfyui)\n[![Code License](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FCode-Apache--2.0-green)](LICENSE)\n\n[Demo](#demo) · [Results](#experimental-results) ·\n[Installation](#installation) · [Model Downloads](#model-downloads) ·\n[Inference](#inference) · [Citation](#citation) ·\n[Technical Guide](docs\u002Finference.md)\n\n**Prefer ComfyUI?** Use the dedicated [ComfyUI branch](https:\u002F\u002Fgithub.com\u002FTaoLiveAIGC\u002FTaoMate-FVSR\u002Ftree\u002Fcomfyui) for custom nodes, installation instructions, model setup and ready-to-import workflows: [English guide](https:\u002F\u002Fgithub.com\u002FTaoLiveAIGC\u002FTaoMate-FVSR\u002Fblob\u002Fcomfyui\u002FREADME.md) · [中文安装与使用指南](https:\u002F\u002Fgithub.com\u002FTaoLiveAIGC\u002FTaoMate-FVSR\u002Fblob\u002Fcomfyui\u002FREADME.zh-CN.md). It reuses the original TaoMate-FVSR weights; no converted checkpoint is required.\n\nTaoMate-FVSR restores face videos with audio conditioning, sparse visual\nreferences, and generated-frame history. It supports restoration with the\noriginal audio and visual dubbing with replacement speech.\n\n- **Full-video inference:** DWPose crop → face restoration → color\u002Fmask blend → paste-back.\n- **1× \u002F 2× inference:** run the model at 512×512 or 1024×1024, then return to\n  512×512 before compositing. The output scene retains its original dimensions.\n- **Audio-guided generation:** use the video's original audio or provide target speech.\n- **Flexible references:** prepare the first frame with GPEN, use an externally\n  edited first frame, or supply a finished reference image. Default enhancement\n  uses one GPEN-BFR-512 pass for 1× and one GPEN-BFR-1024 pass for 2×.\n\nThe `main` branch contains the standalone inference runtime; the `comfyui`\nbranch provides the ComfyUI integration. Model weights are downloaded\nseparately, and input media is supplied locally.\n\n## News\n\n- **2026-11-03:** 🎉 Inference code released, including full-scene crop\u002Fpaste-back, scale-matched GPEN references, and 1× \u002F 2× inference through one entry point.\n- **2026-11-02:** Our [paper](https:\u002F\u002Farxiv.org\u002Fabs\u002F2611.03393) is available on arXiv.\n\n## Demo\n\n**The Gallery** — TaoMate-FVSR+ restoration example from the project page.\n\n\u003Ctable>\n  \u003Cthead>\n    \u003Ctr>\u003Cth align=\"center\">Input\u003C\u002Fth>\u003Cth align=\"center\">TaoMate-FVSR+\u003C\u002Fth>\u003C\u002Ftr>\n  \u003C\u002Fthead>\n  \u003Ctbody>\n    \u003Ctr>\n      \u003Ctd align=\"center\">\u003Ca href=\"https:\u002F\u002Ftaoliveaigc.github.io\u002FTaoMate-FVSR\u002F#top\">\u003Cimg src=\"https:\u002F\u002Ftaoliveaigc.github.io\u002FTaoMate-FVSR\u002Fassets\u002Fmedia\u002Fh3-768p-20261102\u002Fours\u002Fgallery__original\u002Finput.jpg\" alt=\"The Gallery — input face crop\" width=\"320\">\u003C\u002Fa>\u003C\u002Ftd>\n      \u003Ctd align=\"center\">\u003Ca href=\"https:\u002F\u002Ftaoliveaigc.github.io\u002FTaoMate-FVSR\u002F#top\">\u003Cimg src=\"https:\u002F\u002Ftaoliveaigc.github.io\u002FTaoMate-FVSR\u002Fassets\u002Fmedia\u002Fh3-768p-20261102\u002Fours\u002Fgallery__original\u002Fours.jpg\" alt=\"The Gallery — TaoMate-FVSR+ restored face crop\" width=\"320\">\u003C\u002Fa>\u003C\u002Ftd>\n    \u003C\u002Ftr>\n  \u003C\u002Ftbody>\n\u003C\u002Ftable>\n\n[▶ Watch the synchronized comparison](https:\u002F\u002Ftaoliveaigc.github.io\u002FTaoMate-FVSR\u002F#top)\n· [Restored video (MP4)](https:\u002F\u002Fraw.githubusercontent.com\u002FTaoLiveAIGC\u002FTaoMate-FVSR\u002Fmedia\u002Fassets\u002Fmedia\u002Fh3-768p-20261102\u002Fours\u002Fgallery__original\u002Fours.mp4)\n· [More demos](https:\u002F\u002Ftaoliveaigc.github.io\u002FTaoMate-FVSR\u002F#collection)\n\n*The “+” variant uses a GPT-Image-enhanced reference frame. Click either preview to play the before\u002Fafter comparison.*\n\n## Experimental Results\n\nResults from our [paper](https:\u002F\u002Farxiv.org\u002Fpdf\u002F2611.03393). ↑ indicates higher\nis better; ↓ indicates lower is better. Scores are video-wise means, and GT\nrows provide undegraded-source context rather than a competing method.\n\u003Cp>\u003Cstrong>Bold\u003C\u002Fstrong> marks the best method result; \u003Cins>underline\u003C\u002Fins> marks the second-best.\nGT is excluded from both rankings.\u003C\u002Fp>\n\n### Facial restoration under original audio\n\nThe 150-video benchmark includes MEAD, HDTF, TalkVid, and our internal\ntalking-head dataset. All methods receive the same training-style degradation,\nincluding 4× downsampling followed by resizing back to 512×512. Scores are\ncomputed on complete prepared frames using native uncompressed RGB outputs,\naveraged equally over common valid clips.\n\n\u003Ctable>\n\u003Cthead>\n  \u003Ctr>\u003Cth align=\"left\">Method\u003C\u002Fth>\u003Cth align=\"right\">PSNR ↑\u003C\u002Fth>\u003Cth align=\"right\">SSIM ↑\u003C\u002Fth>\u003Cth align=\"right\">LPIPS ↓\u003C\u002Fth>\u003Cth align=\"right\">DISTS ↓\u003C\u002Fth>\u003Cth align=\"right\">Sync-C ↑\u003C\u002Fth>\u003Cth align=\"right\">Sync-D ↓\u003C\u002Fth>\u003Cth align=\"right\">MUSIQ ↑\u003C\u002Fth>\u003Cth align=\"right\">CLIP-IQA ↑\u003C\u002Fth>\u003Cth align=\"right\">FasterVQA ↑\u003C\u002Fth>\u003Cth align=\"right\">DOVER ↑\u003C\u002Fth>\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\n  \u003Ctr>\u003Ctd align=\"left\">GT\u003C\u002Ftd>\u003Ctd align=\"right\">—\u003C\u002Ftd>\u003Ctd align=\"right\">—\u003C\u002Ftd>\u003Ctd align=\"right\">—\u003C\u002Ftd>\u003Ctd align=\"right\">—\u003C\u002Ftd>\u003Ctd align=\"right\">6.959\u003C\u002Ftd>\u003Ctd align=\"right\">7.863\u003C\u002Ftd>\u003Ctd align=\"right\">62.70\u003C\u002Ftd>\u003Ctd align=\"right\">0.4525\u003C\u002Ftd>\u003Ctd align=\"right\">0.7735\u003C\u002Ftd>\u003Ctd align=\"right\">0.6148\u003C\u002Ftd>\u003C\u002Ftr>\n  \u003Ctr>\u003Ctd align=\"left\">GPEN\u003C\u002Ftd>\u003Ctd align=\"right\">26.77\u003C\u002Ftd>\u003Ctd align=\"right\">0.7970\u003C\u002Ftd>\u003Ctd align=\"right\">0.2267\u003C\u002Ftd>\u003Ctd align=\"right\">0.1825\u003C\u002Ftd>\u003Ctd align=\"right\">6.309\u003C\u002Ftd>\u003Ctd align=\"right\">8.288\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cins>76.47\u003C\u002Fins>\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cins>0.7032\u003C\u002Fins>\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cins>0.8931\u003C\u002Fins>\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cins>0.8505\u003C\u002Fins>\u003C\u002Ftd>\u003C\u002Ftr>\n  \u003Ctr>\u003Ctd align=\"left\">CodeFormer\u003C\u002Ftd>\u003Ctd align=\"right\">27.38\u003C\u002Ftd>\u003Ctd align=\"right\">0.8045\u003C\u002Ftd>\u003Ctd align=\"right\">0.2195\u003C\u002Ftd>\u003Ctd align=\"right\">0.1876\u003C\u002Ftd>\u003Ctd align=\"right\">5.856\u003C\u002Ftd>\u003Ctd align=\"right\">8.693\u003C\u002Ftd>\u003Ctd align=\"right\">74.42\u003C\u002Ftd>\u003Ctd align=\"right\">0.6649\u003C\u002Ftd>\u003Ctd align=\"right\">0.8854\u003C\u002Ftd>\u003Ctd align=\"right\">0.7954\u003C\u002Ftd>\u003C\u002Ftr>\n  \u003Ctr>\u003Ctd align=\"left\">InstantRestore\u003C\u002Ftd>\u003Ctd align=\"right\">27.42\u003C\u002Ftd>\u003Ctd align=\"right\">0.8283\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cins>0.1380\u003C\u002Fins>\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cins>0.1421\u003C\u002Fins>\u003C\u002Ftd>\u003Ctd align=\"right\">6.209\u003C\u002Ftd>\u003Ctd align=\"right\">8.403\u003C\u002Ftd>\u003Ctd align=\"right\">68.11\u003C\u002Ftd>\u003Ctd align=\"right\">0.5166\u003C\u002Ftd>\u003Ctd align=\"right\">0.8562\u003C\u002Ftd>\u003Ctd align=\"right\">0.7704\u003C\u002Ftd>\u003C\u002Ftr>\n  \u003Ctr>\u003Ctd align=\"left\">SparkVSR\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cstrong>30.62\u003C\u002Fstrong>\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cstrong>0.8863\u003C\u002Fstrong>\u003C\u002Ftd>\u003Ctd align=\"right\">0.1755\u003C\u002Ftd>\u003Ctd align=\"right\">0.1586\u003C\u002Ftd>\u003Ctd align=\"right\">6.545\u003C\u002Ftd>\u003Ctd align=\"right\">8.170\u003C\u002Ftd>\u003Ctd align=\"right\">65.66\u003C\u002Ftd>\u003Ctd align=\"right\">0.4417\u003C\u002Ftd>\u003Ctd align=\"right\">0.8459\u003C\u002Ftd>\u003Ctd align=\"right\">0.7467\u003C\u002Ftd>\u003C\u002Ftr>\n  \u003Ctr>\u003Ctd align=\"left\">RG-FVR\u003C\u002Ftd>\u003Ctd align=\"right\">26.69\u003C\u002Ftd>\u003Ctd align=\"right\">0.8308\u003C\u002Ftd>\u003Ctd align=\"right\">0.1645\u003C\u002Ftd>\u003Ctd align=\"right\">0.1461\u003C\u002Ftd>\u003Ctd align=\"right\">5.685\u003C\u002Ftd>\u003Ctd align=\"right\">9.024\u003C\u002Ftd>\u003Ctd align=\"right\">70.51\u003C\u002Ftd>\u003Ctd align=\"right\">0.5246\u003C\u002Ftd>\u003Ctd align=\"right\">0.8688\u003C\u002Ftd>\u003Ctd align=\"right\">0.7407\u003C\u002Ftd>\u003C\u002Ftr>\n  \u003Ctr>\u003Ctd align=\"left\">SeedVR2-3B\u003C\u002Ftd>\u003Ctd align=\"right\">27.49\u003C\u002Ftd>\u003Ctd align=\"right\">0.8456\u003C\u002Ftd>\u003Ctd align=\"right\">0.2227\u003C\u002Ftd>\u003Ctd align=\"right\">0.1630\u003C\u002Ftd>\u003Ctd align=\"right\">6.377\u003C\u002Ftd>\u003Ctd align=\"right\">8.339\u003C\u002Ftd>\u003Ctd align=\"right\">57.36\u003C\u002Ftd>\u003Ctd align=\"right\">0.4412\u003C\u002Ftd>\u003Ctd align=\"right\">0.7548\u003C\u002Ftd>\u003Ctd align=\"right\">0.5601\u003C\u002Ftd>\u003C\u002Ftr>\n  \u003Ctr>\u003Ctd align=\"left\">SeedVR2-7B\u003C\u002Ftd>\u003Ctd align=\"right\">28.60\u003C\u002Ftd>\u003Ctd align=\"right\">0.8584\u003C\u002Ftd>\u003Ctd align=\"right\">0.2046\u003C\u002Ftd>\u003Ctd align=\"right\">0.1525\u003C\u002Ftd>\u003Ctd align=\"right\">6.359\u003C\u002Ftd>\u003Ctd align=\"right\">8.319\u003C\u002Ftd>\u003Ctd align=\"right\">54.30\u003C\u002Ftd>\u003Ctd align=\"right\">0.3939\u003C\u002Ftd>\u003Ctd align=\"right\">0.7433\u003C\u002Ftd>\u003Ctd align=\"right\">0.5212\u003C\u002Ftd>\u003C\u002Ftr>\n  \u003Ctr>\u003Ctd align=\"left\">FlashVSR-Tiny\u003C\u002Ftd>\u003Ctd align=\"right\">27.74\u003C\u002Ftd>\u003Ctd align=\"right\">0.8497\u003C\u002Ftd>\u003Ctd align=\"right\">0.1563\u003C\u002Ftd>\u003Ctd align=\"right\">0.1428\u003C\u002Ftd>\u003Ctd align=\"right\">6.490\u003C\u002Ftd>\u003Ctd align=\"right\">8.275\u003C\u002Ftd>\u003Ctd align=\"right\">70.19\u003C\u002Ftd>\u003Ctd align=\"right\">0.5395\u003C\u002Ftd>\u003Ctd align=\"right\">0.8810\u003C\u002Ftd>\u003Ctd align=\"right\">0.7709\u003C\u002Ftd>\u003C\u002Ftr>\n  \u003Ctr>\u003Ctd align=\"left\">FlashVSR-Full\u003C\u002Ftd>\u003Ctd align=\"right\">27.52\u003C\u002Ftd>\u003Ctd align=\"right\">0.8435\u003C\u002Ftd>\u003Ctd align=\"right\">0.1652\u003C\u002Ftd>\u003Ctd align=\"right\">0.1458\u003C\u002Ftd>\u003Ctd align=\"right\">6.468\u003C\u002Ftd>\u003Ctd align=\"right\">8.316\u003C\u002Ftd>\u003Ctd align=\"right\">71.23\u003C\u002Ftd>\u003Ctd align=\"right\">0.5776\u003C\u002Ftd>\u003Ctd align=\"right\">0.8820\u003C\u002Ftd>\u003Ctd align=\"right\">0.7729\u003C\u002Ftd>\u003C\u002Ftr>\n  \u003Ctr>\u003Ctd align=\"left\">FlashVSR+\u003C\u002Ftd>\u003Ctd align=\"right\">26.68\u003C\u002Ftd>\u003Ctd align=\"right\">0.8379\u003C\u002Ftd>\u003Ctd align=\"right\">0.1652\u003C\u002Ftd>\u003Ctd align=\"right\">0.1473\u003C\u002Ftd>\u003Ctd align=\"right\">6.524\u003C\u002Ftd>\u003Ctd align=\"right\">8.230\u003C\u002Ftd>\u003Ctd align=\"right\">69.83\u003C\u002Ftd>\u003Ctd align=\"right\">0.4947\u003C\u002Ftd>\u003Ctd align=\"right\">0.8775\u003C\u002Ftd>\u003Ctd align=\"right\">0.7851\u003C\u002Ftd>\u003C\u002Ftr>\n  \u003Ctr>\u003Ctd align=\"left\">Ours\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cins>28.67\u003C\u002Fins>\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cins>0.8836\u003C\u002Fins>\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cstrong>0.0793\u003C\u002Fstrong>\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cstrong>0.0858\u003C\u002Fstrong>\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cins>7.413\u003C\u002Fins>\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cins>7.561\u003C\u002Fins>\u003C\u002Ftd>\u003Ctd align=\"right\">66.84\u003C\u002Ftd>\u003Ctd align=\"right\">0.4908\u003C\u002Ftd>\u003Ctd align=\"right\">0.8245\u003C\u002Ftd>\u003Ctd align=\"right\">0.7178\u003C\u002Ftd>\u003C\u002Ftr>\n  \u003Ctr>\u003Ctd align=\"left\">Ours+\u003C\u002Ftd>\u003Ctd align=\"right\">23.52\u003C\u002Ftd>\u003Ctd align=\"right\">0.7525\u003C\u002Ftd>\u003Ctd align=\"right\">0.2402\u003C\u002Ftd>\u003Ctd align=\"right\">0.1902\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cstrong>7.453\u003C\u002Fstrong>\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cstrong>7.520\u003C\u002Fstrong>\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cstrong>77.62\u003C\u002Fstrong>\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cstrong>0.7081\u003C\u002Fstrong>\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cstrong>0.8997\u003C\u002Fstrong>\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cstrong>0.8823\u003C\u002Fstrong>\u003C\u002Ftd>\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\nReference-capable baselines and Ours use the same undegraded GT first frame.\nOurs+ uses a GPT-Image-enhanced version of that frame, with the model and sampler\nunchanged. Methods without a reference interface retain their supported inputs.\n\n### Visual dubbing under replacement audio\n\nThis table uses the 30-clip subset selected post hoc from 44 valid clips by\nOurs+ Sync-C. All pipelines use those same clips and replacement-audio pairs,\nwith the same degraded sources and no additional degradation between stages.\nArrows indicate execution order: restoration first, then dubbing. Since there\nis no paired target-mouth video for replacement speech, this table reports\nsynchronization and no-reference quality metrics only.\n\n\u003Ctable>\n\u003Cthead>\n  \u003Ctr>\u003Cth align=\"left\">Pipeline\u003C\u002Fth>\u003Cth align=\"right\">Sync-C ↑\u003C\u002Fth>\u003Cth align=\"right\">Sync-D ↓\u003C\u002Fth>\u003Cth align=\"right\">MUSIQ ↑\u003C\u002Fth>\u003Cth align=\"right\">CLIP-IQA ↑\u003C\u002Fth>\u003Cth align=\"right\">FasterVQA ↑\u003C\u002Fth>\u003Cth align=\"right\">DOVER ↑\u003C\u002Fth>\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\n  \u003Ctr>\u003Ctd align=\"left\">FlashVSR Full → X-Dub\u003C\u002Ftd>\u003Ctd align=\"right\">6.137\u003C\u002Ftd>\u003Ctd align=\"right\">9.332\u003C\u002Ftd>\u003Ctd align=\"right\">73.25\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cins>0.6582\u003C\u002Fins>\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cins>0.8750\u003C\u002Fins>\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cins>0.7845\u003C\u002Fins>\u003C\u002Ftd>\u003C\u002Ftr>\n  \u003Ctr>\u003Ctd align=\"left\">FlashVSR Full → KeySync\u003C\u002Ftd>\u003Ctd align=\"right\">7.347\u003C\u002Ftd>\u003Ctd align=\"right\">7.840\u003C\u002Ftd>\u003Ctd align=\"right\">68.07\u003C\u002Ftd>\u003Ctd align=\"right\">0.4908\u003C\u002Ftd>\u003Ctd align=\"right\">0.8736\u003C\u002Ftd>\u003Ctd align=\"right\">0.7647\u003C\u002Ftd>\u003C\u002Ftr>\n  \u003Ctr>\u003Ctd align=\"left\">FlashVSR Full → TBDub Teacher\u003C\u002Ftd>\u003Ctd align=\"right\">7.736\u003C\u002Ftd>\u003Ctd align=\"right\">7.543\u003C\u002Ftd>\u003Ctd align=\"right\">70.18\u003C\u002Ftd>\u003Ctd align=\"right\">0.6208\u003C\u002Ftd>\u003Ctd align=\"right\">0.8650\u003C\u002Ftd>\u003Ctd align=\"right\">0.7179\u003C\u002Ftd>\u003C\u002Ftr>\n  \u003Ctr>\u003Ctd align=\"left\">FlashVSR Full → TBDub Student\u003C\u002Ftd>\u003Ctd align=\"right\">7.469\u003C\u002Ftd>\u003Ctd align=\"right\">8.196\u003C\u002Ftd>\u003Ctd align=\"right\">69.72\u003C\u002Ftd>\u003Ctd align=\"right\">0.5834\u003C\u002Ftd>\u003Ctd align=\"right\">0.8641\u003C\u002Ftd>\u003Ctd align=\"right\">0.7309\u003C\u002Ftd>\u003C\u002Ftr>\n  \u003Ctr>\u003Ctd align=\"left\">FlashVSR Full → LipForcing\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cins>7.917\u003C\u002Fins>\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cins>7.186\u003C\u002Fins>\u003C\u002Ftd>\u003Ctd align=\"right\">66.18\u003C\u002Ftd>\u003Ctd align=\"right\">0.4973\u003C\u002Ftd>\u003Ctd align=\"right\">0.8476\u003C\u002Ftd>\u003Ctd align=\"right\">0.6958\u003C\u002Ftd>\u003C\u002Ftr>\n  \u003Ctr>\u003Ctd align=\"left\">SparkVSR → X-Dub\u003C\u002Ftd>\u003Ctd align=\"right\">5.853\u003C\u002Ftd>\u003Ctd align=\"right\">9.409\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cins>74.12\u003C\u002Fins>\u003C\u002Ftd>\u003Ctd align=\"right\">0.6335\u003C\u002Ftd>\u003Ctd align=\"right\">0.8596\u003C\u002Ftd>\u003Ctd align=\"right\">0.7822\u003C\u002Ftd>\u003C\u002Ftr>\n  \u003Ctr>\u003Ctd align=\"left\">SparkVSR → KeySync\u003C\u002Ftd>\u003Ctd align=\"right\">7.175\u003C\u002Ftd>\u003Ctd align=\"right\">7.964\u003C\u002Ftd>\u003Ctd align=\"right\">62.17\u003C\u002Ftd>\u003Ctd align=\"right\">0.4271\u003C\u002Ftd>\u003Ctd align=\"right\">0.8318\u003C\u002Ftd>\u003Ctd align=\"right\">0.7199\u003C\u002Ftd>\u003C\u002Ftr>\n  \u003Ctr>\u003Ctd align=\"left\">SparkVSR → TBDub Teacher\u003C\u002Ftd>\u003Ctd align=\"right\">7.208\u003C\u002Ftd>\u003Ctd align=\"right\">7.817\u003C\u002Ftd>\u003Ctd align=\"right\">67.94\u003C\u002Ftd>\u003Ctd align=\"right\">0.5383\u003C\u002Ftd>\u003Ctd align=\"right\">0.8389\u003C\u002Ftd>\u003Ctd align=\"right\">0.7030\u003C\u002Ftd>\u003C\u002Ftr>\n  \u003Ctr>\u003Ctd align=\"left\">SparkVSR → TBDub Student\u003C\u002Ftd>\u003Ctd align=\"right\">7.090\u003C\u002Ftd>\u003Ctd align=\"right\">8.401\u003C\u002Ftd>\u003Ctd align=\"right\">67.25\u003C\u002Ftd>\u003Ctd align=\"right\">0.4987\u003C\u002Ftd>\u003Ctd align=\"right\">0.8412\u003C\u002Ftd>\u003Ctd align=\"right\">0.7174\u003C\u002Ftd>\u003C\u002Ftr>\n  \u003Ctr>\u003Ctd align=\"left\">SparkVSR → LipForcing\u003C\u002Ftd>\u003Ctd align=\"right\">7.858\u003C\u002Ftd>\u003Ctd align=\"right\">7.224\u003C\u002Ftd>\u003Ctd align=\"right\">60.70\u003C\u002Ftd>\u003Ctd align=\"right\">0.4270\u003C\u002Ftd>\u003Ctd align=\"right\">0.8079\u003C\u002Ftd>\u003Ctd align=\"right\">0.6517\u003C\u002Ftd>\u003C\u002Ftr>\n  \u003Ctr>\u003Ctd align=\"left\">Ours+\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cstrong>8.175\u003C\u002Fstrong>\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cstrong>7.083\u003C\u002Fstrong>\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cstrong>77.56\u003C\u002Fstrong>\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cstrong>0.7070\u003C\u002Fstrong>\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cstrong>0.8958\u003C\u002Fstrong>\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cstrong>0.8709\u003C\u002Fstrong>\u003C\u002Ftd>\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\nSparkVSR and Ours+ share the same GPT-Image-enhanced GT first frame.\nThe two comparisons above use fixed-reference motion conditioning, seed 42,\nsource noise 0.8, ten Euler steps, shift 5, audio guidance 4.0, and reference\nguidance 1.5. These are the paper's evaluation settings; the default CLI uses\nGPEN reference preparation and reference guidance 1.7, as documented below.\n\n### Ablation study\n\nVideo-wise means on the same 30 videos: 15 from MEAD and 15 from HDTF. All\nvariants use the unenhanced GT first frame. X-Dub (adapted) and DirectMotion\ncompare alternative source-conditioning and reference-injection designs,\nrespectively; w\u002Fo Audio removes audio conditioning.\n\n\u003Ctable>\n\u003Cthead>\n  \u003Ctr>\u003Cth align=\"left\">Metric\u003C\u002Fth>\u003Cth align=\"right\">GT\u003C\u002Fth>\u003Cth align=\"right\">Ours\u003C\u002Fth>\u003Cth align=\"right\">w\u002Fo Audio\u003C\u002Fth>\u003Cth align=\"right\">DirectMotion\u003C\u002Fth>\u003Cth align=\"right\">X-Dub (adapted)\u003C\u002Fth>\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\n  \u003Ctr>\u003Ctd align=\"left\">PSNR ↑\u003C\u002Ftd>\u003Ctd align=\"right\">—\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cins>29.10\u003C\u002Fins>\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cstrong>29.36\u003C\u002Fstrong>\u003C\u002Ftd>\u003Ctd align=\"right\">28.24\u003C\u002Ftd>\u003Ctd align=\"right\">26.63\u003C\u002Ftd>\u003C\u002Ftr>\n  \u003Ctr>\u003Ctd align=\"left\">SSIM ↑\u003C\u002Ftd>\u003Ctd align=\"right\">—\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cins>0.8852\u003C\u002Fins>\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cstrong>0.8889\u003C\u002Fstrong>\u003C\u002Ftd>\u003Ctd align=\"right\">0.8600\u003C\u002Ftd>\u003Ctd align=\"right\">0.8415\u003C\u002Ftd>\u003C\u002Ftr>\n  \u003Ctr>\u003Ctd align=\"left\">LPIPS ↓\u003C\u002Ftd>\u003Ctd align=\"right\">—\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cstrong>0.0850\u003C\u002Fstrong>\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cins>0.0856\u003C\u002Fins>\u003C\u002Ftd>\u003Ctd align=\"right\">0.1341\u003C\u002Ftd>\u003Ctd align=\"right\">0.1523\u003C\u002Ftd>\u003C\u002Ftr>\n  \u003Ctr>\u003Ctd align=\"left\">MUSIQ ↑\u003C\u002Ftd>\u003Ctd align=\"right\">63.26\u003C\u002Ftd>\u003Ctd align=\"right\">68.19\u003C\u002Ftd>\u003Ctd align=\"right\">69.09\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cins>69.49\u003C\u002Fins>\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cstrong>70.08\u003C\u002Fstrong>\u003C\u002Ftd>\u003C\u002Ftr>\n  \u003Ctr>\u003Ctd align=\"left\">CLIP-IQA ↑\u003C\u002Ftd>\u003Ctd align=\"right\">0.4971\u003C\u002Ftd>\u003Ctd align=\"right\">0.5591\u003C\u002Ftd>\u003Ctd align=\"right\">0.5709\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cins>0.5807\u003C\u002Fins>\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cstrong>0.6145\u003C\u002Fstrong>\u003C\u002Ftd>\u003C\u002Ftr>\n  \u003Ctr>\u003Ctd align=\"left\">FasterVQA ↑\u003C\u002Ftd>\u003Ctd align=\"right\">0.7880\u003C\u002Ftd>\u003Ctd align=\"right\">0.8352\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cins>0.8432\u003C\u002Fins>\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cstrong>0.8595\u003C\u002Fstrong>\u003C\u002Ftd>\u003Ctd align=\"right\">0.8354\u003C\u002Ftd>\u003C\u002Ftr>\n  \u003Ctr>\u003Ctd align=\"left\">DOVER ↑\u003C\u002Ftd>\u003Ctd align=\"right\">0.6392\u003C\u002Ftd>\u003Ctd align=\"right\">0.7367\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cins>0.7567\u003C\u002Fins>\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cstrong>0.7602\u003C\u002Fstrong>\u003C\u002Ftd>\u003Ctd align=\"right\">0.7232\u003C\u002Ftd>\u003C\u002Ftr>\n  \u003Ctr>\u003Ctd align=\"left\">Sync-C ↑\u003C\u002Ftd>\u003Ctd align=\"right\">7.762\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cstrong>7.621\u003C\u002Fstrong>\u003C\u002Ftd>\u003Ctd align=\"right\">4.283\u003C\u002Ftd>\u003Ctd align=\"right\">7.254\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cins>7.407\u003C\u002Fins>\u003C\u002Ftd>\u003C\u002Ftr>\n  \u003Ctr>\u003Ctd align=\"left\">Sync-D ↓\u003C\u002Ftd>\u003Ctd align=\"right\">7.374\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cstrong>7.560\u003C\u002Fstrong>\u003C\u002Ftd>\u003Ctd align=\"right\">10.524\u003C\u002Ftd>\u003Ctd align=\"right\">\u003Cins>7.875\u003C\u002Fins>\u003C\u002Ftd>\u003Ctd align=\"right\">8.144\u003C\u002Ftd>\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\n## Installation\n\n### Requirements\n\n- Linux and Python 3.10+\n- An NVIDIA CUDA GPU with BF16 support\n- CUDA-compatible PyTorch 2.6+ and torchvision 0.21+\n- FFmpeg \u002F FFprobe and Git\n- A C++ build toolchain and Ninja for GPEN's custom operators\n\nThe current runtime has been smoke-tested on H20. 2× inference needs more GPU\nmemory; `--cpu-offload` trades speed for lower model residency. See\n[validation details](VALIDATION.md) for tested configurations.\n\n### Set up the environment\n\nClone this repository and install a CUDA-compatible PyTorch build for your GPU,\nthen set up the inference package:\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FTaoLiveAIGC\u002FTaoMate-FVSR.git\ncd TaoMate-FVSR\n\npython3.10 -m venv .venv\nsource .venv\u002Fbin\u002Factivate\npython -m pip install --upgrade pip\n\n# Install PyTorch \u002F torchvision for your CUDA version before this step.\npip install -e '.[reference]'\ngit clone https:\u002F\u002Fgithub.com\u002Fyangxy\u002FGPEN.git third_party\u002FGPEN\n```\n\nFollow [GPEN's installation instructions](https:\u002F\u002Fgithub.com\u002Fyangxy\u002FGPEN#usage)\nfor its custom operators. Crop\u002Fcompositing code and its Python dependencies are\nincluded in the package; prepare the DWPose models below for full-scene inputs.\n\n## Model Downloads\n\nOur checkpoint is hosted on Hugging Face. Third-party assets below link directly\nto their original publishers.\n\n| Model | Purpose | Official download | Local path |\n|---|---|---|---|\n| TaoMate-FVSR | Audio-conditioned restoration model | [TaoMate-FVSR.safetensors](https:\u002F\u002Fhuggingface.co\u002FTaoLiveAIGC\u002FTaoMate-FVSR\u002Fresolve\u002Fmain\u002FTaoMate-FVSR.safetensors) | `models\u002FTaoMate-FVSR.safetensors` |\n| TaoMate-FVSR configuration | Inference settings | [config.json](https:\u002F\u002Fhuggingface.co\u002FTaoLiveAIGC\u002FTaoMate-FVSR\u002Fresolve\u002Fmain\u002Fconfig.json) | `models\u002Fconfig.json` |\n| Wan2.2 VAE | Video encoding and decoding | [Wan-AI \u002F Wan2.2 VAE](https:\u002F\u002Fhuggingface.co\u002FWan-AI\u002FWan2.2-TI2V-5B\u002Fresolve\u002Fmain\u002FWan2.2_VAE.pth) | `models\u002FWan2.2_VAE.pth` |\n| HuBERT Large | Audio features | [facebook\u002Fhubert-large-ll60k](https:\u002F\u002Fhuggingface.co\u002Ffacebook\u002Fhubert-large-ll60k) | `models\u002Fhubert\u002F` |\n| GPEN-BFR-512 | First-frame enhancement for 1× | [GPEN-BFR-512.pth](https:\u002F\u002Fpublic-vigen-video.oss-cn-shanghai.aliyuncs.com\u002Frobin\u002Fmodels\u002FGPEN-BFR-512.pth) | `models\u002FGPEN-BFR-512.pth` |\n| GPEN-BFR-1024 | First-frame enhancement for 2× | [pytorch_model.pt — official GPEN-1024](https:\u002F\u002Fwww.modelscope.cn\u002Fmodels\u002Fdamo\u002Fcv_gpen_image-portrait-enhancement-hires\u002Fresolve\u002Fmaster\u002Fpytorch_model.pt) | `models\u002FGPEN-BFR-1024.pth` |\n| RetinaFace-R50 | GPEN face detection and alignment | [RetinaFace-R50.pth](https:\u002F\u002Fpublic-vigen-video.oss-cn-shanghai.aliyuncs.com\u002Frobin\u002Fmodels\u002FRetinaFace-R50.pth) | `models\u002FRetinaFace-R50.pth` |\n| ParseNet | GPEN face mask | [ParseNet-latest.pth](https:\u002F\u002Fpublic-vigen-video.oss-cn-shanghai.aliyuncs.com\u002Frobin\u002Fmodels\u002FParseNet-latest.pth) | `models\u002FParseNet-latest.pth` |\n| YOLOX-L | DWPose person detection | [OpenMMLab YOLOX-L](https:\u002F\u002Fdownload.openmmlab.com\u002Fmmdetection\u002Fv2.0\u002Fyolox\u002Fyolox_l_8x8_300e_coco\u002Fyolox_l_8x8_300e_coco_20211126_140236-d3bd2b23.pth) | `models\u002Fdwpose\u002F` |\n| RTMW-X | DWPose whole-body landmarks | [OpenMMLab RTMW-X](https:\u002F\u002Fdownload.openmmlab.com\u002Fmmpose\u002Fv1\u002Fprojects\u002Frtmw\u002Frtmw-x_simcc-cocktail14_pt-ucoco_270e-384x288-f840f204_20231122.pth) | `models\u002Fdwpose\u002F` |\n\n### Download third-party weights\n\n\u003Cdetails>\n\u003Csummary>\u003Cstrong>Download commands — Wan VAE, HuBERT, GPEN and face components\u003C\u002Fstrong>\u003C\u002Fsummary>\n\n```bash\nmkdir -p models\u002Fhubert\n\nhf download Wan-AI\u002FWan2.2-TI2V-5B Wan2.2_VAE.pth --local-dir models\nhf download facebook\u002Fhubert-large-ll60k \\\n  config.json preprocessor_config.json pytorch_model.bin --local-dir models\u002Fhubert\n\ncurl -fL https:\u002F\u002Fpublic-vigen-video.oss-cn-shanghai.aliyuncs.com\u002Frobin\u002Fmodels\u002FRetinaFace-R50.pth \\\n  -o models\u002FRetinaFace-R50.pth\ncurl -fL https:\u002F\u002Fpublic-vigen-video.oss-cn-shanghai.aliyuncs.com\u002Frobin\u002Fmodels\u002FParseNet-latest.pth \\\n  -o models\u002FParseNet-latest.pth\n```\n\nDownload the GPEN checkpoint matching `--scale` (download both if using both scales):\n\n```bash\nmkdir -p models\n\n# --scale 1: GPEN-BFR-512\ncurl -fL https:\u002F\u002Fpublic-vigen-video.oss-cn-shanghai.aliyuncs.com\u002Frobin\u002Fmodels\u002FGPEN-BFR-512.pth \\\n  -o models\u002FGPEN-BFR-512.pth\n\n# --scale 2: GPEN-BFR-1024, published under the name pytorch_model.pt\ncurl -fL https:\u002F\u002Fwww.modelscope.cn\u002Fmodels\u002Fdamo\u002Fcv_gpen_image-portrait-enhancement-hires\u002Fresolve\u002Fmaster\u002Fpytorch_model.pt \\\n  -o models\u002FGPEN-BFR-1024.pth\n```\n\nFor 2×, the runtime reads **`models\u002FGPEN-BFR-1024.pth`**. Keep this local\nfilename even though the publisher's download URL ends in `pytorch_model.pt`.\nThe 1024 model is linked from the [official GPEN repository](https:\u002F\u002Fgithub.com\u002Fyangxy\u002FGPEN)\nto its ModelScope release; no third-party weights are rehosted here.\n\n\u003C\u002Fdetails>\n\n### TaoMate-FVSR checkpoint\n\nThe checkpoint is [TaoMate-FVSR.safetensors](https:\u002F\u002Fhuggingface.co\u002FTaoLiveAIGC\u002FTaoMate-FVSR\u002Fresolve\u002Fmain\u002FTaoMate-FVSR.safetensors)\nin the public `TaoLiveAIGC\u002FTaoMate-FVSR` model repository. Download the checkpoint\nand its inference configuration together for the local `--model-dir models` flow:\n\n```bash\nhf download TaoLiveAIGC\u002FTaoMate-FVSR \\\n  TaoMate-FVSR.safetensors config.json --local-dir models\n```\n\nThe Hub's [download statistics](https:\u002F\u002Fhuggingface.co\u002Fdocs\u002Fhub\u002Fmodels-download-stats)\ncount requests to `config.json`; weight-only downloads are not counted under the\ncurrent configuration. Both the command above and the CLI's automatic online\ncheckpoint download fetch the weights and configuration. `config.json` documents\nthe inference settings; it does not override CLI arguments. Local checkpoints and\n`--offline` reuse remain unchanged and do not require this configuration file.\n\nOmit `--model-dir` and `--checkpoint` to download our model automatically using\n[`livevsr\u002Fmodel_sources.json`](livevsr\u002Fmodel_sources.json). Wan VAE and HuBERT\ndownload from their official Hugging Face repositories; GPEN assets use the\nofficial URLs above. Use `--model-dir models` for the fully local layout, or\n`--offline` for existing local files and caches. A checkpoint with another local\nfilename can still be supplied with `--checkpoint \u002Fpath\u002Fto\u002Fmodel.safetensors`.\nThe checkpoint includes the audio and reference-conditioning weights; a base\nWan checkpoint or a LoRA alone is not sufficient. No model weights are stored\nin this Git repository.\n\n### Full-scene components\n\nThe default path also needs YOLOX\u002FRTMW; the compositing mask is bundled.\n\n\u003Cdetails>\n\u003Csummary>\u003Cstrong>Required DWPose setup for full-scene inputs\u003C\u002Fstrong>\u003C\u002Fsummary>\n\nInstall MMDetection and MMPose following the\n[MMPose installation guide](https:\u002F\u002Fmmpose.readthedocs.io\u002Fen\u002Flatest\u002Finstallation.html).\nAn independent pose environment is supported through `--pose-python \u002Fpath\u002Fto\u002Fpose-env\u002Fbin\u002Fpython`;\nthis keeps OpenMMLab's PyTorch\u002FMMCV requirements separate from the restoration\nenvironment. The pose environment used for validation has PyTorch 2.5.1+cu121,\nMMCV 2.1.0, MMDetection 3.3.0 and MMPose 1.3.2.\n\nIn that environment, download the upstream weights and resolved configs:\n\n```bash\nmim download mmdet --config yolox_l_8xb8-300e_coco --dest models\u002Fdwpose\nmim download mmpose --config rtmw-x_8xb320-270e_cocktail14-384x288 --dest models\u002Fdwpose\n```\n\nThe original grayscale paste mask is included at\n[`livevsr\u002Fassets\u002Fpaste_face_mask.png`](livevsr\u002Fassets\u002Fpaste_face_mask.png) and in\nthe installed wheel. It is selected automatically, including outside the\ncheckout: no separate mask download or private SDK is needed. Use\n`--blend-mask \u002Fpath\u002Fto\u002Fcustom.png` only to override it. The runtime implements\nhistogram matching and blending directly and uses the bundled mask unchanged.\n`--pose-model-dir` overrides the YOLOX\u002FRTMW directory. DWPose configs and weights\nmust still be prepared locally even when restoration weights download automatically.\n\n\u003C\u002Fdetails>\n\n## Inference\n\nPass the **original full-scene video**. The runtime extracts the head with\nDWPose, restores it, and pastes it into the original scene at **25 fps**, with\nthe selected audio. An ordered 25-fps PNG directory also works with `--audio`.\n\n### Restore a video\n\n```bash\npython infer.py --input inputs\u002Fvideo.mp4 --output outputs\u002Frestored.mp4 \\\n  --model-dir models --offline --gpen-repo third_party\u002FGPEN --scale 1\n```\n\nThis command uses only the local weights listed above. To download assets\nautomatically instead, omit `--model-dir models --offline`. After installation,\n`livevsr` is equivalent to `python infer.py` and can run outside the checkout.\nUse the same entry point with `--scale 1` (512 inference) or `--scale 2`\n(512→1024 inference→512). With `--scale 2`, the first crop is resized to 1024,\nenhanced once by **GPEN-BFR-1024**, and retained at 1024 for reference encoding;\nit is not a resized GPEN-BFR-512 result. Generated frames are reduced with area\nresampling **before** histogram matching and mask blending. Neither option\nenlarges the background or changes the final scene dimensions.\n\n\u003Cdetails>\n\u003Csummary>\u003Cstrong>Separate pose environments and already-cropped inputs\u003C\u002Fstrong>\u003C\u002Fsummary>\n\nAdd `--pose-python \u002Fpath\u002Fto\u002Fpose-env\u002Fbin\u002Fpython` when using a separate pose\nenvironment. DWPose uses CPU by default; `--pose-device cuda:0` enables GPU\npreprocessing, which finishes before the restoration model is loaded.\n\nFor an already-cropped **512×512** input, add `--cropped`. This skips DWPose and\nscene paste-back and returns the restored 512×512 face video. It also reduces\n2× model output back to 512; no scene models or paste mask are needed.\n\n\u003C\u002Fdetails>\n\n### Visual dubbing with target audio\n\n```bash\npython infer.py --input inputs\u002Fvideo.mp4 --audio inputs\u002Ftarget.wav \\\n  --output outputs\u002Fdubbed.mp4 --model-dir models --gpen-repo third_party\u002FGPEN\n```\n\nWithout `--audio`, the original audio is used. Target audio is padded or trimmed\nto the processed video duration.\n\n### Reference options\n\n| Input | Reference preparation |\n|---|---|\n| Default | Enhance the first input crop once: **GPEN-BFR-512 for 1×; GPEN-BFR-1024 for 2×** |\n| `--edited-reference inputs\u002Fedited_first_crop.png` | Apply the scale-matched GPEN model to an externally edited first crop, such as a GPT-Image edit |\n| `--reference inputs\u002Freference.png` | Use the finished model-crop reference directly; skip GPEN, but retain DWPose for full-scene inputs |\n\nFor example, use a finished reference with replacement audio:\n\n```bash\npython infer.py --input inputs\u002Fface.mp4 --audio inputs\u002Ftarget.wav \\\n  --cropped --reference inputs\u002Freference.png --output outputs\u002Fdubbed.mp4 --model-dir models\n```\n\nReferences should preserve the first crop's identity, pose, mouth shape, and\nframing. `--reference` and `--edited-reference` are mutually exclusive. Image\nediting is performed externally; this package does not call an image-editing API.\n\n### Main settings\n\n| Option | Default | Description |\n|---|---:|---|\n| `--scale` | 1 | Model scale: 1 or 2; selects GPEN-512 or GPEN-1024; return to 512 before paste |\n| `--cropped` | off | Skip full-scene crop\u002Fpaste for prepared 512×512 inputs |\n| `--steps` | 10 | Euler denoising steps |\n| `--noise` | 0.8 | Initial latent noise mixture |\n| `--audio-cfg` | 4.0 | Audio guidance |\n| `--ref-cfg` | 1.7 | Joint reference\u002Fhistory guidance |\n| `--gpen-passes` | 1 | GPEN generator passes; 2 is optional |\n| `--seed` | 42 | Random seed |\n\nRun `python infer.py --help` for all options. Windowing, reference injection,\nmemory handling, and full-scene integration are documented in the\n[technical guide](docs\u002Finference.md). Inputs are processed locally and are not uploaded.\n\n## Repository Layout\n\n```text\ninfer.py                    Command-line entry point\nlivevsr\u002F                    Inference runtime and model definitions\nlivevsr\u002Fpose.py              YOLOX\u002FRTMW inference adapter\nlivevsr\u002Fscene.py             Native-frame crop and RGB512 paste orchestration\nlivevsr\u002Fmodels\u002Faudio_conditioning.py  Temporal audio projection and attention\nlivevsr\u002Fassets\u002F              Bundled paste mask\nlivevsr\u002Fmodel_sources.json   Hugging Face checkpoint and official component URLs\ndocs\u002Finference.md           Advanced settings and scene integration\ntests\u002F                      Unit tests\n```\n\nThe Python package and installed command remain named `livevsr`.\n\n## Citation\n\nIf you find TaoMate-FVSR useful in your research, please cite:\n\n```bibtex\n@misc{li2026taomatefvsr,\n  title={TaoMate-FVSR: Audio-Guided Facial Video Restoration},\n  author={Xinyang Li and Zeran Xu and Qijun Gan and Chenwei Zhang and Meiguang Jin and Junfeng Ma},\n  year={2026},\n  eprint={2611.03393},\n  archivePrefix={arXiv},\n  url={https:\u002F\u002Farxiv.org\u002Fabs\u002F2611.03393}\n}\n```\n\n## Acknowledgments\n\nWe thank the authors and maintainers of [Wan2.2](https:\u002F\u002Fgithub.com\u002FWan-Video\u002FWan2.2),\n[DiffSynth-Studio](https:\u002F\u002Fgithub.com\u002Fmodelscope\u002FDiffSynth-Studio), and\n[X-Dub](https:\u002F\u002Fgithub.com\u002FKlingAIResearch\u002FX-Dub) for their video-model and\naudio-conditioning implementations; [GPEN](https:\u002F\u002Fgithub.com\u002Fyangxy\u002FGPEN),\n[RetinaFace](https:\u002F\u002Fgithub.com\u002Fbiubug6\u002FPytorch_Retinaface), and ParseNet (distributed\nwith GPEN) for reference-frame preparation; and\n[HuBERT](https:\u002F\u002Fhuggingface.co\u002Ffacebook\u002Fhubert-large-ll60k) for audio representations.\nWe thank [DWPose](https:\u002F\u002Fgithub.com\u002FIDEA-Research\u002FDWPose),\n[MMDetection](https:\u002F\u002Fgithub.com\u002Fopen-mmlab\u002Fmmdetection), and\n[MMPose](https:\u002F\u002Fgithub.com\u002Fopen-mmlab\u002Fmmpose) for person detection and landmark estimation.\n","TaoMate-FVSR 是一个面向人脸视频的音频引导式修复与视觉配音开源工具。它利用原始或替换语音音频作为条件，结合稀疏视觉参考帧（如首帧）和历史生成帧，实现低质量人脸视频的超分辨率重建、细节增强及唇形同步的视觉重配音；技术上融合DWPose关键点裁剪、GPEN人脸增强、多尺度（1×\u002F2×）推理与全场景贴回合成流程，并支持ComfyUI可视化工作流集成。适用于短视频修复、老旧访谈资料增强、AI口型同步配音、虚拟人内容生成等对音画一致性要求较高的AIGC应用场景。",2,"2026-11-24 04:40:36","CREATED_QUERY"]