今天在调试cosyvoice的时候发生报错:部分错误信息如下:
Exception: During ast indexing the file F:\gongxiang\CosyVoice\myenv\Lib\site-packages\modelscope\models\audio\aec\layers\activations.py, a related error excepted in the file F:\gongxiang\CosyVoice\myenv\lib\site-packages\modelscope\utils\ast_utils.py at line: 152: “attr = getattr(node, field)” with error msg: “AttributeError: ‘ClassDef’ object has no attribute ‘type_params'”, please double check the origin file F:\gongxiang\CosyVoice\myenv\Lib\site-packages\modelscope\models\audio\aec\layers\activations.py to see whether the file is correctly edited.
错误内容是AST 工具异常,ClassDef 类型的节点不支持访问属性 type_params,应该是缓存问题,因为我之前用过不同版本的cosyvoice,更新了不同版本之后属性发生变化modelscope还是使用的不同版本的缓存文件,所以才导致错误的,解决方法:
打开如下路径:C:\Users\你的电脑用户名\.cache\modelscope,将文件夹内的ast_indexer文件删除,然后再启动软件,问题消失。
相关推荐
魔塔社区modelscope.cn使用git方式上传大模型文件方法步骤
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下载缓慢安装失败解决方法
最近更新

Stable3DGen图片转3D模型软件本地电脑安装部署教程及注意问题

高精度2D图片转3D网格模型软件Stable3DGen整合包下载
本次和大家分享另一个非常牛叉的图片转3D模型软件Stable3DGen,从官方演示对比来看,效果要好于我之前分享的腾讯混元3D和TRELLIS,精度更高更细腻。基于当前最新版本我制作了一键启动整合包。 Stable3DGen介绍 随着从二维...

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本地电脑安装部署教程及注意问题
