请问在SMPL & Rendering中,detectron2和4D-Humans两个项目都放在champ目录下吗?
我在运行这一步时出现了问题
我的detectron2和4D-Humans这两个项目放在了champ目录下,运行报错结果如上
我是放在4D-Humans下。 4D-Humans不在champ下,和champ平级。 然后执行命令的时候,到champ下执行(还是在4D-Humans虚拟环境里)。 我试了好久,文档不清楚。 而且代码还有错。你马上会遇到报错。
请问你们在python -m scripts.pretrained_models.download --hmr2这一步有没有遇到问题,我执行这步的时候会报错 Traceback (most recent call last): File "/home/jovyan/.conda/envs/4D-humans/lib/python3.10/site-packages/OpenGL/platform/egl.py", line 67, in EGL return ctypesloader.loadLibrary( File "/home/jovyan/.conda/envs/4D-humans/lib/python3.10/site-packages/OpenGL/platform/ctypesloader.py", line 45, in loadLibrary return dllType( name, mode ) File "/home/jovyan/.conda/envs/4D-humans/lib/python3.10/ctypes/init.py", line 374, in init self._handle = _dlopen(self._name, mode) OSError: ('EGL: cannot open shared object file: No such file or directory', 'EGL', None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/jovyan/.conda/envs/4D-humans/lib/python3.10/runpy.py", line 187, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/home/jovyan/.conda/envs/4D-humans/lib/python3.10/runpy.py", line 110, in _get_module_details
import(pkg_name)
File "/home/jovyan/champ/scripts/pretrained_models/init.py", line 5, in
我的环境是远程linux ubuntu2204,非root用户
4D-Humans should put into /root/.cache/ and detectron2 should choose detectron2/detectron2 into champ
请问你们在python -m scripts.pretrained_models.download --hmr2这一步有没有遇到问题,我执行这步的时候会报错 Traceback (most recent call last): File "/home/jovyan/.conda/envs/4D-humans/lib/python3.10/site-packages/OpenGL/platform/egl.py", line 67, in EGL return ctypesloader.loadLibrary( File "/home/jovyan/.conda/envs/4D-humans/lib/python3.10/site-packages/OpenGL/platform/ctypesloader.py", line 45, in loadLibrary return dllType( name, mode ) File "/home/jovyan/.conda/envs/4D-humans/lib/python3.10/ctypes/init.py", line 374, in init self._handle = _dlopen(self._name, mode) OSError: ('EGL: cannot open shared object file: No such file or directory', 'EGL', None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/jovyan/.conda/envs/4D-humans/lib/python3.10/runpy.py", line 187, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "/home/jovyan/.conda/envs/4D-humans/lib/python3.10/runpy.py", line 110, in _get_module_details import(pkg_name) File "/home/jovyan/champ/scripts/pretrained_models/init.py", line 5, in from hmr2.models import CACHE_DIR_4DHUMANS File "/home/jovyan/champ/././4D-Humans/hmr2/models/init.py", line 2, in from .hmr2 import HMR2 File "/home/jovyan/champ/././4D-Humans/hmr2/models/hmr2.py", line 7, in from ..utils import SkeletonRenderer, MeshRenderer File "/home/jovyan/champ/././4D-Humans/hmr2/utils/init.py", line 4, in from .renderer import Renderer File "/home/jovyan/champ/././4D-Humans/hmr2/utils/renderer.py", line 6, in import pyrender File "/home/jovyan/.conda/envs/4D-humans/lib/python3.10/site-packages/pyrender/init.py", line 3, in from .light import Light, PointLight, DirectionalLight, SpotLight File "/home/jovyan/.conda/envs/4D-humans/lib/python3.10/site-packages/pyrender/light.py", line 10, in from OpenGL.GL import * File "/home/jovyan/.conda/envs/4D-humans/lib/python3.10/site-packages/OpenGL/GL/init.py", line 3, in from OpenGL import error as _error File "/home/jovyan/.conda/envs/4D-humans/lib/python3.10/site-packages/OpenGL/error.py", line 12, in from OpenGL import platform, _configflags File "/home/jovyan/.conda/envs/4D-humans/lib/python3.10/site-packages/OpenGL/platform/init.py", line 35, in _load() File "/home/jovyan/.conda/envs/4D-humans/lib/python3.10/site-packages/OpenGL/platform/init.py", line 32, in _load plugin.install(globals()) File "/home/jovyan/.conda/envs/4D-humans/lib/python3.10/site-packages/OpenGL/platform/baseplatform.py", line 92, in install namespace[ name ] = getattr(self,name,None) File "/home/jovyan/.conda/envs/4D-humans/lib/python3.10/site-packages/OpenGL/platform/baseplatform.py", line 14, in get value = self.fget( obj ) File "/home/jovyan/.conda/envs/4D-humans/lib/python3.10/site-packages/OpenGL/platform/egl.py", line 93, in GetCurrentContext return self.EGL.eglGetCurrentContext File "/home/jovyan/.conda/envs/4D-humans/lib/python3.10/site-packages/OpenGL/platform/baseplatform.py", line 14, in get value = self.fget( obj ) File "/home/jovyan/.conda/envs/4D-humans/lib/python3.10/site-packages/OpenGL/platform/egl.py", line 73, in EGL raise ImportError("Unable to load EGL library", *err.args) ImportError: ('Unable to load EGL library', 'EGL: cannot open shared object file: No such file or directory', 'EGL', None)
我的环境是远程linux ubuntu2204,非root用户
请问您解决了吗?
请问您解决了吗?
因为是公司的服务器,所以申请了root权限后,安装apt-get install mesa-utils libegl1-mesa libegl1-mesa-dev libgles2-mesa-dev就解决了