配置SlowFast时遇到的问题

本文记录了在配置SlowFast时遇到的一系列问题,如依赖库版本冲突、模块导入错误等,并提供了相应的解决方法,如更新包、修改设置和链接库路径。
摘要由CSDN通过智能技术生成

配置SlowFast时遇到的问题

use ‘scikit-learn’ rather than ‘sklearn’ for pip commands.

setup.py中sklearn改为scikit-learn

##libstdc++.so.6里面没有GLIBCXX 3.4.40

strings /home/miniconda3/envs/yjm_SlowFast/lib/libstdc++.so.6 | grep GLIBCXX

export LD_LIBRARY_PATH=/home/miniconda3/envs/yjm_slowfast/lib/

module ‘PIL.Image’ has no attribute ‘LINEAR’

pip install Pillow==8.4.0

module ‘distutils’ has no attribute ‘version’

pip install setuptools==59.5.0

from detectron2 import _C

ImportError: /home/miniconda3/envs/yjm_slowfast/lib/python3.8/site-packages/detectron2/_C.cpython-38-x86_64-linux-gnu.so: undefined symbol: _ZNK2at6Tensor7reshapeEN3c108ArrayRefIlEE

未解决

error: Could not find suitable distribution for Requirement.parse(‘PIL’)

setup.py中PIL改为Pillow

cannot import name ‘cat_all_gather’

  File "/home/user/yuanjinmin/SlowFast/slowfast/utils/distributed.py", line 12, in <module>
    from pytorchvideo.layers.distributed import (  # noqa
ImportError: cannot import name 'cat_all_gather' from 'pytorchvideo.layers.distributed'
git clone https://github.com/facebookresearch/pytorchvideo.git
pip install -e pytorchvideo

AttributeError: module ‘torch’ has no attribute ‘compiler’

https://github.com/facebookresearch/detectron2/issues/5268#issuecomment-2075663801

Cannot import name ‘int_classes’ from ‘torch._six’

https://discuss.pytorch.org/t/cannot-import-name-int-classes-from-torch-six/126611/3

  • 4
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

深|码|洞|悉

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值