{"id":33505,"date":"2025-07-25T06:51:34","date_gmt":"2025-07-24T22:51:34","guid":{"rendered":"https:\/\/www.kdjingpai.com\/?p=33505"},"modified":"2025-07-25T06:51:34","modified_gmt":"2025-07-24T22:51:34","slug":"wan21-shipingongzuoai","status":"publish","type":"post","link":"https:\/\/www.kdjingpai.com\/en\/wan21-shipingongzuoai\/","title":{"rendered":"wan2.1 \u89c6\u9891\u5de5\u4f5c\u6d41\u642d\u5efa\u6307\u5357"},"content":{"rendered":"<p>\u968f\u7740\u00a0<code>wan2.1<\/code>\u00a0\u7b49\u89c6\u9891\u6a21\u578b\u7684\u51fa\u73b0\uff0c\u672c\u5730\u5316\u89c6\u9891\u751f\u6210\u7684\u6280\u672f\u751f\u6001\u6b63\u9010\u6b65\u8d70\u5411\u6210\u719f\u3002\u4ee5\u5f80\uff0c\u9ad8\u6027\u80fd\u786c\u4ef6\u662f\u642d\u5efa\u89c6\u9891\u5de5\u4f5c\u6d41\u7684\u4e3b\u8981\u969c\u788d\uff0c\u4f46\u968f\u7740\u4e91\u7aef\u8ba1\u7b97\u8d44\u6e90\u7684\u666e\u53ca\u548c\u6a21\u578b\u4f18\u5316\u6280\u672f\u7684\u53d1\u5c55\uff0c\u73b0\u5728\u5373\u4fbf\u662f\u6ca1\u6709\u9876\u7ea7\u663e\u5361\u7684\u7528\u6237\uff0c\u4e5f\u80fd\u591f\u901a\u8fc7\u79df\u7528\u4e91\u7aef\u00a0<code>4090<\/code>\u00a0\u663e\u5361\u7b49\u65b9\u5f0f\uff0c\u6df1\u5165\u5b66\u4e60\u548c\u63a2\u7d22\u00a0<code>wan2.1<\/code>\u00a0\u89c6\u9891\u5de5\u4f5c\u6d41\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/07\/66c8eaddda03575.png\" alt=\"\" \/><\/p>\n<p>\u5728\u00a0<code><a href=\"https:\/\/www.kdjingpai.com\/comfyui\/\">ComfyUI<\/a><\/code>\u00a0\u7684\u5b98\u65b9\u57fa\u7840\u5de5\u4f5c\u6d41\u4e2d\uff0c<code>wan2.1<\/code>\u00a0\u7684\u4f7f\u7528\u4e0e\u4f20\u7edf\u6587\u751f\u56fe\u6d41\u7a0b\u76f8\u4f3c\uff0c\u4f46\u589e\u52a0\u4e86\u4e00\u4e2a\u5173\u952e\u8282\u70b9\u00a0<code>model sampling sd3<\/code>\u3002\u8be5\u8282\u70b9\u7528\u4e8e\u8c03\u6574\u00a0<code>UNet<\/code>\u00a0\u7684\u201c\u5185\u90e8\u4f4d\u79fb\u201d (internal shift) \u65f6\u95f4\u6b65\u4f4d\u7f6e\uff0c\u5176\u9ed8\u8ba4\u63a8\u8350\u503c\u4e3a 8\u3002\u8fd9\u4e2a\u53c2\u6570\u80fd\u591f\u5f71\u54cd\u6a21\u578b\u5bf9\u63d0\u793a\u8bcd\u7684\u7406\u89e3\u548c\u63a7\u5236\u529b\uff0c\u4ece\u800c\u4f18\u5316\u751f\u6210\u753b\u9762\u7684\u7ec6\u8282\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/07\/681a96f05becd4a.png\" alt=\"\" \/><\/p>\n<p>\u8981\u8fd0\u884c\u00a0<code>wan2.1<\/code>\u00a0\u6a21\u578b\uff0c\u5fc5\u987b\u914d\u5907\u5bf9\u5e94\u7684\u00a0<code>unmt5<\/code>\u00a0\u6587\u672c\u7f16\u7801\u5668\u548c\u00a0<code>wan2.1<\/code>\u00a0VAE (\u53d8\u5206\u81ea\u7f16\u7801\u5668)\u3002VAE \u7531\u7f16\u7801\u5668 (Encoder) \u548c\u89e3\u7801\u5668 (Decoder) \u4e24\u90e8\u5206\u7ec4\u6210\u3002\u7f16\u7801\u5668\u8d1f\u8d23\u5c06\u8f93\u5165\u56fe\u50cf\u538b\u7f29\u5230\u4f4e\u7ef4\u7684\u6f5c\u5728\u7a7a\u95f4\uff0c\u800c\u89e3\u7801\u5668\u5219\u4ece\u6f5c\u5728\u7a7a\u95f4\u4e2d\u91c7\u6837\u5e76\u5c06\u5176\u8fd8\u539f\u4e3a\u56fe\u50cf\u3002<\/p>\n<p>\u6587\u672c\u7f16\u7801\u5668 (Text Encoder) \u7684\u4f5c\u7528\u5219\u662f\u5c06\u8f93\u5165\u7684\u6587\u672c\u63d0\u793a\u8bcd\uff0c\u8f6c\u5316\u4e3a\u6a21\u578b\u80fd\u591f\u7406\u89e3\u7684\u7279\u5f81\u5411\u91cf\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u4e3b\u8981\u5305\u62ec\u4e24\u4e2a\u6b65\u9aa4\uff1a<\/p>\n<ol>\n<li>\u63d0\u53d6\u6587\u672c\u7684\u8bed\u4e49\u4fe1\u606f\u7279\u5f81\uff0c\u4f8b\u5982\u201c1\u4e2a\u5973\u5b69\u201d\u3002<\/li>\n<li>\u5c06\u8fd9\u4e9b\u8bed\u4e49\u4fe1\u606f\u8f6c\u5316\u4e3a\u9ad8\u7ef4\u7684\u5d4c\u5165\u5411\u91cf (embedding vector)\u3002<\/li>\n<\/ol>\n<p>\u751f\u6210\u6a21\u578b (\u5982 UNet) \u4f9d\u636e\u8fd9\u4e9b\u5d4c\u5165\u5411\u91cf\uff0c\u5728\u6f5c\u5728\u7a7a\u95f4\u4e2d\u751f\u6210\u7b26\u5408\u6587\u672c\u63cf\u8ff0\u7684\u56fe\u50cf\u7279\u5f81\uff0c\u4ece\u800c\u51b3\u5b9a\u753b\u9762\u4e2d\u7269\u4f53\u7684\u79cd\u7c7b\u3001\u4f4d\u7f6e\u3001\u989c\u8272\u548c\u59ff\u6001\u3002<\/p>\n<p>\u4e0e\u9759\u6001\u7684\u6587\u751f\u56fe\u5de5\u4f5c\u6d41\u4e0d\u540c\uff0c\u89c6\u9891\u751f\u6210\u6d41\u7a0b\u7684\u6700\u540e\u4e00\u6b65\u662f\u00a0<code>Video Combine<\/code>\u00a0(\u89c6\u9891\u5408\u6210) \u8282\u70b9\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/07\/d83bad8e3c50353.png\" alt=\"\" \/><\/p>\n<p>\u8be5\u8282\u70b9\u8d1f\u8d23\u5c06\u56fe\u50cf\u5e8f\u5217\u6574\u5408\u6210\u89c6\u9891\u6216\u52a8\u56fe\u6587\u4ef6\u3002\u5176\u4e3b\u8981\u53c2\u6570\u5305\u62ec\uff1a<\/p>\n<ul>\n<li><strong>frame_rate (\u5e27\u7387):<\/strong>\u00a0\u51b3\u5b9a\u89c6\u9891\u64ad\u653e\u7684\u6d41\u7545\u5ea6\uff0c\u4f8b\u5982\u8bbe\u7f6e\u4e3a\u00a0<code>8<\/code>\uff0c\u8868\u793a\u6bcf\u79d2\u64ad\u653e 8 \u5e27\u3002<\/li>\n<li><strong>loop_count (\u5faa\u73af\u6b21\u6570):<\/strong>\u00a0<code>0<\/code>\u00a0\u4ee3\u8868\u65e0\u9650\u5faa\u73af\uff0c\u9002\u7528\u4e8e GIF \u52a8\u56fe\uff1b<code>1<\/code>\u00a0\u5219\u4ee3\u8868\u64ad\u653e\u4e00\u6b21\u540e\u505c\u6b62\u3002<\/li>\n<li><strong>filename_prefix (\u6587\u4ef6\u540d\u524d\u7f00):<\/strong>\u00a0\u4e3a\u8f93\u51fa\u6587\u4ef6\u8bbe\u5b9a\u524d\u7f00\uff0c\u5982\u00a0<code>AnimateDiff<\/code>\uff0c\u4fbf\u4e8e\u7ba1\u7406\u3002<\/li>\n<li><strong>format (\u8f93\u51fa\u683c\u5f0f):<\/strong>\u00a0\u53ef\u9009\u62e9\u00a0<code>image\/gif<\/code>\u00a0\u8f93\u51fa\u52a8\u56fe\uff0c\u6216\u00a0<code>video\/mp4<\/code>\u00a0\u7b49\u89c6\u9891\u683c\u5f0f\u3002<\/li>\n<li><strong>pingpong (\u5f80\u8fd4\u5faa\u73af):<\/strong>\u00a0<code>false<\/code>\u00a0\u4e3a\u5e38\u89c4\u987a\u5e8f\u64ad\u653e\uff0c<code>true<\/code>\u00a0\u5219\u5b9e\u73b0\u4ece\u5934\u5230\u5c3e\u518d\u5230\u5934\u7684\u5f80\u8fd4\u64ad\u653e\u3002<\/li>\n<li><strong>save_output (\u4fdd\u5b58\u8f93\u51fa):<\/strong>\u00a0\u8bbe\u7f6e\u4e3a\u00a0<code>true<\/code>\u00a0\u65f6\uff0c\u6267\u884c\u8282\u70b9\u540e\u4f1a\u81ea\u52a8\u4fdd\u5b58\u6587\u4ef6\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/07\/6ec795950fd5e3b.png\" alt=\"\" \/><\/p>\n<p>\u5b98\u65b9\u5de5\u4f5c\u6d41\u4ec5\u5b9e\u73b0\u4e86\u57fa\u7840\u529f\u80fd\uff0c\u5728\u663e\u5b58\u4f18\u5316\u3001\u89c6\u9891\u589e\u5f3a\u7b49\u65b9\u9762\u5b58\u5728\u5c40\u9650\u3002\u4e3a\u6b64\uff0c\u5f00\u53d1\u8005\u201cK\u795e\u201d\u521b\u5efa\u4e86\u00a0<code>wanvideo wrapper<\/code>\u00a0\u5de5\u5177\u5305\uff0c\u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u4f18\u5316\u8282\u70b9\u3002<\/p>\n<h3>\u4f18\u5316\u7684\u6838\u5fc3\uff1awanvideo wrapper<\/h3>\n<h4>wanvideo model loader<\/h4>\n<p><code>wanvideo model loader<\/code>\u00a0\u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684\u6a21\u578b\u52a0\u8f7d\u8282\u70b9\uff0c\u5b83\u4e0d\u4ec5\u53ef\u4ee5\u52a0\u8f7d\u00a0<code>wanvideo<\/code>\u00a0\u6a21\u578b\uff0c\u8fd8\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u4f18\u5316\u9009\u9879\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/07\/bfe6a03591bc5cc.png\" alt=\"\" \/><\/p>\n<ul>\n<li><strong>\u6a21\u578b\u7cbe\u5ea6 (Base Precision):<\/strong>\u00a0\u7528\u6237\u53ef\u4ee5\u9009\u62e9\u4e0d\u540c\u7684\u6a21\u578b\u7cbe\u5ea6\uff0c\u5982\u00a0<code>fp32<\/code>\u3001<code>bf16<\/code>\u3001<code>fp16<\/code>\u3002<code>fp32<\/code>\u00a0(32\u4f4d\u6d6e\u70b9\u6570) \u7cbe\u5ea6\u6700\u9ad8\uff0c\u4f46\u663e\u5b58\u5360\u7528\u548c\u8ba1\u7b97\u5f00\u9500\u6700\u5927\uff1b<code>fp16<\/code>\u00a0(16\u4f4d\u6d6e\u70b9\u6570) \u5219\u80fd\u663e\u8457\u964d\u4f4e\u663e\u5b58\u5360\u7528\u5e76\u63d0\u5347\u901f\u5ea6\uff0c\u4f46\u53ef\u80fd\u727a\u7272\u90e8\u5206\u7cbe\u5ea6\u3002<\/li>\n<li><strong>\u91cf\u5316 (Quantization):<\/strong>\u00a0\u901a\u8fc7\u00a0<code>quantization<\/code>\u00a0\u9009\u9879\uff0c\u53ef\u4ee5\u5c06\u6a21\u578b\u91cf\u5316\u4ee5\u8fdb\u4e00\u6b65\u538b\u7f29\u3002\u4f8b\u5982\uff0c<code>fp8_e4m3fn<\/code>\u00a0\u683c\u5f0f\u4f7f\u75288\u4f4d\u6d6e\u70b9\u6570\u8868\u793a\uff0c\u6781\u5927\u5730\u964d\u4f4e\u4e86\u663e\u5b58\u9700\u6c42\uff0c\u5c24\u5176\u9002\u5408\u663e\u5b58\u6709\u9650\u7684\u8bbe\u5907\uff0c\u4f46\u901a\u5e38\u9700\u8981\u6a21\u578b\u9884\u5148\u652f\u6301\u91cf\u5316\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/07\/67ff8d62e6c9883.png\" alt=\"\" \/><\/p>\n<ul>\n<li><strong>\u8bbe\u5907\u52a0\u8f7d (Load Device):<\/strong>\u00a0<code>main device<\/code>\u00a0\u901a\u5e38\u6307\u4ee3 GPU\uff0c\u800c\u00a0<code>offload device<\/code>\u00a0\u6307\u4ee3 CPU\u3002\u6b64\u529f\u80fd\u5141\u8bb8\u5c06\u6a21\u578b\u90e8\u5206\u7ec4\u4ef6\u5378\u8f7d\u5230 CPU\uff0c\u4ee5\u8282\u7ea6\u5b9d\u8d35\u7684\u663e\u5b58\u8d44\u6e90\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/07\/bb391ee5b34b1fa.png\" alt=\"\" \/><\/p>\n<ul>\n<li><strong>\u6ce8\u610f\u529b\u673a\u5236 (Attention Mode):<\/strong>\u00a0\u6b64\u9009\u9879\u5141\u8bb8\u7528\u6237\u9009\u62e9\u4e0d\u540c\u7684\u6ce8\u610f\u529b\u673a\u5236\u5b9e\u73b0\u65b9\u5f0f\uff0c\u4ee5\u5e73\u8861\u6027\u80fd\u548c\u663e\u5b58\u3002\u6ce8\u610f\u529b\u673a\u5236\u662fTransformer\u6a21\u578b\u7684\u6838\u5fc3\uff0c\u5b83\u51b3\u5b9a\u4e86\u6a21\u578b\u5728\u751f\u6210\u5185\u5bb9\u65f6\u5982\u4f55\u201c\u5173\u6ce8\u201d\u8f93\u5165\u4fe1\u606f\u7684\u76f8\u5173\u90e8\u5206\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/07\/b242ee72fa71a00.png\" alt=\"\" \/><\/p>\n<p>\u8be5\u52a0\u8f7d\u5668\u8fd8\u63d0\u4f9b\u4e86\u591a\u4e2a\u8f93\u5165\u63a5\u53e3\u7528\u4e8e\u9ad8\u7ea7\u4f18\u5316\uff1a<\/p>\n<ul>\n<li><strong>\u7f16\u8bd1\u53c2\u6570 (compile args):<\/strong>\u00a0\u6b64\u63a5\u53e3\u53ef\u7528\u4e8e\u914d\u7f6e\u00a0<code>torch.compile<\/code>\u00a0\u6216\u00a0<code>xformers<\/code>\u00a0\u7b49\u7f16\u8bd1\u4f18\u5316\u3002<code>xformers<\/code>\u00a0\u662f\u4e00\u4e2a\u4e13\u95e8\u7528\u4e8e\u4f18\u5316 <a href=\"https:\/\/www.kdjingpai.com\/transformer\/\">Transformer<\/a> \u8ba1\u7b97\u7684\u5e93\uff0c\u800c\u00a0<code>torch.compile<\/code>\u00a0\u662f PyTorch 2.0 \u5f15\u5165\u7684\u5373\u65f6\u7f16\u8bd1\u5668\u3002\u5982\u679c\u73af\u5883\u4e2d\u5b89\u88c5\u4e86\u00a0<code>Triton<\/code>\u00a0\u7f16\u8bd1\u5668\uff0c\u53ef\u4ee5\u83b7\u5f97\u7ea630%\u7684\u901f\u5ea6\u63d0\u5347\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/07\/5c7a7f80c5350c4.png\" alt=\"\" \/><\/p>\n<ul>\n<li><strong>\u5757\u4ea4\u6362\u53c2\u6570 (block swap args):<\/strong>\u00a0\u5f53\u663e\u5b58\u4e0d\u8db3\u4ee5\u5bb9\u7eb3\u6574\u4e2a\u6a21\u578b\u65f6\uff0c\u6b64\u529f\u80fd\u5141\u8bb8\u5c06\u6a21\u578b\u7684\u90e8\u5206\u201c\u5757\u201d (blocks) \u6682\u5b58\u5230 CPU\u3002\u4f8b\u5982\uff0c\u8bbe\u7f6e\u00a0<code>blocks to swap<\/code>\u00a0\u4e3a20\uff0c\u610f\u5473\u7740\u5c06\u6a21\u578b\u768420\u4e2a\u5757\u79fb\u51faGPU\uff0c\u5728\u9700\u8981\u65f6\u518d\u901a\u8fc7\u975e\u963b\u585e\u65b9\u5f0f\u4f20\u56de\u3002\u8f6c\u79fb\u7684\u5757\u8d8a\u591a\uff0c\u663e\u5b58\u8282\u7701\u8d8a\u660e\u663e\uff0c\u4f46\u6570\u636e\u6765\u56de\u4f20\u8f93\u4f1a\u727a\u7272\u4e00\u5b9a\u7684\u751f\u6210\u901f\u5ea6\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/07\/ea6a9c00cb7951d.png\" alt=\"\" \/><\/p>\n<ul>\n<li><strong>LoRA \u52a0\u8f7d:<\/strong>\u00a0\u6b64\u63a5\u53e3\u53ef\u8fde\u63a5\u00a0<code>wanvideo lora select<\/code>\u00a0\u8282\u70b9\uff0c\u7528\u4e8e\u52a0\u8f7d\u5404\u7c7b LoRA \u6a21\u578b\uff0c\u4f8b\u5982\u7528\u4e8e\u52a0\u901f\u6587\u751f\u89c6\u9891\u7684\u00a0<code>light x2v t2v<\/code>\u00a0LoRA\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/07\/f99972a8648d080.png\" alt=\"\" \/><\/p>\n<ul>\n<li><strong>Multitalk \u529f\u80fd\u6a21\u578b:<\/strong>\u00a0\u8be5\u8282\u70b9\u8fd8\u652f\u6301\u52a0\u8f7d\u00a0<code>Multitalk<\/code>\u3001<code>Fantasytalking<\/code>\u00a0\u7b49\u6570\u5b57\u4eba\u6a21\u578b\uff0c\u8fd9\u4e9b\u90fd\u662f\u7531\u5f00\u53d1\u8005\u6574\u5408\u8fdb\u00a0<code>wanvideo wrapper<\/code>\u00a0\u7684\u65b0\u5174\u5f00\u6e90\u9879\u76ee\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/07\/5bc0fd38c004f4b.png\" alt=\"\" \/><\/p>\n<h4>wanvideo sampler<\/h4>\n<p><code>wanvideo sampler<\/code>\u00a0\u662f\u57fa\u4e8e\u00a0<code>wan2.1<\/code>\u00a0\u6a21\u578b\u5b9a\u5236\u7684\u89c6\u9891\u91c7\u6837\u8282\u70b9\uff0c\u662f\u751f\u6210\u89c6\u9891\u5e8f\u5217\u5e27\u7684\u6838\u5fc3\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/07\/f0994ef2298eb1e.png\" alt=\"\" \/><\/p>\n<p>\u5176\u4e3b\u8981\u8f93\u5165\u5305\u62ec\uff1a<\/p>\n<ul>\n<li><strong>model:<\/strong>\u00a0\u8fde\u63a5\u6765\u81ea\u00a0<code>wanvideo model loader<\/code>\u00a0\u7684\u6a21\u578b\u3002<\/li>\n<li><strong>text embeds (\u6587\u672c\u5d4c\u5165):<\/strong>\u00a0\u8fde\u63a5\u00a0<code>wanvideo text encode<\/code>\u00a0\u7684\u8f93\u51fa\uff0c\u5c06\u4f7f\u7528\u00a0<code>unmt5<\/code>\u00a0\u7f16\u7801\u7684\u6587\u672c\u5411\u91cf\u4f20\u5165\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/07\/c32a9a9f4572061.png\" alt=\"\" \/><\/p>\n<ul>\n<li><strong>image embeds (\u56fe\u50cf\u5d4c\u5165):<\/strong>\u00a0\u7528\u4e8e\u5b9e\u73b0\u56fe\u50cf\u5230\u89c6\u9891\u7684\u751f\u6210\u3002\u8be5\u5de5\u4f5c\u6d41\u901a\u5e38\u5148\u7528\u00a0<code>wanvideo clipvision encode<\/code>\u00a0\u63d0\u53d6\u53c2\u8003\u56fe\u7684\u00a0<code>CLIP<\/code>\u00a0\u7279\u5f81\uff0c\u518d\u901a\u8fc7\u00a0<code>wanvideo image to video encode<\/code>\u00a0\u8282\u70b9\u5229\u7528 VAE \u5c06\u56fe\u50cf\u7279\u5f81\u7f16\u7801\u4e3a\u6a21\u578b\u53ef\u7528\u7684\u5411\u91cf\u8868\u793a\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/07\/acd1c292370e06d.png\" alt=\"\" \/><\/p>\n<p>\u8fd9\u4e2a\u8fc7\u7a0b\u7684\u672c\u8d28\u662f\uff0c\u9996\u5148\u5c06\u9759\u6001\u56fe\u50cf\u7684\u89c6\u89c9\u548c\u8bed\u4e49\u4fe1\u606f\u8f6c\u5316\u4e3a\u7279\u5f81\u5411\u91cf\uff0c\u7136\u540e\u91c7\u6837\u5668\u5c06\u8fd9\u4e9b\u7279\u5f81\u4f5c\u4e3a\u5f15\u5bfc\u6761\u4ef6\uff0c\u4ece\u566a\u58f0\u5f00\u59cb\u8fed\u4ee3\u53bb\u566a\uff0c\u6700\u7ec8\u751f\u6210\u5185\u5bb9\u548c\u98ce\u683c\u4e0e\u53c2\u8003\u56fe\u4e00\u81f4\u7684\u8fde\u7eed\u89c6\u9891\u5e27\u3002\u901a\u8fc7\u8c03\u6574\u6743\u91cd\u3001\u566a\u58f0\u548c\u5e27\u6570\u7b49\u53c2\u6570\uff0c\u53ef\u4ee5\u7cbe\u786e\u63a7\u5236\u53c2\u8003\u56fe\u7684\u5f71\u54cd\u529b\u4ee5\u53ca\u89c6\u9891\u7684\u591a\u6837\u6027\u3002<\/p>\n<ul>\n<li><strong>samples:<\/strong>\u00a0\u6b64\u8f93\u5165\u7aef\u7406\u8bba\u4e0a\u53ef\u4ee5\u63a5\u6536\u4e0a\u4e00\u9636\u6bb5\u7684\u91c7\u6837\u7ed3\u679c\uff0c\u4f5c\u4e3a\u6269\u6563\u8fed\u4ee3\u7684\u8d77\u70b9\uff0c\u4f46\u5176\u00a0<code>latent<\/code>\u00a0\u683c\u5f0f\u4e0e\u6807\u51c6\u6587\u751f\u56fe\u7684\u00a0<code>latent<\/code>\u00a0\u4e0d\u517c\u5bb9\u3002<\/li>\n<li><strong>feta args:<\/strong>\u00a0\u7528\u4e8e\u8fde\u63a5\u89c6\u9891\u589e\u5f3a\u8282\u70b9\uff0c\u63d0\u5347\u89c6\u9891\u7ec6\u8282\u3001\u5e27\u5bf9\u9f50\u548c\u65f6\u5e8f\u7a33\u5b9a\u6027\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/07\/8c39be8093d0ad3.png\" alt=\"\" \/><\/p>\n<ul>\n<li><strong>wanvideo context options:<\/strong>\u00a0\u8fd9\u662f\u786e\u4fdd\u89c6\u9891\u5e27\u95f4\u8fde\u8d2f\u6027\u7684\u5173\u952e\u63a7\u5236\u5668\u3002\u5b83\u901a\u8fc7\u63a7\u5236\u6a21\u578b\u5728\u751f\u6210\u5f53\u524d\u5e27\u65f6\u53c2\u8003\u4e0a\u4e0b\u6587\u4fe1\u606f\u7684\u65b9\u5f0f\uff0c\u89e3\u51b3\u4e86\u72ec\u7acb\u5e27\u751f\u6210\u5bfc\u81f4\u7684\u753b\u9762\u65ad\u5c42\u548c\u52a8\u4f5c\u4e0d\u81ea\u7136\u7684\u95ee\u9898\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/07\/eec23e1789aee78.png\" alt=\"\" \/><\/p>\n<p>\u4e3b\u8981\u53c2\u6570\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li><strong>context_frames (\u4e0a\u4e0b\u6587\u5e27\u6570):<\/strong>\u00a0\u5b9a\u4e49\u6a21\u578b\u4e00\u6b21\u6027\u53c2\u8003\u7684\u76f8\u90bb\u5e27\u6570\u91cf\u3002\u6570\u503c\u8d8a\u5927\uff0c\u8fd0\u52a8\u548c\u573a\u666f\u53d8\u5316\u7684\u8fde\u8d2f\u6027\u8d8a\u597d\uff0c\u4f46\u8ba1\u7b97\u91cf\u4e5f\u76f8\u5e94\u589e\u52a0\u3002<\/li>\n<li><strong>context_stride (\u4e0a\u4e0b\u6587\u6b65\u957f):<\/strong>\u00a0\u63a7\u5236\u91c7\u6837\u53c2\u8003\u5e27\u7684\u95f4\u9694\u3002\u6b65\u957f\u8d8a\u5c0f\uff0c\u53c2\u8003\u8d8a\u5bc6\u96c6\uff0c\u7ec6\u8282\u8fc7\u6e21\u66f4\u5e73\u6ed1\uff1b\u6b65\u957f\u8d8a\u5927\uff0c\u8ba1\u7b97\u6548\u7387\u66f4\u9ad8\u3002<\/li>\n<li><strong>context_overlap (\u4e0a\u4e0b\u6587\u91cd\u53e0):<\/strong>\u00a0\u5b9a\u4e49\u76f8\u90bb\u53c2\u8003\u7a97\u53e3\u4e4b\u95f4\u7684\u91cd\u53e0\u5e27\u6570\u3002\u66f4\u9ad8\u7684\u91cd\u53e0\u80fd\u786e\u4fdd\u5e27\u95f4\u8fc7\u6e21\u66f4\u5e73\u6ed1\uff0c\u907f\u514d\u7a97\u53e3\u5207\u6362\u65f6\u7684\u753b\u9762\u7a81\u53d8\u3002<\/li>\n<\/ul>\n<h3>\u89c6\u9891\u6a21\u578b\u5728\u6587\u751f\u56fe\u9886\u57df\u7684\u6f5c\u529b<\/h3>\n<p>\u503c\u5f97\u4e00\u63d0\u7684\u662f\uff0c\u5c06\u00a0<code>wan2.1<\/code>\u00a0\u5de5\u4f5c\u6d41\u7684\u8f93\u51fa\u5e27\u6570\u8bbe\u4e3a1\uff0c\u5b83\u4fbf\u53ef\u4ee5\u6210\u4e3a\u4e00\u4e2a\u5f3a\u5927\u7684\u6587\u751f\u56fe\u5de5\u5177\uff0c\u5176\u751f\u6210\u6548\u679c\u5728\u67d0\u4e9b\u65b9\u9762\u751a\u81f3\u4f18\u4e8e\u00a0<code><a href=\"https:\/\/www.kdjingpai.com\/manxuebanflux1chan\/\">Flux<\/a><\/code>\u00a0\u7b49\u4e13\u7528\u56fe\u50cf\u6a21\u578b\u3002\u89c6\u9891\u6a21\u578b\u7531\u4e8e\u989d\u5916\u5904\u7406\u4e86\u65f6\u5e8f\u7ef4\u5ea6\uff0c\u5176\u5bf9\u56fe\u50cf\u5185\u90e8\u7ed3\u6784\u548c\u7ec6\u8282\u7684\u7406\u89e3\u53ef\u80fd\u66f4\u80dc\u4e00\u7b79\u3002\u8fd9\u9884\u793a\u7740\u89c6\u9891\u6a21\u578b\u5728\u672a\u6765\u53ef\u80fd\u6210\u4e3a\u9759\u6001\u56fe\u50cf\u751f\u6210\u9886\u57df\u7684\u4e00\u652f\u91cd\u8981\u529b\u91cf\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/07\/1a6e89418ca0dc3.png\" alt=\"\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u968f\u7740\u00a0wan2.1\u00a0\u7b49\u89c6\u9891\u6a21\u578b\u7684\u51fa\u73b0\uff0c\u672c\u5730\u5316\u89c6\u9891\u751f\u6210\u7684\u6280\u672f\u751f\u6001\u6b63\u9010\u6b65\u8d70\u5411\u6210\u719f\u3002\u4ee5\u5f80\uff0c\u9ad8\u6027\u80fd\u786c\u4ef6\u662f\u642d\u5efa\u89c6\u9891\u5de5\u4f5c\u6d41\u7684\u4e3b\u8981\u969c\u788d\uff0c\u4f46\u968f\u7740\u4e91\u7aef\u8ba1\u7b97\u8d44\u6e90\u7684\u666e\u53ca\u548c\u6a21\u578b\u4f18\u5316\u6280\u672f\u7684\u53d1\u5c55\uff0c\u73b0\u5728\u5373\u4fbf\u662f\u6ca1\u6709\u9876\u7ea7\u663e\u5361\u7684\u7528\u6237\uff0c\u4e5f\u80fd\u591f\u901a\u8fc7\u79df\u7528\u4e91\u7aef\u00a04090\u00a0\u663e\u5361\u7b49\u65b9\u5f0f\uff0c&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[182],"tags":[],"class_list":["post-33505","post","type-post","status-publish","format-standard","hentry","category-shicao"],"_links":{"self":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/posts\/33505","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/comments?post=33505"}],"version-history":[{"count":0,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/posts\/33505\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/media?parent=33505"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/categories?post=33505"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/tags?post=33505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}