AlexandaJerry / whisper-vits-japanese

Vits Japanese with Whisper as data processor (you can train your VITS even you only have audios)
MIT License
160 stars 28 forks source link

成功解决在windows11本地状态运行下产生的无法切分路径的问题 #11

Open samuhoshi opened 1 year ago

samuhoshi commented 1 year ago

经过了debug,发现调用remove_path函数的apply不起作用 但是作者的调用是明显有效的 于是在apply函数下又生成了一个文件,这才发现原来是斜杠方向在linux里和Windows里有本质不同 但是在程序的其他地方混合使用都是没问题的,但是apply函数并不是对路径进行处理,而是对“/”这个符号进行上纲上线的处理 这就导致id无法被切分 把函数修改成以下形式就行,\的意思是避免被解读成转义字符 def remove_path(path): path = path.split('\')[-1] return path

samuhoshi commented 1 year ago

上面写的是双斜杠,github自动改成单斜杠了

samuhoshi commented 1 year ago

Windows地址返回就基本都是反斜杠,给这个问题埋下了祸根

AlexandaJerry commented 1 year ago

感谢你的反馈!如果本地是windows使用的朋友,可以来看这个issue修改路径切分符号

samuhoshi commented 1 year ago

请问你用的moegoe是什么版本的?因为这个vits不是新版的vits,我尝试了多个版本仍然读取失败,所以能不能在项目里面说明使用的moegoe的版本号?不胜感谢

AlexandaJerry commented 1 year ago

moegoe我没用过,不过有人告诉过我怎么导入json,你可以试试

将模型导入MoeGoe的时候,由于配置文件没给symbols会报错,解决方法如下: 打开.json配置文件,在倒数第二个大括号后面粘贴以下代码:

"speakers":【"\u308b\u308b"】, "symbols": 【"_", ",", ".", "!", "?", "-", "A", "E", "I", "N", "O", "Q", "U", "a", "b", "d", "e", "f", "g", "h", "i", "j", "k", "m", "n", "o", "p", "r", "s", "t", "u", "v", "w", "y", "z", "\u0283", "\u02a7", "\u2193", "\u2191", " "】