今天在调试应用EchoMimic的时候,运行webui脚本,应用报错了,部分错误信息如下:
Traceback (most recent call last):
File “D:\python\EchoMimic\myenv\lib\site-packages\anyio_backends_asyncio.py”, line 2441, in run_sync_in_worker_thread
return await future
File “D:\python\EchoMimic\myenv\lib\site-packages\anyio_backends_asyncio.py”, line 943, in run
result = context.run(func, args) File “D:\python\EchoMimic\myenv\lib\site-packages\gradio\utils.py”, line 846, in wrapper response = f(args, **kwargs)
File “D:\python\EchoMimic\gradio_app.py”, line 34, in infer_a2v
path_video = infer(
File “D:\python\EchoMimic\my_infer_audio2vid.py”, line 214, in infer
face_img = cv2.resize(face_img, (width, height))
cv2.error: OpenCV(4.10.0) :-1: error: (-5:Bad argument) in function ‘resize’
Overload resolution failed:
- src is not a numerical tuple
- Expected Ptrfor argument ‘src’
意思是传递给cv2.resize的不是有效的图像数组数据,原代码如下:
face_img = crop_and_pad(face_img, crop_rect)
face_mask = crop_and_pad(face_mask, crop_rect)
face_img = cv2.resize(face_img, (width, height))
face_mask = cv2.resize(face_mask, (width, height))
代码修改方式如下:
face_img,_ = crop_and_pad(face_img, crop_rect)
face_mask,_ = crop_and_pad(face_mask, crop_rect)
face_img = cv2.resize(face_img, (width, height))
face_mask = cv2.resize(face_mask, (width, height))
问题解决,不再报错
相关推荐
UserWarning: Specified provider 'CUDAExecutionProvider' is not in available provider names.Available providers: 'AzureExecutionProvider
下载huggingface.co网站上模型文件的几种方法,包括需要登录的验证的模型
windows电脑安装DeepSpeed报错提示无法打开输入文件“aio.lib”等
TypeError: argument of type 'bool' is not iterable ERROR: Exception in ASGI application
AttributeError: module 'gradio' has no attribute 'inputs'解决方法
AttributeError: module 'gradio' has no attribute 'make_waveform'解决方法
windows电脑安装pytorch下载缓慢安装失败解决方法
ModuleNotFoundError: No module named 'cv2'
最近更新

2D图片转3D视频软件stable-virtual-camera本地电脑安装部署教程及注意问题

2D照片转3D视频软件stable-virtual-camera免安装一键启动整合包下载
本次和大家分享一个好玩实用的2D图片转3D视频软件stable-virtual-camera,支持多种相机模式,生成的3D视频效果丰富多样,适合多种使用场景,我基于当前最新版本制作了免安装一键启动整合包。 stable-virtual-ca...

AI歌曲生成软件DiffRhythm本地电脑安装部署教程及注意事项

AI歌曲创作软件DiffRhythm一键启动包,自定义风格AI谱曲演唱
DiffRhythm是首个基于扩散技术的开源音乐生成模型,能够创作完整的歌曲,包括AI谱曲,AI演唱。基于当前最新V1.2版本我制作了免安装一键启动整合包。 DiffRhythm介绍 Di♪♪Rhythm:速度惊人、简单至极、具有潜在扩散的...

表情转移对口型软件LivePortrait本地电脑安装部署教程及注意问题

漫画图片文字翻译软件manga-image-translator本地电脑安装部署教程及问题修复

字节跳动多图合成软件UNO本地电脑安装部署教程及注意问题

AI视频生成软件FramePack本地电脑安装部署教程

虚拟试衣产品设计多图合成软件UNO一键启动整合包,人物转动漫工具
UNO是字节跳动开发的一款多主体图像生成软件,解决了角色或物体一致性的问题,可用于漫画、虚拟试衣等场景。我基于当前最新版本制作了免安装一键启动整合包。 UNO介绍 UNO是一款基于扩散模型的AI图像生成工具,核心目标是解决AI生成图像时难以...

临时邮箱,一次性匿名gmail.com邮箱
有时候网站需要测试一些功能,比如注册登录等,需要用到邮箱,但是自己的邮箱有限,不能更多的测试效果,这时候就需要一些不同后缀的一次性邮箱,网上有很多这样的一次性匿名邮箱,后缀很多,非常适合测试使用,下面分享几个比较好用的临时邮箱。 Gmail...