ComfyUI-MuseTalk部署依赖mmcv

news2024/11/16 3:48:26

ComfyUI-MuseTalk部署依赖mmcv

        ComfyUI-MuseTalk是MuseTalk基于ComfyUI的自定义节点插件。MMPose 是一款基于 PyTorch 的“人体姿态”分析的开源工具箱,是 OpenMMLab 项目的成员之一。OpenMMLab 团队致力于构建了深度学习时代最具影响力的开源计算机视觉算法系统,于 2022 年 9 月 1 日在世界人工智能大会发布了新一代训练引擎 MMEngine,它是一个用于训练深度学习模型的基础库(MMEngine 是一个基于 PyTorch 实现的,用于训练深度学习模型的基础库。它作为 OpenMMLab 所有代码库的训练引擎,其在不同研究领域支持了上百个算法。此外,MMEngine 也可以用于非 OpenMMLab 项目中)。相比于 MMCV,它提供了更高级且通用的训练器、接口更加统一的开放架构以及可定制化程度更高的训练流程。MMCV v2.0.0 正式版本于 2023 年 4 月 6 日发布。在 2.x 版本中,它删除了和训练流程相关的组件,并新增了数据变换模块。

AIGC文生图音频合成ComfyUI-MuseTalk测试

        ComfyUI-MuseTalk运行时,默认安装依赖mmpose必须依赖mmcv才能正确执行。

一、现象-运行时错误

二、解决

2.1、如果当前python独立环境配置了国内镜像就不要开墙

       否则http从国外“请求”及“回调”时会出现问题:

2.2、用一键包安装

        当前环境:

        开始“重新安装”:

        仍然有错误,因为它内部直接将其升级安装为mmcv包的当前最新版本2.2.0(截止2024-07-25):

2.3、手动安装

C:\>E:

E:>cd E:\ComfyUI-aki\ComfyUI-aki-v1.3\python

E:\ComfyUI-aki\ComfyUI-aki-v1.3\python>python.exe -m pip show mmcv

E:\ComfyUI-aki\ComfyUI-aki-v1.3\python>python.exe -m pip install mmcv==2.0.0rc4

Microsoft Windows [版本 10.0.19045.4291]
(c) Microsoft Corporation。保留所有权利。

E:\ComfyUI-aki\ComfyUI-aki-v1.3\python>python.exe
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

help> modules mmcv

