GPT-SoVITS
GPT-SoVITS copied to clipboard
Apifox : post < tts_endpoint > , get the error "RuntimeError: Cannot execute emptyCache() without MPS backend."
大家好,我在使用接口方面遇到问题——
使用apifox调用post接口tts_endpoint,结果返回500,且终端日志显示"RuntimeError: Cannot execute emptyCache() without MPS backend."
完整日志如下——
报错.txt
查看了文档的常见报错和报错合集,并没有发现类似的问题。有人知道该怎么解决吗?感激不尽!
环境:Windows10 vscode conda虚拟环境python3.8.18
解决了,我将api.py中的torch.mps.empty_cache() 行注释即可,因为这个是苹果系统用的。。(mps==metal performance shaders) https://developer.apple.com/documentation/metalperformanceshaders?language=objc