{"id":52,"date":"2026-01-20T09:48:17","date_gmt":"2026-01-20T01:48:17","guid":{"rendered":"https:\/\/www.starverse-ai.com\/guide\/?p=52"},"modified":"2026-01-21T09:51:36","modified_gmt":"2026-01-21T01:51:36","slug":"facefusion%e4%bd%bf%e7%94%a8%e6%95%99%e7%a8%8b%e9%85%8d%e7%bd%ae%e8%a6%81%e6%b1%82","status":"publish","type":"post","link":"https:\/\/www.starverse-ai.com\/guide\/archives\/52","title":{"rendered":"FaceFusion\u4f7f\u7528\u6559\u7a0b(\u914d\u7f6e\u8981\u6c42)"},"content":{"rendered":"\n<p>FaceFusion\u5bf9\u4e8e\u786c\u4ef6\u914d\u7f6e\u8981\u6c42\u76f8\u5bf9\u8f83\u9ad8,\u4e3a\u4e86\u6ee1\u8db3\u6570\u636e\u5904\u7406\u8fd0\u884c\u4e0b\u9762\u4e5f\u8981\u63a8\u8350\u4e00\u4e2a\u57fa\u7840\u914d\u7f6e\u7ed9\u5927\u5bb6,\u60f3\u8981\u8282\u7701\u4e00\u4e9b\u65f6\u95f4\u4e5f\u53ef\u4ee5\u5728\u6211\u4eec\u7f51\u7ad9\u4e0a\u76f4\u63a5\u514d\u8d39\u8bd5\u7528\u3002<\/p>\n\n\n\n<p>\u4e00\u3001FaceFusion \u7b80\u4ecb\u200b<\/p>\n\n\n\n<p>FaceFusion \u662f\u4e00\u6b3e\u5f00\u6e90 AI \u4eba\u8138\u878d\u5408\u5de5\u5177\uff0c\u652f\u6301\u9ad8\u6e05\u89c6\u9891 \/ \u56fe\u7247\u6362\u8138\u3001\u8868\u60c5\u63a7\u5236\u4e0e\u5507\u5f62\u540c\u6b65\uff0c\u517c\u5bb9 Windows\u3001Linux\u3001macOS \u7cfb\u7edf\uff0c\u53ef\u901a\u8fc7 GPU \u52a0\u901f\u5b9e\u73b0\u9ad8\u6548\u6362\u8138\uff0c\u9002\u914d\u4e0d\u540c\u786c\u4ef6\u73af\u5883\uff0c\u662f AI \u89c6\u89c9\u7231\u597d\u8005\u7684\u5b9e\u7528\u5de5\u5177\u3002\u5176\u6838\u5fc3\u4f18\u52bf\u5728\u4e8e\u64cd\u4f5c\u7b80\u6d01\u3001\u6a21\u578b\u81ea\u52a8\u4e0b\u8f7d\u3001\u652f\u6301\u81ea\u5b9a\u4e49\u7d20\u6750\uff0c\u540c\u65f6\u63d0\u4f9b WebUI \u4e0e\u547d\u4ee4\u884c\u4e24\u79cd\u64cd\u4f5c\u65b9\u5f0f\uff0c\u517c\u987e\u65b0\u624b\u4e0e\u8fdb\u9636\u7528\u6237\u9700\u6c42\u3002\u200b<\/p>\n\n\n\n<p>\u4e8c\u3001\u914d\u7f6e\u8981\u6c42(\u5206\u57fa\u7840 \/ \u63a8\u8350 \/ 4K \u7ea7\u522b)\u200b<\/p>\n\n\n\n<p>(\u4e00)\u57fa\u7840\u914d\u7f6e(\u6ee1\u8db3\u57fa\u672c\u8fd0\u884c)\u200b<\/p>\n\n\n\n<p>\u64cd\u4f5c\u7cfb\u7edf\uff1aWindows 10\/11 64 \u4f4d\u3001Ubuntu 20.04+\u3001macOS 12+(\u7528\u6237\u540d\u9700\u82f1\u6587\uff0c\u907f\u514d\u8def\u5f84\u51b2\u7a81);\u200b<\/p>\n\n\n\n<p>GPU\uff1aNVIDIA \u663e\u5361(\u663e\u5b58\u22656GB)\u6216 AMD RX 6000 \u7cfb\u5217;\u200b<\/p>\n\n\n\n<p>\u5185\u5b58\uff1a\u22658GB;\u200b<\/p>\n\n\n\n<p>\u5b58\u50a8\uff1a\u673a\u68b0\u786c\u76d8(\u9884\u7559\u8db3\u591f\u4e34\u65f6\u6587\u4ef6\u7a7a\u95f4);\u200b<\/p>\n\n\n\n<p>\u8f6f\u4ef6\u4f9d\u8d56\uff1aPython 3.9-3.11\u3001FFmpeg\u3001Git;\u200b<\/p>\n\n\n\n<p>\u52a0\u901f\u7ec4\u4ef6\uff1a\u4ec5\u652f\u6301 CPU \u6a21\u5f0f\uff0c\u5904\u7406\u901f\u5ea6\u8f83\u6162\u3002\u200b<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"470\" height=\"335\" src=\"https:\/\/www.starverse-ai.com\/guide\/wp-content\/uploads\/2026\/01\/ai\u4e00\u952e\u6362\u8138.jpg\" alt=\"\" class=\"wp-image-54\" srcset=\"https:\/\/www.starverse-ai.com\/guide\/wp-content\/uploads\/2026\/01\/ai\u4e00\u952e\u6362\u8138.jpg 470w, https:\/\/www.starverse-ai.com\/guide\/wp-content\/uploads\/2026\/01\/ai\u4e00\u952e\u6362\u8138-300x214.jpg 300w\" sizes=\"auto, (max-width: 470px) 100vw, 470px\" \/><\/figure>\n<\/div>\n\n\n<p>(\u4e8c)\u63a8\u8350\u914d\u7f6e(\u5e73\u8861\u901f\u5ea6\u4e0e\u7a33\u5b9a\u6027)\u200b<\/p>\n\n\n\n<p>\u64cd\u4f5c\u7cfb\u7edf\uff1a\u4e0e\u57fa\u7840\u914d\u7f6e\u4e00\u81f4\uff0c\u9700\u786e\u4fdd\u7528\u6237\u540d\u65e0\u4e2d\u6587;\u200b<\/p>\n\n\n\n<p>GPU\uff1aRTX 3060 12GB\u3001RTX 4070 \u7b49 NVIDIA \u663e\u5361(\u663e\u5b58\u226512GB);\u200b<\/p>\n\n\n\n<p>\u5185\u5b58\uff1a\u226516GB;\u200b<\/p>\n\n\n\n<p>\u5b58\u50a8\uff1aSSD(\u9884\u7559\u226550GB \u4e34\u65f6\u7a7a\u95f4\uff0c\u63d0\u5347\u6587\u4ef6\u8bfb\u5199\u901f\u5ea6);\u200b<\/p>\n\n\n\n<p>\u8f6f\u4ef6\u4f9d\u8d56\uff1aPython 3.9-3.11\u3001FFmpeg\u3001Git\uff0c\u989d\u5916\u5b89\u88c5 CUDA 12.4 + \u4e0e cuDNN 8.9.x(NVIDIA \u4e13\u5c5e);\u200b<\/p>\n\n\n\n<p>\u52a0\u901f\u7ec4\u4ef6\uff1aNVIDIA \u7528\u6237\u542f\u7528 CUDA \u52a0\u901f\uff0cAMD \u7528\u6237\u542f\u7528 DirectML \u52a0\u901f\uff0c\u5927\u5e45\u63d0\u5347\u5904\u7406\u6548\u7387\u3002\u200b<\/p>\n\n\n\n<p><strong>\u661f\u5b87\u667a\u7b97\u5b98\u7f51\u652f\u6301\u514d\u8d39\u90e8\u7f72\u7acb\u9a6c\u5b89\u88c5\uff01\u70b9\u51fb\u4e0b\u65b9\u7acb\u5373\u8bd5\u7528!<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.starverse-ai.com\/applications\/details\/tama-Ww3tKvOWTsKqy4_k\"><img loading=\"lazy\" decoding=\"async\" width=\"209\" height=\"49\" src=\"https:\/\/www.starverse-ai.com\/guide\/wp-content\/uploads\/2026\/01\/QQ\u622a\u56fe20260121094818-1.jpg\" alt=\"\" class=\"wp-image-126\"\/><\/a><\/figure>\n<\/div>\n\n\n<p>(\u4e09)4K \u7ea7\u522b\u914d\u7f6e(\u5904\u7406\u9ad8\u6e05\u7d20\u6750)\u200b<\/p>\n\n\n\n<p>\u64cd\u4f5c\u7cfb\u7edf\uff1a\u4e0e\u57fa\u7840\u914d\u7f6e\u4e00\u81f4;\u200b<\/p>\n\n\n\n<p>GPU\uff1aRTX 4080\u3001RTX 5070 \u7b49\u9ad8\u7aef NVIDIA \u663e\u5361(\u663e\u5b58\u226520GB);\u200b<\/p>\n\n\n\n<p>\u5185\u5b58\uff1a\u226532GB;\u200b<\/p>\n\n\n\n<p>\u5b58\u50a8\uff1aNVMe SSD(\u9ad8\u901f\u8bfb\u5199\uff0c\u9002\u914d 4K \u7d20\u6750\u5904\u7406\u9700\u6c42);\u200b<\/p>\n\n\n\n<p>\u8f6f\u4ef6\u4f9d\u8d56\uff1a\u57fa\u4e8e\u63a8\u8350\u914d\u7f6e\uff0c\u5c06 CUDA \u5347\u7ea7\u81f3 12.5 \u7248\u672c\uff0c\u786e\u4fdd\u517c\u5bb9\u6027;\u200b<\/p>\n\n\n\n<p>\u52a0\u901f\u7ec4\u4ef6\uff1a\u542f\u7528 CUDA+TensorRT \u53cc\u91cd\u52a0\u901f\uff0c\u4f18\u5316 4K \u89c6\u9891\u5904\u7406\u6d41\u7a0b\uff0c\u51cf\u5c11\u5361\u987f\u3002\u200b<\/p>\n\n\n\n<p>\u4e09\u3001\u8be6\u7ec6\u914d\u7f6e\u4e0e\u4f7f\u7528\u6559\u7a0b\u200b<\/p>\n\n\n\n<p>(\u4e00)\u73af\u5883\u51c6\u5907\u200b<\/p>\n\n\n\n<p>\u5b89\u88c5\u6838\u5fc3\u4f9d\u8d56\u200b<\/p>\n\n\n\n<p>python -m venv facefusion-env\u200b<\/p>\n\n\n\n<p># Windows\u7cfb\u7edf\u6fc0\u6d3b\u865a\u62df\u73af\u5883\u200b<\/p>\n\n\n\n<p>facefusion-env\\Scripts\\activate\u200b<\/p>\n\n\n\n<p># Linux\/macOS\u7cfb\u7edf\u6fc0\u6d3b\u865a\u62df\u73af\u5883\u200b<\/p>\n\n\n\n<p>source facefusion-env\/bin\/activate\u200b<\/p>\n\n\n\n<p>Python \u73af\u5883\uff1a\u5b89\u88c5 Python 3.9-3.11 \u7248\u672c(\u907f\u514d 3.12 + \u53ca 3.8 \u4ee5\u4e0b\u7248\u672c\u5f15\u53d1\u4f9d\u8d56\u51b2\u7a81)\uff0c\u901a\u8fc7 venv \u521b\u5efa\u72ec\u7acb\u865a\u62df\u73af\u5883\uff1a\u200b<\/p>\n\n\n\n<p>FFmpeg \u5b89\u88c5\uff1aWindows \u7528\u6237\u9700\u4e0b\u8f7d FFmpeg \u4e8c\u8fdb\u5236\u5305\uff0c\u89e3\u538b\u540e\u5c06\u5176\u5b89\u88c5\u76ee\u5f55\u6dfb\u52a0\u5230\u7cfb\u7edf PATH \u73af\u5883\u53d8\u91cf;macOS \u7528\u6237\u901a\u8fc7brew install ffmpeg\u547d\u4ee4\u5b89\u88c5;Linux \u7528\u6237\u6267\u884csudo apt install ffmpeg\u5b89\u88c5\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u7ec8\u7aef\u8f93\u5165ffmpeg -version\uff0c\u82e5\u663e\u793a\u7248\u672c\u4fe1\u606f\u5219\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002\u200b<\/p>\n\n\n\n<p>GPU \u52a0\u901f\u914d\u7f6e(NVIDIA)\uff1a\u5148\u5b89\u88c5 CUDA 12.4 + \u4e0e cuDNN 8.9.x\uff0c\u6309\u5b98\u65b9\u6307\u5357\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u786e\u4fdd\u7cfb\u7edf\u80fd\u8bc6\u522b CUDA\u3002\u4e4b\u540e\u5728\u865a\u62df\u73af\u5883\u4e2d\u5b89\u88c5onnxruntime-gpu==1.16.3.\u8fdb\u4e00\u6b65\u63d0\u5347 GPU \u63a8\u7406\u901f\u5ea6\u3002\u200b<\/p>\n\n\n\n<p>\u514b\u9686\u9879\u76ee\u4e0e\u5b89\u88c5\u4f9d\u8d56\u200b<\/p>\n\n\n\n<p>\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u514b\u9686 FaceFusion \u9879\u76ee\u4ed3\u5e93\uff0c\u5e76\u5b89\u88c5\u6240\u9700\u4f9d\u8d56\u5305\uff1a\u200b<\/p>\n\n\n\n<p>git clone https:\/\/github.com\/facefusion\/facefusion.git\u200b<\/p>\n\n\n\n<p>cd facefusion\u200b<\/p>\n\n\n\n<p>pip install -r requirements.txt\u200b<\/p>\n\n\n\n<p># NVIDIA\u7528\u6237\u989d\u5916\u5b89\u88c5GPU\u52a0\u901f\u4f9d\u8d56\u200b<\/p>\n\n\n\n<p>pip install onnxruntime-gpu==1.16.3\u200b<\/p>\n\n\n\n<p># AMD\u7528\u6237\u989d\u5916\u5b89\u88c5DirectML\u52a0\u901f\u4f9d\u8d56\u200b<\/p>\n\n\n\n<p>pip install onnxruntime-directml\u200b<\/p>\n\n\n\n<p>(\u4e8c)\u542f\u52a8\u4e0e\u57fa\u7840\u914d\u7f6e\u200b<\/p>\n\n\n\n<p>\u542f\u52a8 WebUI\uff1a\u5728\u6fc0\u6d3b\u7684\u865a\u62df\u73af\u5883\u4e2d\uff0c\u6267\u884cpython run.py\u547d\u4ee4\u542f\u52a8\u7a0b\u5e8f\u3002\u9ed8\u8ba4\u5360\u7528 7860 \u7aef\u53e3\uff0c\u542f\u52a8\u6210\u529f\u540e\uff0c\u6253\u5f00\u6d4f\u89c8\u5668\u8bbf\u95eehttp:\/\/localhost:7860.\u5373\u53ef\u8fdb\u5165 FaceFusion \u53ef\u89c6\u5316\u64cd\u4f5c\u754c\u9762\u3002\u200b<\/p>\n\n\n\n<p>\u57fa\u7840\u53c2\u6570\u8bbe\u7f6e\u200b<\/p>\n\n\n\n<p>\u7d20\u6750\u4e0a\u4f20\uff1a\u5206\u522b\u4e0a\u4f20 \u201c\u6e90\u4eba\u8138\u56fe\u7247\u201d \u548c \u201c\u76ee\u6807\u89c6\u9891 \/ \u56fe\u7247\u201d\uff0c\u6e90\u56fe\u5efa\u8bae\u9009\u62e9\u6e05\u6670\u3001\u6b63\u9762\u3001\u65e0\u906e\u6321\u7684\u4eba\u8138\u7167\uff0c\u76ee\u6807\u7d20\u6750\u5206\u8fa8\u7387\u63a8\u8350 1080p(\u5e73\u8861\u5904\u7406\u901f\u5ea6\u4e0e\u753b\u8d28);\u200b<\/p>\n\n\n\n<p>\u6267\u884c\u63d0\u4f9b\u8005\uff1a\u6839\u636e\u663e\u5361\u578b\u53f7\u9009\u62e9\uff0cNVIDIA \u663e\u5361\u9009 \u201cCUDA\u201d\uff0cAMD \u663e\u5361\u9009 \u201cDirectML\u201d\uff0c\u652f\u6301 TensorRT \u7684\u663e\u5361\u53ef\u52fe\u9009\u8be5\u9009\u9879(\u9700\u786e\u4fdd\u6a21\u578b\u9002\u914d);\u200b<\/p>\n\n\n\n<p>\u89c6\u9891\u5185\u5b58\u7b56\u7565\uff1a16GB \u663e\u5b58\u5efa\u8bae\u9009\u62e9 \u201cstrict\u201d\uff0c32GB \u53ca\u4ee5\u4e0a\u663e\u5b58\u53ef\u9009\u62e9 \u201ctolerant\u201d\uff0c\u5408\u7406\u5206\u914d\u663e\u5b58\u8d44\u6e90;\u200b<\/p>\n\n\n\n<p>\u4e34\u65f6\u5e27\u683c\u5f0f\uff1a\u4f18\u5148\u9009\u62e9 PNG(\u4fdd\u8bc1\u5e27\u753b\u9762\u8d28\u91cf)\uff0c\u82e5\u663e\u5b58\u7d27\u5f20\u53ef\u5207\u6362\u4e3a JPEG(\u5efa\u8bae\u8d28\u91cf\u8bbe\u4e3a 70)\u3002\u200b<\/p>\n\n\n\n<p>(\u4e09)\u6362\u8138\u5b9e\u64cd\u6d41\u7a0b\u200b<\/p>\n\n\n\n<p>\u7d20\u6750\u9884\u5904\u7406\uff1a\u4f7f\u7528\u89c6\u9891\u7f16\u8f91\u5de5\u5177\u88c1\u526a\u76ee\u6807\u89c6\u9891\uff0c\u4fdd\u7559\u9700\u8981\u6362\u8138\u7684\u7247\u6bb5\uff0c\u907f\u514d\u5197\u4f59\u5185\u5bb9\u589e\u52a0\u5904\u7406\u65f6\u95f4;\u82e5\u76ee\u6807\u56fe\u7247 \/ \u89c6\u9891\u6e05\u6670\u5ea6\u8f83\u4f4e\uff0c\u53ef\u5148\u901a\u8fc7\u753b\u8d28\u589e\u5f3a\u5de5\u5177\u4f18\u5316\u3002\u200b<\/p>\n\n\n\n<p>\u4eba\u8138\u68c0\u6d4b\u4e0e\u5bf9\u9f50\uff1aWebUI \u4f1a\u81ea\u52a8\u5b8c\u6210\u4eba\u8138\u68c0\u6d4b\u4e0e\u5bf9\u9f50\u64cd\u4f5c\uff0c\u82e5\u68c0\u6d4b\u6548\u679c\u4e0d\u4f73\uff0c\u53ef\u5728 \u201cFace Detection\u201d \u8bbe\u7f6e\u4e2d\u8c03\u6574\u7f6e\u4fe1\u5ea6\u9608\u503c(\u5efa\u8bae\u8303\u56f4 0.6-0.8)\uff0c\u63d0\u9ad8\u4eba\u8138\u5339\u914d\u7cbe\u5ea6\u3002\u200b<\/p>\n\n\n\n<p>\u6362\u8138\u4e0e\u540e\u5904\u7406\uff1a\u5728\u6a21\u578b\u9009\u62e9\u5217\u8868\u4e2d\u6311\u9009\u5408\u9002\u7684\u6a21\u578b(\u5982 inswapper_128.onnx\uff0c\u517c\u987e\u901f\u5ea6\u4e0e\u6548\u679c);\u542f\u7528 GFPGAN \u6216 CodeFormer \u5de5\u5177\uff0c\u53ef\u4fee\u590d\u6362\u8138\u540e\u7684\u9762\u90e8\u6a21\u7cca\u3001\u7eb9\u7406\u5f02\u5e38\u7b49\u95ee\u9898;\u6700\u540e\u8bbe\u7f6e\u8f93\u51fa\u683c\u5f0f(MP4 \u7528\u4e8e\u89c6\u9891\u3001PNG \u7528\u4e8e\u56fe\u7247\u5e8f\u5217)\u4e0e\u8d28\u91cf\u53c2\u6570\u3002\u200b<\/p>\n\n\n\n<p>\u751f\u6210\u8f93\u51fa\uff1a\u70b9\u51fb\u754c\u9762\u4e2d\u7684 \u201cStart\u201d \u6309\u94ae\u5f00\u59cb\u5904\u7406\uff0c\u5904\u7406\u8fdb\u5ea6\u4f1a\u5b9e\u65f6\u663e\u793a\u3002\u5b8c\u6210\u540e\uff0c\u7ed3\u679c\u6587\u4ef6\u4f1a\u81ea\u52a8\u4fdd\u5b58\u5230\u9879\u76ee\u6839\u76ee\u5f55\u7684output\u6587\u4ef6\u5939\u4e2d\uff0c\u82e5\u5bf9\u6548\u679c\u4e0d\u6ee1\u610f\uff0c\u53ef\u8c03\u6574\u53c2\u6570\u540e\u91cd\u65b0\u751f\u6210\u3002\u200b<\/p>\n\n\n\n<p>\u56db\u3001\u5e38\u89c1\u95ee\u9898 FAQ\u200b<\/p>\n\n\n\n<p>\u542f\u52a8\u62a5\u9519 \u201c\u7cfb\u7edf\u7528\u6237\u540d\u542b\u4e2d\u6587\u201d?\u200b<\/p>\n\n\n\n<p>\u539f\u56e0\uff1a\u4e2d\u6587\u8def\u5f84\u4f1a\u5bfc\u81f4\u4f9d\u8d56\u5305\u52a0\u8f7d\u5931\u8d25\uff0c\u662f FaceFusion \u5e38\u89c1\u8fd0\u884c\u969c\u788d\u3002\u89e3\u51b3\u65b9\u6848\uff1a\u521b\u5efa\u7528\u6237\u540d\u7eaf\u82f1\u6587\u7684\u7cfb\u7edf\u8d26\u6237\uff0c\u5207\u6362\u8d26\u6237\u540e\u91cd\u65b0\u914d\u7f6e\u73af\u5883;\u6216\u4f7f\u7528\u865a\u62df\u673a\u3001Docker \u5bb9\u5668\u8fd0\u884c\u7a0b\u5e8f\uff0c\u907f\u514d\u4e2d\u6587\u8def\u5f84\u5f71\u54cd\u3002\u200b<\/p>\n\n\n\n<p>\u63d0\u793a \u201cCUDA out of memory\u201d?\u200b<\/p>\n\n\n\n<p>\u539f\u56e0\uff1a\u663e\u5b58\u4e0d\u8db3\uff0c\u65e0\u6cd5\u652f\u6491\u5f53\u524d\u914d\u7f6e\u7684\u5904\u7406\u4efb\u52a1\u3002\u89e3\u51b3\u65b9\u6848\uff1a\u5173\u95ed GFPGAN\u3001CodeFormer \u7b49\u540e\u5904\u7406\u5de5\u5177\uff0c\u51cf\u5c11\u663e\u5b58\u5360\u7528;\u5c06\u8f93\u51fa\u5206\u8fa8\u7387\u964d\u4f4e\u81f3 720p;\u5728\u89c6\u9891\u5185\u5b58\u7b56\u7565\u4e2d\u9009\u62e9 \u201cstrict\u201d\uff0c\u4e25\u683c\u63a7\u5236\u663e\u5b58\u4f7f\u7528;\u5bf9\u4e8e\u957f\u89c6\u9891\uff0c\u53ef\u5206\u5272\u4e3a\u6bcf\u6279\u2264100 \u5e27\u7684\u7247\u6bb5\u5206\u6279\u5904\u7406\u3002\u200b<\/p>\n\n\n\n<p>FFmpeg \u672a\u627e\u5230 \/ \u65e0\u6cd5\u5904\u7406\u89c6\u9891?\u200b<\/p>\n\n\n\n<p>\u539f\u56e0\uff1aFFmpeg \u672a\u5b89\u88c5\u6210\u529f\uff0c\u6216\u672a\u6dfb\u52a0\u5230\u7cfb\u7edf PATH \u73af\u5883\u53d8\u91cf\u3002\u89e3\u51b3\u65b9\u6848\uff1a\u91cd\u65b0\u5b89\u88c5 FFmpeg\uff0c\u6309\u7cfb\u7edf\u7c7b\u578b\u6b63\u786e\u914d\u7f6e\u73af\u5883\u53d8\u91cf;\u91cd\u542f\u7535\u8111\u786e\u4fdd\u914d\u7f6e\u751f\u6548\uff0c\u7ec8\u7aef\u8f93\u5165ffmpeg -version\u9a8c\u8bc1\u662f\u5426\u80fd\u6b63\u5e38\u8bc6\u522b;\u786e\u4fdd FFmpeg \u5b89\u88c5\u8def\u5f84\u65e0\u4e2d\u6587\u6216\u7279\u6b8a\u5b57\u7b26\u3002\u200b<\/p>\n\n\n\n<p>\u6362\u8138\u540e\u753b\u9762\u6a21\u7cca \/ \u6709\u6b8b\u5f71?\u200b<\/p>\n\n\n\n<p>\u539f\u56e0\uff1a\u6e90\u56fe\u6e05\u6670\u5ea6\u4e0d\u8db3\u3001\u4eba\u8138\u5bf9\u9f50\u7cbe\u5ea6\u4f4e\uff0c\u6216\u6a21\u578b\u9002\u914d\u6027\u5dee\u3002\u89e3\u51b3\u65b9\u6848\uff1a\u66f4\u6362\u9ad8\u6e05\u3001\u6b63\u9762\u7684\u6e90\u4eba\u8138\u56fe\u7247;\u8c03\u6574\u4eba\u8138\u68c0\u6d4b\u7f6e\u4fe1\u5ea6\u81f3 0.7-0.8.\u63d0\u5347\u5bf9\u9f50\u7cbe\u5ea6;\u66f4\u6362 inswapper_128.onnx \u7b49\u9ad8\u7cbe\u5ea6\u6a21\u578b\uff0c\u6216\u542f\u7528\u540e\u5904\u7406\u5de5\u5177\u4f18\u5316\u753b\u8d28\u3002\u200b<\/p>\n\n\n\n<p>CUDA \u52a0\u8f7d\u5931\u8d25\uff0c\u56de\u9000\u5230 CPU \u6a21\u5f0f?\u200b<\/p>\n\n\n\n<p>\u539f\u56e0\uff1aCUDA \u4e0e cuDNN \u7248\u672c\u4e0d\u5339\u914d\u3001\u663e\u5361\u9a71\u52a8\u8fc7\u65f6\uff0c\u6216onnxruntime-gpu\u5b89\u88c5\u5f02\u5e38\u3002\u89e3\u51b3\u65b9\u6848\uff1a\u786e\u8ba4 CUDA 12.4 + \u4e0e cuDNN 8.9.x \u7248\u672c\u517c\u5bb9;\u66f4\u65b0\u663e\u5361\u9a71\u52a8\u81f3\u6700\u65b0\u7248\u672c;\u5378\u8f7d\u73b0\u6709onnxruntime-gpu\uff0c\u91cd\u65b0\u5b89\u88c5onnxruntime-gpu==1.16.3.\u786e\u4fdd\u4e0e CUDA \u7248\u672c\u9002\u914d\u3002\u200b<\/p>\n\n\n\n<p>\u6a21\u578b\u4e0b\u8f7d\u7f13\u6162\u6216\u5931\u8d25?\u200b<\/p>\n\n\n\n<p>\u539f\u56e0\uff1a\u56fd\u5916\u670d\u52a1\u5668\u7f51\u7edc\u6ce2\u52a8\uff0c\u5bfc\u81f4\u6a21\u578b\u6587\u4ef6\u4e0b\u8f7d\u53d7\u963b\u3002\u89e3\u51b3\u65b9\u6848\uff1a\u6539\u7528\u56fd\u5185\u955c\u50cf\u7ad9\u70b9(\u5982hf-mirror.com)\u624b\u52a8\u4e0b\u8f7d\u6a21\u578b;\u5c06\u4e0b\u8f7d\u540e\u7684\u6a21\u578b\u6587\u4ef6\u6309\u8981\u6c42\u653e\u5165models\u6587\u4ef6\u5939\u5bf9\u5e94\u5b50\u76ee\u5f55(\u53ef\u53c2\u8003\u9879\u76ee\u6587\u6863\u7684\u8def\u5f84\u8bf4\u660e);\u4e5f\u53ef\u901a\u8fc7\u53ef\u9760\u7f51\u76d8\u83b7\u53d6\u6a21\u578b\u6587\u4ef6\uff0c\u89e3\u538b\u540e\u653e\u7f6e\u5230\u6307\u5b9a\u4f4d\u7f6e\u3002\u200b<\/p>\n\n\n\n<p>\u6362\u8138\u540e\u97f3\u9891\u4e0d\u540c\u6b65?\u200b<\/p>\n\n\n\n<p>\u539f\u56e0\uff1a\u89c6\u9891\u5904\u7406\u8fc7\u7a0b\u4e2d\u97f3\u9891\u7f16\u7801\u5f02\u5e38\uff0c\u6216\u5e27\u5904\u7406\u901f\u5ea6\u4e0d\u4e00\u81f4\u3002\u89e3\u51b3\u65b9\u6848\uff1a\u5728 WebUI \u4e2d\u52fe\u9009 \u201cCopy Audio\u201d \u9009\u9879\uff0c\u786e\u4fdd\u97f3\u9891\u76f4\u63a5\u590d\u5236\u5230\u8f93\u51fa\u6587\u4ef6;\u8bbe\u7f6e\u97f3\u9891\u7f16\u7801\u5668\u4e3a \u201caac\u201d\uff0c\u63d0\u5347\u517c\u5bb9\u6027;\u82e5\u4ecd\u4e0d\u540c\u6b65\uff0c\u53ef\u5148\u7528 FFmpeg \u5206\u79bb\u76ee\u6807\u89c6\u9891\u7684\u97f3\u9891\uff0c\u6362\u8138\u5b8c\u6210\u540e\u518d\u5c06\u97f3\u9891\u4e0e\u89c6\u9891\u91cd\u65b0\u5408\u6210\u3002\u200b<\/p>\n\n\n\n<p>macOS \u65e0\u6cd5\u542f\u7528 GPU \u52a0\u901f?\u200b<\/p>\n\n\n\n<p>\u539f\u56e0\uff1a\u9ed8\u8ba4\u4f9d\u8d56\u5305\u4e0d\u652f\u6301\u82f9\u679c\u82af\u7247 GPU \u52a0\u901f\u3002\u89e3\u51b3\u65b9\u6848\uff1a\u82f9\u679c Silicon(M1\/M2\/M3)\u7528\u6237\u9700\u5378\u8f7d\u9ed8\u8ba4onnxruntime\uff0c\u6267\u884cpip install onnxruntime-silicon\u5b89\u88c5\u4e13\u5c5e\u7248\u672c\uff0c\u542f\u7528 Core ML \u52a0\u901f\u529f\u80fd\uff0c\u5927\u5e45\u63d0\u5347\u5904\u7406\u901f\u5ea6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>FaceFusion\u5bf9\u4e8e\u786c\u4ef6\u914d\u7f6e\u8981\u6c42\u76f8\u5bf9\u8f83\u9ad8,\u4e3a\u4e86\u6ee1\u8db3\u6570\u636e\u5904&hellip;<\/p>\n","protected":false},"author":2,"featured_media":54,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-52","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-zixun"],"views":96,"_links":{"self":[{"href":"https:\/\/www.starverse-ai.com\/guide\/wp-json\/wp\/v2\/posts\/52","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.starverse-ai.com\/guide\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.starverse-ai.com\/guide\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.starverse-ai.com\/guide\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.starverse-ai.com\/guide\/wp-json\/wp\/v2\/comments?post=52"}],"version-history":[{"count":2,"href":"https:\/\/www.starverse-ai.com\/guide\/wp-json\/wp\/v2\/posts\/52\/revisions"}],"predecessor-version":[{"id":128,"href":"https:\/\/www.starverse-ai.com\/guide\/wp-json\/wp\/v2\/posts\/52\/revisions\/128"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.starverse-ai.com\/guide\/wp-json\/wp\/v2\/media\/54"}],"wp:attachment":[{"href":"https:\/\/www.starverse-ai.com\/guide\/wp-json\/wp\/v2\/media?parent=52"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.starverse-ai.com\/guide\/wp-json\/wp\/v2\/categories?post=52"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.starverse-ai.com\/guide\/wp-json\/wp\/v2\/tags?post=52"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}