Skip to content

XTTS模型路径加载异常:源代码中路径层级重复 #395

@fan7758

Description

@fan7758

新手小白,最近在尝试本地部署自己的语音工具时,发生这样一个问题无法解决。求大神帮助:
‌环境信息‌
win11操作系统,pycharm2024.3.5,python3.10.11,
测试文件:demo_part2.ipynb(OpenVoice项目)
模型版本:XTTS v2(multilingual-multi-dataset)
系统环境:Jupyter Notebook
模型状态:已独立下载且基础功能测试正常
‌问题描述‌

测试demo_part1.ipynb正常输出后,接着在Jupyter Notebook中运行demo_part2.ipynb的第一功能单元,根据报错自行在文件开始增加了加载单元(加载XTTS模型)。结果在运行时报错模型加载失败(单独测试模型使用正常),系统找不到指定路径。仔细查看,发现:
源代码指定路径存在重复层级:tts_models/.../model.pth/model.pth
实际有效路径应为:tts_models/.../model.pth(单层model.pth)

其他人有发现同样问题吗?是如何解决的?

Image
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions