当前位置:   article > 正文

SlowFast环境安装爬坑记录_slowfastkeyerror: 'non-existent config key: kineti

slowfastkeyerror: 'non-existent config key: kinetics

SlowFast环境安装爬坑记录

前言

搭建slowfast人体动作识别框架遇到的一些问题,特此记录!

原文博客地址:SlowFast环境安装爬坑记录-旅程blog (cxy.red)

1. ERROR:Failed building wheel for pycocotools

安装命令:

pip install -U git+https://github.com/facebookresearch/fvcore.git git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI

出现问题:

image

解决方法:

pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI

2. pip install scikit-learn rather than pip install sklearn

执行命令:

python setup.py build develop

出现问题:

image

解决方法:sklearn 换为 scikit-learn

image

3. error:Could not find suitable distribution for Requirement.parse('PIL')

执行命令:

python setup.py build develop

出现问题:

image

解决方法:PIL 换为 Pillow

image

4. cannot import name 'cat_all_gather'from 'pytorchvideo.layers.distributed

执行demo命令:

python tools/run_net.py --cfg demo/AVA/SLOWFAST_32x2_R101_50_50.yaml

出现问题:

image

解决办法:

从本地源代码构建它:

  1. git clone https://github.com/facebookresearch/pytorchvideo.git
  2. pip install -e pytorchvideo

5. No module named 'torch.six' 或 cannot import name 'int classes'from 'torch'

执行demo命令:

python tools/run_net.py --cfg demo/AVA/SLOWFAST_32x2_R101_50_50.yaml

出现问题:

image

解决方法:

  • 法一:torch 升级到2.0之后,这个api不能用了,降低torch版本

  • 法二:找到代码处替换为以下代码

        # from torch._six import int_classes as _int_classes
        int_classes = int
        string_classes = str
    
    • 1
    • 2
    • 3

image

image

6. KeyError:'Non-existent config key:TENSORBOARD.MODEL_VIS.TOPK'

执行demo命令:

python tools/run_net.py --cfg demo/AVA/SLOWFAST_32x2_R101_50_50.yaml

出现问题:

image

解决方法:

ava配置文件注释以下内容

image

参考文献

  1. ERROR: Failed building wheel for pycocotools解决办法-CSDN博客
  2. ubuntu18.04 下slowfast网络环境安装及模型测试( python3.9)_importerror: cannot import name 'cat_all_gather' f-CSDN博
  3. 解决No module named ’torch._six‘问题_no module named 'torch._six-CSDN博客

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/码创造者/article/detail/863977
推荐阅读
相关标签
  

闽ICP备14008679号