Here is a list of modules whose name or summary contains 'mmcv'.
If there are any, enter a module name to get more help.

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "E:\ComfyUI-aki\ComfyUI-aki-v1.3\python\lib\_sitebuiltins.py", line 103, in __call__
    return pydoc.help(*args, **kwds)
  File "E:\ComfyUI-aki\ComfyUI-aki-v1.3\python\lib\pydoc.py", line 2009, in __call__
    self.interact()
  File "E:\ComfyUI-aki\ComfyUI-aki-v1.3\python\lib\pydoc.py", line 2036, in interact
    self.help(request)
  File "E:\ComfyUI-aki\ComfyUI-aki-v1.3\python\lib\pydoc.py", line 2055, in help
    self.listmodules(request.split()[1])
  File "E:\ComfyUI-aki\ComfyUI-aki-v1.3\python\lib\pydoc.py", line 2191, in listmodules
    apropos(key)
  File "E:\ComfyUI-aki\ComfyUI-aki-v1.3\python\lib\pydoc.py", line 2285, in apropos
    ModuleScanner().run(callback, key, onerror=onerror)
  File "E:\ComfyUI-aki\ComfyUI-aki-v1.3\python\lib\pydoc.py", line 2234, in run
    for importer, modname, ispkg in pkgutil.walk_packages(onerror=onerror):
  File "E:\ComfyUI-aki\ComfyUI-aki-v1.3\python\lib\pkgutil.py", line 92, in walk_packages
    __import__(info.name)
  File "E:\ComfyUI-aki\ComfyUI-aki-v1.3\python\lib\site-packages\clip_interrogator\__init__.py", line 1, in <module>
    from .clip_interrogator import Config, Interrogator, LabelTable, list_caption_models, list_clip_models, load_list
  File "E:\ComfyUI-aki\ComfyUI-aki-v1.3\python\lib\site-packages\clip_interrogator\clip_interrogator.py", line 4, in <module>
    import open_clip
  File "E:\ComfyUI-aki\ComfyUI-aki-v1.3\python\lib\site-packages\open_clip\__init__.py", line 1, in <module>
    from .coca_model import CoCa
  File "E:\ComfyUI-aki\ComfyUI-aki-v1.3\python\lib\site-packages\open_clip\coca_model.py", line 15, in <module>
    from .model import CLIPTextCfg, CLIPVisionCfg, _build_vision_tower, _build_text_tower
  File "E:\ComfyUI-aki\ComfyUI-aki-v1.3\python\lib\site-packages\open_clip\model.py", line 16, in <module>
    from .hf_model import HFTextEncoder
  File "E:\ComfyUI-aki\ComfyUI-aki-v1.3\python\lib\site-packages\open_clip\hf_model.py", line 13, in <module>
    from transformers import AutoModel, AutoTokenizer, AutoConfig, PretrainedConfig
  File "<frozen importlib._bootstrap>", line 1075, in _handle_fromlist
  File "E:\ComfyUI-aki\ComfyUI-aki-v1.3\python\lib\site-packages\transformers\utils\import_utils.py", line 1174, in __getattr__
    module = self._get_module(self._class_to_module[name])
  File "E:\ComfyUI-aki\ComfyUI-aki-v1.3\python\lib\site-packages\transformers\utils\import_utils.py", line 1184, in _get_module
    return importlib.import_module("." + module_name, self.__name__)
  File "E:\ComfyUI-aki\ComfyUI-aki-v1.3\python\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "E:\ComfyUI-aki\ComfyUI-aki-v1.3\python\lib\site-packages\transformers\models\__init__.py", line 15, in <module>
    from . import (
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 879, in exec_module
  File "<frozen importlib._bootstrap_external>", line 1029, in get_code
  File "<frozen importlib._bootstrap_external>", line 1097, in _cache_bytecode
  File "<frozen importlib._bootstrap_external>", line 1111, in set_data

>>> quit()

E:\ComfyUI-aki\ComfyUI-aki-v1.3\python>python.exe -m pip show mmcv
Name: mmcv
Version: 2.2.0
Summary: OpenMMLab Computer Vision Foundation
Home-page: https://github.com/open-mmlab/mmcv
Author: MMCV Contributors
Author-email: openmmlab@gmail.com
License:
Location: e:\comfyui-aki\comfyui-aki-v1.3\python\lib\site-packages
Requires: addict, mmengine, numpy, packaging, Pillow, pyyaml, regex, yapf
Required-by:

E:\ComfyUI-aki\ComfyUI-aki-v1.3\python>python.exe -m pip install mmcv==2.0.0rc4
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting mmcv==2.0.0rc4
  Downloading mmcv-2.0.0rc4.tar.gz (436 kB)
     ---------------------------------------- 436.4/436.4 kB 16.0 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Requirement already satisfied: addict in e:\comfyui-aki\comfyui-aki-v1.3\python\lib\site-packages (from mmcv==2.0.0rc4) (2.4.0)
Requirement already satisfied: mmengine>=0.2.0 in e:\comfyui-aki\comfyui-aki-v1.3\python\lib\site-packages (from mmcv==2.0.0rc4) (0.10.4)
Requirement already satisfied: numpy in e:\comfyui-aki\comfyui-aki-v1.3\python\lib\site-packages (from mmcv==2.0.0rc4) (1.26.4)
Requirement already satisfied: packaging in e:\comfyui-aki\comfyui-aki-v1.3\python\lib\site-packages (from mmcv==2.0.0rc4) (24.1)
Requirement already satisfied: Pillow in e:\comfyui-aki\comfyui-aki-v1.3\python\lib\site-packages (from mmcv==2.0.0rc4) (10.4.0)
Requirement already satisfied: pyyaml in e:\comfyui-aki\comfyui-aki-v1.3\python\lib\site-packages (from mmcv==2.0.0rc4) (6.0.1)
Requirement already satisfied: yapf in e:\comfyui-aki\comfyui-aki-v1.3\python\lib\site-packages (from mmcv==2.0.0rc4) (0.40.2)
Requirement already satisfied: regex in e:\comfyui-aki\comfyui-aki-v1.3\python\lib\site-packages (from mmcv==2.0.0rc4) (2024.7.24)
Requirement already satisfied: rich in e:\comfyui-aki\comfyui-aki-v1.3\python\lib\site-packages (from mmengine>=0.2.0->mmcv==2.0.0rc4) (13.7.1)
Requirement already satisfied: opencv-python>=3 in e:\comfyui-aki\comfyui-aki-v1.3\python\lib\site-packages (from mmengine>=0.2.0->mmcv==2.0.0rc4) (4.8.1.78)
Requirement already satisfied: matplotlib in e:\comfyui-aki\comfyui-aki-v1.3\python\lib\site-packages (from mmengine>=0.2.0->mmcv==2.0.0rc4) (3.9.1)
Requirement already satisfied: termcolor in e:\comfyui-aki\comfyui-aki-v1.3\python\lib\site-packages (from mmengine>=0.2.0->mmcv==2.0.0rc4) (2.4.0)
Requirement already satisfied: importlib-metadata>=6.6.0 in e:\comfyui-aki\comfyui-aki-v1.3\python\lib\site-packages (from yapf->mmcv==2.0.0rc4) (8.2.0)
Requirement already satisfied: platformdirs>=3.5.1 in e:\comfyui-aki\comfyui-aki-v1.3\python\lib\site-packages (from yapf->mmcv==2.0.0rc4) (4.2.2)
Requirement already satisfied: tomli>=2.0.1 in e:\comfyui-aki\comfyui-aki-v1.3\python\lib\site-packages (from yapf->mmcv==2.0.0rc4) (2.0.1)
Requirement already satisfied: zipp>=0.5 in e:\comfyui-aki\comfyui-aki-v1.3\python\lib\site-packages (from importlib-metadata>=6.6.0->yapf->mmcv==2.0.0rc4) (3.19.2)
Requirement already satisfied: contourpy>=1.0.1 in e:\comfyui-aki\comfyui-aki-v1.3\python\lib\site-packages (from matplotlib->mmengine>=0.2.0->mmcv==2.0.0rc4) (1.2.1)
Requirement already satisfied: fonttools>=4.22.0 in e:\comfyui-aki\comfyui-aki-v1.3\python\lib\site-packages (from matplotlib->mmengine>=0.2.0->mmcv==2.0.0rc4) (4.53.1)
Requirement already satisfied: cycler>=0.10 in e:\comfyui-aki\comfyui-aki-v1.3\python\lib\site-packages (from matplotlib->mmengine>=0.2.0->mmcv==2.0.0rc4) (0.12.1)
Requirement already satisfied: kiwisolver>=1.3.1 in e:\comfyui-aki\comfyui-aki-v1.3\python\lib\site-packages (from matplotlib->mmengine>=0.2.0->mmcv==2.0.0rc4) (1.4.5)
Requirement already satisfied: python-dateutil>=2.7 in e:\comfyui-aki\comfyui-aki-v1.3\python\lib\site-packages (from matplotlib->mmengine>=0.2.0->mmcv==2.0.0rc4) (2.9.0.post0)
Requirement already satisfied: pyparsing>=2.3.1 in e:\comfyui-aki\comfyui-aki-v1.3\python\lib\site-packages (from matplotlib->mmengine>=0.2.0->mmcv==2.0.0rc4) (3.1.2)
Requirement already satisfied: markdown-it-py>=2.2.0 in e:\comfyui-aki\comfyui-aki-v1.3\python\lib\site-packages (from rich->mmengine>=0.2.0->mmcv==2.0.0rc4) (3.0.0)
Requirement already satisfied: pygments<3.0.0,>=2.13.0 in e:\comfyui-aki\comfyui-aki-v1.3\python\lib\site-packages (from rich->mmengine>=0.2.0->mmcv==2.0.0rc4) (2.18.0)
Requirement already satisfied: mdurl~=0.1 in e:\comfyui-aki\comfyui-aki-v1.3\python\lib\site-packages (from markdown-it-py>=2.2.0->rich->mmengine>=0.2.0->mmcv==2.0.0rc4) (0.1.2)
Requirement already satisfied: six>=1.5 in e:\comfyui-aki\comfyui-aki-v1.3\python\lib\site-packages (from python-dateutil>=2.7->matplotlib->mmengine>=0.2.0->mmcv==2.0.0rc4) (1.16.0)
Building wheels for collected packages: mmcv
  Building wheel for mmcv (setup.py) ... done
  Created wheel for mmcv: filename=mmcv-2.0.0rc4-cp310-cp310-win_amd64.whl size=4528477 sha256=eb3c981a1a6edde4211523bd1f1790cc02822d36ac8c0c754dfe252cec807c3d
  Stored in directory: C:\Users\Administrator\AppData\Local\Temp\pip-ephem-wheel-cache-5cwh2zk1\wheels\1a\14\d1\793dd16d71f91daf81152095a93d43618e60dee1762c678940
Successfully built mmcv
Installing collected packages: mmcv
  Attempting uninstall: mmcv
    Found existing installation: mmcv 2.2.0
    Uninstalling mmcv-2.2.0:
      Successfully uninstalled mmcv-2.2.0
Successfully installed mmcv-2.0.0rc4

[notice] A new release of pip is available: 23.0.1 -> 24.1.2
[notice] To update, run: python.exe -m pip install --upgrade pip

E:\ComfyUI-aki\ComfyUI-aki-v1.3\python>

2.4、下载并正确组织"权重"路径

2.4.1、下载weight权重文件

        下载的位置

2.4.2、"权重"路径的组织
  • MuseTalk根路径:

E:\ComfyUI-aki\ComfyUI-aki-v1.3\models\diffusers\TMElyralab\MuseTalk

  • MuseTalk的models路径同时部署:

  • 其中权重文件79999_iter.pth的版本key值(即文件hash)很重要:

2.5、一键包启动时自动使用权重dw-ll_ucoco_384.pth后端下载checkpoint大模型

        如果“手动安装”成功,开始后端下载checkpoint大模型:

Loads checkpoint by local backend from path:E:\ComfyUI-aki\ComfyUI-aki-v1.3\models\diffusers\TMElyralab/MuseTalk/dwpose/dw-ll_ucoco_384.pth

Downloading: "https://www.adrianbulat.com/downloads/python-fan/s3fd-619a316812.pth"
to
E:\ComfyUI-aki\ComfyUI-aki-v1.3\.cache\torch\hub\checkpoints\s3fd-619a316812.pth

        如果第一次不成功,就再“一键启动”一次即可。 

2.6、一键包执行

三、配置并执行工作流

wf_sun_musetalk.json (下载后去掉“.txt”扩展名)—— 

https://www.cpuofbs.com/tests/ai/SD/comfyUI/wf_sun_musetalk.json.txt

四、结果

[https://www.cpuofbs.com/tests/ai/SD/comfyUI/AnimateDiff_00018-audio.mp4]

https://www.cpuofbs.com/tests/ai/SD/comfyUI/AnimateDiff_00018-audio.mp4

ComfyUI-MuseTalk的测试视频

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/1964224.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

【C++标准库】介绍及使用string类

string 一.string类介绍二.string类的静态成员变量三.string类的常用接口1.构造函数&#xff08;constructor&#xff09;2.析构函数&#xff08;destructor&#xff09;3.运算符重载&#xff08;operator&#xff09;1.operator2.operator[]3.operator4.operator 4.string的四…

SecureCrt设置豆沙绿

绿豆沙色能有效的减轻长时间用电脑的用眼疲劳&#xff01; 色调&#xff1a;85&#xff0c;饱和度&#xff1a;123&#xff0c;亮度&#xff1a;205&#xff1b;RGB颜色红&#xff1a;199&#xff0c;绿&#xff1a;237&#xff0c;蓝&#xff1a;204&#xff1b; 十六进制颜色…

3步阐述搜索框做了什么事情

搜索功能是几乎每个产品的通用标配功能&#xff0c;一个看似简单的搜索框背后&#xff0c;其实隐含了大量的设计思考和技术壁垒。本文将从三个部分阐述&#xff0c;为何搜索框并不简单。 本文将从搜索场景的思考、基于步骤的搜索设计以及搜索数据的追踪3个部分&#xff0c;对产…

今日arXiv最热大模型论文:北京大学最新综述:视觉大模型中的漏洞与攻防对抗

近年来&#xff0c;视觉语言大模型&#xff08;LVLM&#xff09;在文本转图像、视觉问答等任务中大放异彩&#xff0c;背后离不开海量数据、强大算力和复杂参数的支撑。 但是&#xff01;大模型看似庞大的身躯背后却有一颗脆弱的“心脏”&#xff0c;极易受到攻击。攻击者可以…

史上最全,网工必考证书大盘点,竟然有20多个?

最近很多朋友来咨询&#xff0c;作为网工能考什么证书&#xff1f;证书那么多要怎么选择&#xff1f;哪个性价比高、哪个回报大等等等等的问题。 不难看出&#xff0c;大家最近这个想要学习和提升的势头很猛&#xff0c;毕竟现在这个环境下&#xff0c;属实是不好过了&#xff…

FPGA开发——数码管的使用(二)

一、概述 在上一篇文章中我们针对单个数码管的静态显示和动态显示进行了一个设计和实现&#xff0c;这篇文章中我们针对多个数码管同时显示进行一个设计。这里和上一篇文章唯一不同的是就是数码管位选进行了一个改变&#xff0c;原来是单个数码管的显示&#xff0c;所以位选就直…

Android Studio运行报错:module java.base dose not “opens java.io“ to unnamed module

今天第一次使用Android Studio运行一个安卓工程&#xff0c;报如图错误,应该是环境问题。 解决&#xff1a; 右上角的设置图标->settings->Buid,Execution,Deployment->Build Tools->Gradle->Gradle JDK->选择本地环境的java_home jdk&#xff08;怎么安装…

docker镜像不可用

现在阿里、163等docker镜像基本不能使用&#xff0c;不能pull镜像了。 1.腾讯云内部 腾讯云服务器内部可用镜像&#xff08;当然&#xff0c;需要先有一个腾讯云服务器&#xff09;&#xff1a;https://mirror.ccs.tencentyun.com 配置方法&#xff0c;vi /etc/docker/daemon…

C++—— IO流

一、C语言的输入与输出 C语言中我们用到的最频繁的输入输出方式就是scanf()和printf()。 scanf()&#xff1a;从标准输入设备&#xff08;键盘&#xff09;中读取数据&#xff0c;并将值存放在变量中。 printf()&#xff1a;将指定的文字/字符串输出到标准输出设备&#xff08;…

Python 聊天机器人项目-8-学习使用 NLTK 和 Keras 构建您的第一个聊天机器人

一、前言 该文章仅作为个人学习使用 二、正文 项目源代码&#xff1a;Python 聊天机器人项目 - 学习使用 NLTK 和 Keras 构建您的第一个聊天机器人 - DataFlair (data-flair.training) 数据集&#xff1a;https://data-flair.training/blogs/download-python-chatbot-data-…

Web3时代:科技与物联网的完美结合

随着信息技术的不断进步和物联网应用的普及&#xff0c;Web3技术作为下一代互联网的重要组成部分&#xff0c;正逐渐与物联网技术深度融合&#xff0c;共同开创了新的科技时代。本文将深入探讨Web3技术与物联网的结合&#xff0c;探索它们如何共同推动未来科技发展的新趋势和应…

【32单片机篇】项目:智能排队控制系统

一、项目需求 1. 红外传感器检测有人通过并计数&#xff1b; 2. 计数值显示在LCD1602&#xff1b; 3. 允许通过时&#xff0c;LED1闪烁&#xff0c;蜂鸣器不响&#xff0c;继电器不闭合&#xff1b; 4. 不允许通过时&#xff0c;LED2闪烁&#xff0c;蜂鸣器响&#xff0c;继电…

工信部:2024上半年我国信息安全领域收入909亿元

2024年上半年软件业经济运行情况 上半年&#xff0c;我国软件和信息技术服务业&#xff08;以下简称“软件业”&#xff09;运行态势良好&#xff0c;软件业务收入和利润均保持两位数增长&#xff0c;软件业务出口收入增速由负转正&#xff0c;主要大省持续向好发展。 一、总…

光纤基础科普

这部分主要介绍光纤的常见接口&#xff08;四种&#xff09;、光纤传输的种类、光模块的封装类型。 文章目录 一、光纤的常见接口二、光模块封装三、光纤传输种类 一、光纤的常见接口 光纤接口种类繁多&#xff0c;这里给出常用的四种 &#xff08;1&#xff09;SC 型光纤接…

C++静态成员变量和静态成员函数

演示代码如下&#xff1a; #include<iostream> using namespace std;class Person { public://静态成员函数 所有对象共享一个函数&#xff0c;且只能调用静态成员变量 ******static void func(){m_A 300;cout << "静态成员函数调用" << endl;}/…

Charles抓包工具系列文章(七)-- Rewrite工具的应用示例

一、背景 客户端通过域名访问后端服务,在api网关层,会判断path的前缀,默认/api开头的请求都转发至后端服务A。 当前缀是/assist/api开头,请求将转发至后端服务B(部署在192.168.80.226,便于测试对比) 在不改动kong网关配置的情况下,现需要把后者的请求转发至192.168.…

RxJava基础使用

Rx思想 事件从起点流向终点。 过程中可以对事件进行拦截&#xff0c;拦截时可以对事件进行处理&#xff0c;处理后将处理后的事件继续流向终点。 终点接收上一次处理后的事件。 获取网络图片并显示 基础实现 使用Observable.just(path) 创建图片路径的Observable。 使用m…

reshape函数及MATLAB应用

reshape 函数在 MATLAB 中是一个非常有用的函数&#xff0c;通过重新排列现有元素来重构数组。它允许你重新调整数组&#xff08;或矩阵&#xff09;的尺寸&#xff0c;而不改变其数据。这个函数特别适用于当你需要将一个矩阵或数组从一种结构转换为另一种结构时&#xff0c;只…

黑神话悟空是什么游戏 黑神话悟空配置要求 黑神话悟空好玩吗值得买吗 黑神话悟空苹果电脑可以玩吗

《黑神话&#xff1a;悟空》的类型定义是一款单机动作角色扮演游戏&#xff0c;但实际体验后会发现&#xff0c;游戏在很多设计上采用了「魂like」作品的常见元素。根据个人上手试玩&#xff0c;《黑神话&#xff1a;悟空》的推进节奏比较接近魂类游戏&#xff0c;Boss战也更像…

数据结构--双链表,循环链表,静态链表代码(王道书上代码手敲!!!)c++

目录 1.带头结点的双链表的初始化&#xff0c;判断链表是否为空&#xff0c;前插&#xff0c;后插&#xff0c;按位序插&#xff0c;删除后继节点&#xff0c;按位查找&#xff0c;按之查找&#xff0c;清空链表&#xff0c;销毁链表&#xff0c;遍历打印列表操作 2. 循环单链…