本文记录在运行项目https://github.com/facebookresearch/frankmocap时遇到的问题及解决办法。
环境:python3.7,cuda10.1
- 安装pytorch
conda install -c pytorch pytorch==1.6.0 torchvision cudatoolkit=10.1
- 运行程序安装路径*/home/han_wu/frankmocap/docs/requirement.txt*中的依赖包
在安装要求文档中opendr包时报错,错误如下:ERROR: Command errored out with exit status 1:xxx/bin/python -u -c 'import sys, setuptools, tokenize; ......
搜了一下 发现很多人在python=3.6或3.7的环境下安装opendr都会存在这样的问题,(问题链接https://github.com/akanazawa/hmr/issues/82,解决方案如下(二选一!):
(1)换python版本,python==2.7
(2)按照下面步骤自行安装opendr:
- 下载opendr:地址:https://github.com/mattloper/opendr,
git clone https://github.com/mattloper/opendr
; - 下载OSMesa.Linux.x86_64.zip:地址:http://files.is.tue.mpg.de/mloper/opendr/osmesa/OSMesa.Linux.x86_64.zip,下载后放到*xxx/opendr/contexts/*路径下;
- 编译安装
cd XXXX/opendr
python setup.py build
python setup.py install
最终:
-
按照https://github.com/facebookresearch/frankmocap/blob/master/docs/INSTALL.md
依次进行环境配置,接下来来到SMPL模型的下载:
-
注册登录:https://smpl-x.is.tue.mpg.de/
-
downloads:https://smpl.is.tue.mpg.de/downloads
-
最后一步,运行指令python -m demo.demo_bodymocap --input_path ./sample_data/han_short.mp4 --out_dir ./mocap_output
报错如下:OpenGL.error.NullFunctionError: Attempt to call an undefined function glutInit, check for bool(glutInit) before calling
搜了一下是关于GLUT的问题,这里附上几个其他博主的解决方法:
windows系统:解决办法
linux系统(有sudo权限):解决办法
linux系统(无sudo权限):运行conda install -c conda-forge freeglut
https://stackoverflow.com/questions/26700719/pyopengl-glutinit-nullfunctionerror?noredirect=1
-
再次运行指令,出现新的问题:error: GLSL 1.40 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES
解决办法:export MESA_GL_VERSION_OVERRIDE=3.3
再次运行指令,问题解决~
最最后,处理图片中途会报错:ASSERT: "false" in file qasciikey.cpp, line 501
解决办法在这里
至此,frankmocap踩坑全部结束了,撒花~~~
如果本文对你有帮助的话,点个赞再走呗~
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)