{"id":27407,"date":"2025-03-03T11:14:29","date_gmt":"2025-03-03T03:14:29","guid":{"rendered":"https:\/\/www.aisharenet.com\/?p=27407"},"modified":"2025-03-03T11:24:26","modified_gmt":"2025-03-03T03:24:26","slug":"wan21","status":"publish","type":"post","link":"https:\/\/www.kdjingpai.com\/ja\/wan21\/","title":{"rendered":"Wan2.1\uff1a\u5728\u6d88\u8d39\u7ea7 GPU \u4e0a\u751f\u6210\u9ad8\u8d28\u91cf\u89c6\u9891"},"content":{"rendered":"<p>Wan2.1 \u662f\u7531 Wan-Video \u56e2\u961f\u5f00\u53d1\u5e76\u5728 GitHub \u4e0a\u5f00\u6e90\u7684\u4e00\u4e2a\u89c6\u9891\u751f\u6210\u5de5\u5177\u5957\u4ef6\uff0c\u4e13\u6ce8\u4e8e\u901a\u8fc7\u4eba\u5de5\u667a\u80fd\u6280\u672f\u63a8\u52a8\u89c6\u9891\u521b\u4f5c\u7684\u8fb9\u754c\u3002\u5b83\u57fa\u4e8e\u5148\u8fdb\u7684\u6269\u6563\u53d8\u6362\u5668\u67b6\u6784\uff0c\u96c6\u6210\u4e86\u72ec\u7279\u7684\u65f6\u7a7a\u53d8\u5206\u81ea\u7f16\u7801\u5668\uff08Wan-VAE\uff09\uff0c\u652f\u6301\u6587\u672c\u8f6c\u89c6\u9891\u3001\u56fe\u50cf\u8f6c\u89c6\u9891\u7b49\u591a\u79cd\u529f\u80fd\u3002Wan2.1 \u7684\u4eae\u70b9\u5728\u4e8e\u5176\u5353\u8d8a\u7684\u6027\u80fd\u548c\u5bf9\u6d88\u8d39\u7ea7\u786c\u4ef6\u7684\u652f\u6301\uff0c\u4f8b\u5982 T2V-1.3B \u6a21\u578b\u4ec5\u9700 8.19GB \u663e\u5b58\u5373\u53ef\u8fd0\u884c\uff0c\u80fd\u5728 RTX 4090 \u4e0a\u751f\u6210 5 \u79d2 480P \u89c6\u9891\u3002\u9879\u76ee\u4e0d\u4ec5\u63d0\u4f9b\u9ad8\u6548\u7684\u89c6\u9891\u751f\u6210\u80fd\u529b\uff0c\u8fd8\u652f\u6301 1080P \u65e0\u957f\u5ea6\u9650\u5236\u7684\u89c6\u9891\u7f16\u7801\u4e0e\u89e3\u7801\uff0c\u5e7f\u6cdb\u9002\u7528\u4e8e\u5185\u5bb9\u521b\u4f5c\u8005\u3001\u5f00\u53d1\u8005\u548c\u5b66\u672f\u7814\u7a76\u56e2\u961f\u3002<\/p>\n<p>\u76f8\u5173\u62a5\u9053\uff1a<a href=\"https:\/\/www.kdjingpai.com\/shipinshengchengmoxing-v\/\">\u89c6\u9891\u751f\u6210\u6a21\u578b VBench \u6392\u884c\u699c\u524d&#8230;\u699c\u9996\u2014\u2014WanX 2.1 \u5373\u5c06\u5f00\u6e90\uff01<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-27408\" title=\"Wan2.1\uff1a\u5728\u6d88\u8d39\u7ea7 GPU \u4e0a\u751f\u6210\u9ad8\u8d28\u91cf\u89c6\u9891-1\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/03\/660107fa71c8554.png\" alt=\"Wan2.1\uff1a\u5728\u6d88\u8d39\u7ea7 GPU \u4e0a\u751f\u6210\u9ad8\u8d28\u91cf\u89c6\u9891-1\" width=\"434\" height=\"184\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>\u529f\u80fd\u5217\u8868<\/h2>\n<ul>\n<li><strong>\u6587\u672c\u8f6c\u89c6\u9891\uff08Text-to-Video\uff09<\/strong>: \u6839\u636e\u8f93\u5165\u7684\u6587\u672c\u63cf\u8ff0\u751f\u6210\u52a8\u6001\u89c6\u9891\u5185\u5bb9\uff0c\u652f\u6301\u591a\u8bed\u8a00\u6587\u672c\u8f93\u5165\u3002<\/li>\n<li><strong>\u56fe\u50cf\u8f6c\u89c6\u9891\uff08Image-to-Video\uff09<\/strong>: \u5c06\u9759\u6001\u56fe\u50cf\u8f6c\u5316\u4e3a\u52a8\u6001\u89c6\u9891\uff0c\u4fdd\u6301\u56fe\u50cf\u539f\u59cb\u6bd4\u4f8b\u548c\u81ea\u7136\u8fd0\u52a8\u3002<\/li>\n<li><strong>\u89c6\u9891\u7f16\u8f91\uff08Video Editing\uff09<\/strong>: \u901a\u8fc7 AI \u6280\u672f\u5bf9\u5df2\u6709\u89c6\u9891\u8fdb\u884c\u4fee\u6539\u6216\u4f18\u5316\u3002<\/li>\n<li><strong>\u652f\u6301\u9ad8\u5206\u8fa8\u7387\u8f93\u51fa<\/strong>: \u53ef\u751f\u6210 480P \u548c 720P \u89c6\u9891\uff0c\u90e8\u5206\u6a21\u578b\u652f\u6301 1080P \u65e0\u957f\u5ea6\u9650\u5236\u3002<\/li>\n<li><strong>Wan-VAE \u6280\u672f<\/strong>: \u63d0\u4f9b\u9ad8\u6548\u7684\u65f6\u7a7a\u538b\u7f29\uff0c\u652f\u6301\u957f\u65f6\u95f4\u89c6\u9891\u751f\u6210\u4e14\u4fdd\u7559\u65f6\u95f4\u4fe1\u606f\u3002<\/li>\n<li><strong>\u6d88\u8d39\u7ea7 GPU \u4f18\u5316<\/strong>: \u5728\u666e\u901a\u786c\u4ef6\u4e0a\u8fd0\u884c\uff0c\u964d\u4f4e\u4f7f\u7528\u95e8\u69db\u3002<\/li>\n<li><strong>\u591a\u4efb\u52a1\u652f\u6301<\/strong>: \u5305\u62ec\u6587\u672c\u751f\u6210\u56fe\u50cf\u3001\u89c6\u9891\u8f6c\u97f3\u9891\u7b49\u6269\u5c55\u529f\u80fd\u3002<\/li>\n<li><strong>\u4e2d\u82f1\u6587\u6587\u672c\u751f\u6210<\/strong>: \u53ef\u5728\u89c6\u9891\u4e2d\u751f\u6210\u6e05\u6670\u7684\u4e2d\u82f1\u6587\u6587\u5b57\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>\u4f7f\u7528\u5e2e\u52a9<\/h2>\n<p>Wan2.1 \u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684\u5f00\u6e90\u89c6\u9891\u751f\u6210\u5de5\u5177\uff0c\u9002\u5408\u5e0c\u671b\u5feb\u901f\u751f\u6210\u9ad8\u8d28\u91cf\u89c6\u9891\u5185\u5bb9\u7684\u7528\u6237\u3002\u4ee5\u4e0b\u662f\u8be6\u7ec6\u7684\u5b89\u88c5\u548c\u4f7f\u7528\u6307\u5357\uff0c\u5e2e\u52a9\u4f60\u5feb\u901f\u4e0a\u624b\u3002<\/p>\n<h3><strong>\u5b89\u88c5\u6d41\u7a0b<\/strong><\/h3>\n<p>Wan2.1 \u7684\u5b89\u88c5\u9700\u8981\u4e00\u5b9a\u7684\u6280\u672f\u57fa\u7840\uff0c\u4e3b\u8981\u901a\u8fc7 GitHub \u4ed3\u5e93\u83b7\u53d6\u4ee3\u7801\u548c\u6a21\u578b\u6743\u91cd\u3002\u4ee5\u4e0b\u662f\u5177\u4f53\u6b65\u9aa4\uff1a<\/p>\n<h4><strong>1. \u73af\u5883\u51c6\u5907<\/strong><\/h4>\n<ul>\n<li><strong>\u64cd\u4f5c\u7cfb\u7edf<\/strong>: \u652f\u6301 Windows\u3001Linux \u6216 macOS\u3002<\/li>\n<li><strong>\u786c\u4ef6\u8981\u6c42<\/strong>: \u81f3\u5c11 8GB \u663e\u5b58\u7684 GPU\uff08\u5982 RTX 3060 Ti \u6216 4090\uff09\uff0c\u63a8\u8350 Nvidia GPU\u3002<\/li>\n<li><strong>\u8f6f\u4ef6\u4f9d\u8d56<\/strong>: Python 3.10+\uff0cGit\uff0c\u663e\u5361\u9a71\u52a8\u53ca CUDA\uff08\u82e5\u4f7f\u7528 GPU\uff09\u3002<\/li>\n<li><strong>\u5b89\u88c5 Python<\/strong>: \u5728\u5b98\u7f51\u4e0b\u8f7d Python 3.10 \u6216\u66f4\u9ad8\u7248\u672c\uff0c\u5b89\u88c5\u65f6\u52fe\u9009\u201cAdd Python to PATH\u201d\u3002<\/li>\n<\/ul>\n<h4><strong>2. \u4e0b\u8f7d\u4ee3\u7801\u548c\u6a21\u578b<\/strong><\/h4>\n<ol>\n<li>\u6253\u5f00\u7ec8\u7aef\u6216\u547d\u4ee4\u884c\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u514b\u9686\u4ed3\u5e93\uff1a<\/li>\n<\/ol>\n<pre><code>git clone https:\/\/github.com\/Wan-Video\/Wan2.1.git\r\ncd Wan2.1\r\n<\/code><\/pre>\n<ol start=\"2\">\n<li>\u5b89\u88c5\u4f9d\u8d56\u5e93\uff1a<\/li>\n<\/ol>\n<pre><code>pip install -r requirements.txt\r\n<\/code><\/pre>\n<ol start=\"3\">\n<li>\u4ece Hugging Face \u4e0b\u8f7d\u6a21\u578b\u6743\u91cd\uff08\u4ee5 T2V-1.3B \u4e3a\u4f8b\uff09\uff1a<\/li>\n<\/ol>\n<pre><code>pip install \"huggingface_hub[cli]\"\r\nhuggingface-cli download Wan-AI\/Wan2.1-T2V-1.3B --local-dir .\/Wan2.1-T2V-1.3B\r\n<\/code><\/pre>\n<ul>\n<li>\u53ef\u9009\u6a21\u578b\uff1aT2V-14B\uff08\u66f4\u9ad8\u6027\u80fd\uff0c\u9700\u66f4\u591a\u663e\u5b58\uff09\u3001I2V-480P\/720P\u3002<\/li>\n<\/ul>\n<h4><strong>3. \u914d\u7f6e\u73af\u5883<\/strong><\/h4>\n<ul>\n<li>\u5982\u679c\u663e\u5b58\u8f83\u4f4e\uff0c\u53ef\u542f\u7528\u4f18\u5316\u53c2\u6570\uff08\u5982\u00a0<code>--offload_model True<\/code>\u00a0\u548c\u00a0<code>--t5_cpu<\/code>\uff09\u3002<\/li>\n<li>\u786e\u4fdd GPU \u9a71\u52a8\u548c CUDA \u5df2\u6b63\u786e\u5b89\u88c5\uff0c\u53ef\u901a\u8fc7\u00a0<code>nvidia-smi<\/code>\u00a0\u68c0\u67e5\u3002<\/li>\n<\/ul>\n<h4><strong>4. \u9a8c\u8bc1\u5b89\u88c5<\/strong><\/h4>\n<p>\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6d4b\u8bd5\u73af\u5883\uff1a<\/p>\n<pre><code>python generate.py --task t2v-1.3B --size 832*480 --ckpt_dir .\/Wan2.1-T2V-1.3B --prompt \"\u6d4b\u8bd5\u89c6\u9891\u751f\u6210\"\r\n<\/code><\/pre>\n<p>\u82e5\u8f93\u51fa\u89c6\u9891\u6587\u4ef6\uff0c\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<h3><strong>\u529f\u80fd\u64cd\u4f5c\u6d41\u7a0b<\/strong><\/h3>\n<h4><strong>\u6587\u672c\u8f6c\u89c6\u9891\uff08Text-to-Video\uff09<\/strong><\/h4>\n<ol>\n<li><strong>\u51c6\u5907\u6587\u672c<\/strong>: \u7f16\u5199\u63cf\u8ff0\u6027\u5f3a\u7684\u63d0\u793a\u8bcd\uff0c\u4f8b\u5982\u201c\u4e00\u53ea\u732b\u5728\u8349\u5730\u4e0a\u4f18\u96c5\u884c\u8d70\uff0c\u955c\u5934\u8ddf\u968f\u201d\u3002<\/li>\n<li><strong>\u8fd0\u884c\u547d\u4ee4<\/strong>:<\/li>\n<\/ol>\n<pre><code>python generate.py --task t2v-1.3B --size 832*480 --ckpt_dir .\/Wan2.1-T2V-1.3B --prompt \"A cute cat walking gracefully on a lush green field\"\r\n<\/code><\/pre>\n<ol start=\"3\">\n<li><strong>\u53c2\u6570\u8c03\u6574<\/strong>:<\/li>\n<\/ol>\n<ul>\n<li><code>--size<\/code>: \u8bbe\u7f6e\u5206\u8fa8\u7387\uff08\u5982 832<em>480 \u6216 1280<\/em>720\uff09\u3002<\/li>\n<li><code>--offload_model True<\/code>: \u4f4e\u663e\u5b58\u4f18\u5316\u3002<\/li>\n<li><code>--sample_shift 8 --sample_guide_scale 6<\/code>: \u63d0\u9ad8\u751f\u6210\u8d28\u91cf\u3002<\/li>\n<\/ul>\n<ol start=\"4\">\n<li><strong>\u8f93\u51fa<\/strong>: \u751f\u6210\u7684\u89c6\u9891\u4fdd\u5b58\u5728\u5f53\u524d\u76ee\u5f55\uff0c\u7ea6 5 \u79d2\u957f\u5ea6\u3002<\/li>\n<\/ol>\n<h4><strong>\u56fe\u50cf\u8f6c\u89c6\u9891\uff08Image-to-Video\uff09<\/strong><\/h4>\n<ol>\n<li><strong>\u51c6\u5907\u56fe\u50cf<\/strong>: \u4e0a\u4f20\u4e00\u5f20 JPG\/PNG \u56fe\u7247\uff08\u5982\u00a0<code>input.jpg<\/code>\uff09\u3002<\/li>\n<li><strong>\u8fd0\u884c\u547d\u4ee4<\/strong>:<\/li>\n<\/ol>\n<pre><code>python generate.py --task i2v-14B --size 1280*720 --ckpt_dir .\/Wan2.1-I2V-14B-720P --image input.jpg --prompt \"Summer beach vacation style\"\r\n<\/code><\/pre>\n<ol start=\"3\">\n<li><strong>\u7ed3\u679c<\/strong>: \u6a21\u578b\u6839\u636e\u56fe\u50cf\u751f\u6210\u52a8\u6001\u89c6\u9891\uff0c\u4fdd\u6301\u539f\u59cb\u6bd4\u4f8b\u548c\u81ea\u7136\u8fd0\u52a8\u3002<\/li>\n<\/ol>\n<h4><strong>\u89c6\u9891\u7f16\u8f91<\/strong><\/h4>\n<ol>\n<li><strong>\u8f93\u5165\u89c6\u9891<\/strong>: \u51c6\u5907\u4e00\u4e2a\u5df2\u6709\u89c6\u9891\u6587\u4ef6\u3002<\/li>\n<li><strong>\u7f16\u8f91\u64cd\u4f5c<\/strong>: \u4f7f\u7528 DiffSynth-Studio \u7b49\u5de5\u5177\uff08Wan2.1 \u652f\u6301\u6269\u5c55\uff09\uff0c\u901a\u8fc7\u547d\u4ee4\u884c\u8c03\u7528\u76f8\u5173\u6a21\u5757\u3002<\/li>\n<li><strong>\u793a\u4f8b\u547d\u4ee4<\/strong>: \u5177\u4f53\u53c2\u6570\u9700\u53c2\u8003 GitHub \u6587\u6863\uff0c\u76ee\u524d\u652f\u6301\u57fa\u7840\u7f16\u8f91\u529f\u80fd\u3002<\/li>\n<\/ol>\n<h4><strong>\u9ad8\u5206\u8fa8\u7387\u8f93\u51fa<\/strong><\/h4>\n<ul>\n<li>\u4f7f\u7528 T2V-14B \u6216 I2V-720P \u6a21\u578b\uff0c\u8bbe\u7f6e\u00a0<code>--size 1280*720<\/code>\uff0c\u9700\u66f4\u9ad8\u663e\u5b58\uff08\u7ea6 17GB\uff09\u3002<\/li>\n<li>Wan-VAE \u652f\u6301 1080P \u65e0\u957f\u5ea6\u9650\u5236\uff0c\u9002\u5408\u957f\u89c6\u9891\u751f\u6210\u3002<\/li>\n<\/ul>\n<h4><strong>\u751f\u6210\u4e2d\u82f1\u6587\u6587\u672c<\/strong><\/h4>\n<ol>\n<li>\u5728\u63d0\u793a\u8bcd\u4e2d\u52a0\u5165\u6587\u5b57\u63cf\u8ff0\uff0c\u5982\u201cA sign saying &#8216;Welcome&#8217; in English and Chinese\u201d\u3002<\/li>\n<li>\u8fd0\u884c\u6587\u672c\u8f6c\u89c6\u9891\u547d\u4ee4\uff0c\u6a21\u578b\u4f1a\u81ea\u52a8\u5728\u89c6\u9891\u4e2d\u5d4c\u5165\u6e05\u6670\u6587\u5b57\u3002<\/li>\n<\/ol>\n<h3><strong>\u4f7f\u7528\u6280\u5de7<\/strong><\/h3>\n<ul>\n<li><strong>\u4f18\u5316\u6027\u80fd<\/strong>: \u5bf9\u4e8e\u4f4e\u7aef\u786c\u4ef6\uff0c\u63a8\u8350 1.3B \u6a21\u578b\u548c 480P \u5206\u8fa8\u7387\uff1b\u9ad8\u7aef\u786c\u4ef6\u53ef\u5c1d\u8bd5 14B \u548c 720P\u3002<\/li>\n<li><strong>\u63d0\u793a\u8bcd\u5efa\u8bae<\/strong>: \u4f7f\u7528\u8be6\u7ec6\u63cf\u8ff0\uff08\u5982\u52a8\u4f5c\u3001\u573a\u666f\u3001\u5149\u7ebf\uff09\u63d0\u9ad8\u751f\u6210\u8d28\u91cf\u3002<\/li>\n<li><strong>\u793e\u533a\u652f\u6301<\/strong>: \u52a0\u5165 GitHub Issues \u6216 Discord \u8ba8\u8bba\u7ec4\u83b7\u53d6\u5e2e\u52a9\u3002<\/li>\n<\/ul>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u4f7f\u7528 Wan2.1 \u751f\u6210\u4e13\u4e1a\u7ea7\u89c6\u9891\u5185\u5bb9\uff0c\u65e0\u8bba\u662f\u521b\u610f\u5c55\u793a\u8fd8\u662f\u5b66\u672f\u7814\u7a76\uff0c\u90fd\u80fd\u5f97\u5fc3\u5e94\u624b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wan2.1 \u662f\u7531 Wan-Video \u56e2\u961f\u5f00\u53d1\u5e76\u5728 GitHub \u4e0a\u5f00\u6e90\u7684\u4e00\u4e2a\u89c6\u9891\u751f\u6210\u5de5\u5177\u5957\u4ef6\uff0c\u4e13\u6ce8\u4e8e\u901a\u8fc7\u4eba\u5de5\u667a\u80fd\u6280\u672f\u63a8\u52a8\u89c6\u9891\u521b\u4f5c\u7684\u8fb9\u754c\u3002\u5b83\u57fa\u4e8e\u5148\u8fdb\u7684\u6269\u6563\u53d8\u6362\u5668\u67b6\u6784\uff0c\u96c6\u6210\u4e86\u72ec\u7279\u7684\u65f6\u7a7a\u53d8\u5206\u81ea\u7f16\u7801\u5668\uff08Wan-VAE\uff09\uff0c\u652f\u6301\u6587\u672c\u8f6c\u89c6\u9891\u3001\u56fe\u50cf\u8f6c\u89c6&#8230;<\/p>\n","protected":false},"author":1,"featured_media":61954,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[230,196],"class_list":["post-27407","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tool","tag-aikaiyuanxiangmu","tag-aiwenbenzhuanshipin"],"_links":{"self":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/posts\/27407","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/comments?post=27407"}],"version-history":[{"count":0,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/posts\/27407\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/media\/61954"}],"wp:attachment":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/media?parent=27407"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/categories?post=27407"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/tags?post=27407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}