Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行fast_inference_分支下的api_v2.py,报错TTS.py 879 TTS )->tuple[int, np.ndarray]: TypeError: 'type' object is not subscriptable #1086

Open
dandanjunzi opened this issue May 13, 2024 · 4 comments

Comments

@dandanjunzi
Copy link

在AutoDL租用服务器,选择官方镜像(但是我没有使用,因为官方镜像没有更新),拉取开源最新代码,运行fast_inference_分支下的api_v2.py。
报错:
TTS.py 879 TTS
)->tuple[int, np.ndarray]:

TypeError:
'type' object is not subscriptable.
但是,相同的代码在window系统上完美运行。
Snipaste_2024-05-13_17-49-15

请问这个是什么错误?

@ChasonJiang
Copy link

@dandanjunzi #1087 按照这里改一改看看修复没

@dandanjunzi
Copy link
Author

@ChasonJiang 感谢你的回复。我按照你的方法修改,还是报相同的错误。
Snipaste_2024-05-14_11-44-02

@Huiyicc
Copy link

Huiyicc commented May 14, 2024

@ChasonJiang 感谢你的回复。我按照你的方法修改,还是报相同的错误。 Snipaste_2024-05-14_11-44-02

其实想要跑的来的话直接把返回值删了就行了,反正python不看这东西=。=

@dandanjunzi
Copy link
Author

@ChasonJiang 非常感谢你,你修改Tuple的建议已经奏效,服务完美的运行起来了。哈哈哈哈
Snipaste_2024-05-14_17-01-30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants