自学内容网 自学内容网

FaceFusion2.61安装及配置使用CUDA+cudnn

最近更新安装FaceFusion2.61,发现仍然只有Azure和CPU两个设备选项。找了一些文章,要么是需要特定低版本cuda+cudnn+onnxruntime相匹配,要么就是低端显卡不行。直到看到Install ONNX Runtime | onnxruntime上的安装指南,才知道“For Cuda 12.x, please use the following instructions to install from ORT Azure Devops Feed”,安装指令如下:

pip install onnxruntime-gpu --extra-index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/

按照此指令,重新安装onnxruntime-gpu,运行FaceFusion2.61,则出现了Cuda选项。

但是,这离正常使用还远远不够。现将我的安装环境及安装步骤重现如下:

一、显卡及cuda版本

Cuda是最新的12.5,显卡是笔记本级GeForce MX450,2G显存,内存16G,共享GPU内在7.9G ,intel I7 Cpu。

二、创建conda环境

因为FaceFusion2.61使用onnx模型加速器,因此不只需要安装onnx和onnxruntime以及cuda+cudnn就可以,不需要安装pytorch。所以环境以此为基础搭建。

python=3.10.13

conda create -n ff2 python=3.10

 二、下载Facefusion并安装


原文地址:https://blog.csdn.net/liangma/article/details/140628691

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!