PYSKL问题解决AssertionError: Failed to build the detection model.

Traceback (most recent call last):
  File "demo/demo_skeleton.py", line 309, in 
    main()
  File "demo/demo_skeleton.py", line 250, in main
    det_results = detection_inference(args, frame_paths)
  File "demo/demo_skeleton.py", line 153, in detection_inference
    assert model is not None, ('Failed to build the detection model. Check if you have installed mmcv-full properly. '
AssertionError: Failed to build the detection model. Check if you have installed mmcv-full properly. You should first install mmcv-full successfully, then install mmdet, mmpose.

1.之前有的网友碰见过这个问题,自己没有经历过所以回答的比较敷衍,自己再次安装碰到了这个问题,下面说下解决方法。

首先这个问题是安装mmcv-full出现的问题,如果是从这个网站下的(如下图),那么不要用了,这里面的whl驱动文件出现了问题。

PYSKL问题解决AssertionError: Failed to build the detection model._第1张图片

2.正确的下载方式是从官网下载,这是最安全也最正规的一种方式。

首先进入网站安装 MMCV — mmcv 1.5.0 文档之后下拉找到这个地方,查看自己的版本,

PYSKL问题解决AssertionError: Failed to build the detection model._第2张图片

复制这段代码放到自己的环境终端里。

pip install mmcv-full==1.5.0 -f https://download.openmmlab.com/mmcv/dist/cu111/torch1.9.0/index.html

PYSKL问题解决AssertionError: Failed to build the detection model._第3张图片

安装完成后就能运行了。


你可能感兴趣的:(人工智能)