torch-vision:libc++abi:以std::length_error:vector类型的未捕获异常终止



最近,我在导入torch vision时开始出现一个奇怪的错误。我刚安装了MacBook M1,最新的蒙特利版本12.3.1。迷你锻造是第一个安装的东西。当我尝试导入torchvision时,我得到以下错误:

Python 3.9.12 | packaged by conda-forge | (main, Mar 24 2022, 23:24:38) 
Type 'copyright', 'credits' or 'license' for more information
IPython 8.2.0 -- An enhanced Interactive Python. Type '?' for help.
PyDev console: using IPython 8.2.0
Python 3.9.12 | packaged by conda-forge | (main, Mar 24 2022, 23:24:38) 
[Clang 12.0.1 ] on darwin
In[2]: import torchvision
libc++abi: terminating with uncaught exception of type std::length_error: vector
Process finished with exit code 134 (interrupted by signal 6: SIGABRT)

我试着在谷歌上搜索,但找不到任何解决方案。它可能与最近的蒙特雷更新有关?坦率地说,我不知道发生了什么。你能帮忙吗?

当我将torch从1.10.2升级到1.11.0时,我也遇到了同样的错误。降级帮助了我。

相关内容

最新更新