使用YOLO V8-pose 报错:AttributeError: module ‘torch‘ has no attribute ‘_six‘

上述为按照yolo v8 pose官方教程写的代码。

使用了python3.7, 以及对应的torch版本如下后,报错。AttributeError: module ‘torch‘ has no attribute ‘_six‘

 

  • 解决方法:更换了虚拟环境,重新安装yltralytics.
    •   新环境:

       现在可以正常运行:

posted @ 2024-04-10 10:40  张幼安  阅读(31)  评论(0编辑  收藏  举报