mks0601 / I2L-MeshNet_RELEASE

Official PyTorch implementation of "I2L-MeshNet: Image-to-Lixel Prediction Network for Accurate 3D Human Pose and Mesh Estimation from a Single RGB Image", ECCV 2020
MIT License
708 stars 130 forks source link

when running the command: python demo.py --gpu 0 --stage param --test_epoch 8 I get the following error, can someone help me please to solve it #104

Open MhmdAliChamass99 opened 2 years ago

MhmdAliChamass99 commented 2 years ago

Traceback (most recent call last): File "C:\Python39\lib\site-packages\OpenGL\platform\egl.py", line 67, in EGL return ctypesloader.loadLibrary( File "C:\Python39\lib\site-packages\OpenGL\platform\ctypesloader.py", line 45, in loadLibrary return dllType( name, mode ) File "C:\Python39\lib\ctypes__init.py", line 374, in init__ self._handle = _dlopen(self._name, mode) FileNotFoundError: ("Could not find module 'EGL' (or one of its dependencies). Try using the full path with constructor syntax.", 'EGL', None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\USER\OneDrive\Desktop\5th year- 1st semester\FYP\I2L-MeshNet_RELEASE-master\demo\demo.py", line 19, in from utils.vis import vis_mesh, save_obj, render_mesh File "C:\Users\USER\OneDrive\Desktop\5th year- 1st semester\FYP\I2L-MeshNet_RELEASE-master\main..\common\utils\vis.py", line 8, in import pyrender File "C:\Python39\lib\site-packages\pyrender__init.py", line 3, in from .light import Light, PointLight, DirectionalLight, SpotLight File "C:\Python39\lib\site-packages\pyrender\light.py", line 10, in from OpenGL.GL import * File "C:\Python39\lib\site-packages\OpenGL\GL__init.py", line 3, in from OpenGL import error as _error File "C:\Python39\lib\site-packages\OpenGL\error.py", line 12, in from OpenGL import platform, _configflags File "C:\Python39\lib\site-packages\OpenGL\platform__init__.py", line 35, in _load() File "C:\Python39\lib\site-packages\OpenGL\platform\init__.py", line 32, in _load plugin.install(globals()) File "C:\Python39\lib\site-packages\OpenGL\platform\baseplatform.py", line 92, in install namespace[ name ] = getattr(self,name,None) File "C:\Python39\lib\site-packages\OpenGL\platform\baseplatform.py", line 14, in get value = self.fget( obj ) File "C:\Python39\lib\site-packages\OpenGL\platform\egl.py", line 93, in GetCurrentContext return self.EGL.eglGetCurrentContext File "C:\Python39\lib\site-packages\OpenGL\platform\baseplatform.py", line 14, in get__ value = self.fget( obj ) File "C:\Python39\lib\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', "Could not find module 'EGL' (or one of its dependencies). Try using the full path with constructor syntax.", 'EGL', None)

C:\Users\USER\OneDrive\Desktop\5th year- 1st semester\FYP\I2L-MeshNet_RELEASE-master\demo>python demo.py --gpu 0 --stage param --test_epoch 8 Traceback (most recent call last): File "C:\Python39\lib\site-packages\OpenGL\platform\egl.py", line 67, in EGL return ctypesloader.loadLibrary( File "C:\Python39\lib\site-packages\OpenGL\platform\ctypesloader.py", line 45, in loadLibrary return dllType( name, mode ) File "C:\Python39\lib\ctypes__init.py", line 374, in init__ self._handle = _dlopen(self._name, mode) FileNotFoundError: ("Could not find module 'EGL' (or one of its dependencies). Try using the full path with constructor syntax.", 'EGL', None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\USER\OneDrive\Desktop\5th year- 1st semester\FYP\I2L-MeshNet_RELEASE-master\demo\demo.py", line 19, in from utils.vis import vis_mesh, save_obj, render_mesh File "C:\Users\USER\OneDrive\Desktop\5th year- 1st semester\FYP\I2L-MeshNet_RELEASE-master\main..\common\utils\vis.py", line 8, in import pyrender File "C:\Python39\lib\site-packages\pyrender__init.py", line 3, in from .light import Light, PointLight, DirectionalLight, SpotLight File "C:\Python39\lib\site-packages\pyrender\light.py", line 10, in from OpenGL.GL import * File "C:\Python39\lib\site-packages\OpenGL\GL__init.py", line 3, in from OpenGL import error as _error File "C:\Python39\lib\site-packages\OpenGL\error.py", line 12, in from OpenGL import platform, _configflags File "C:\Python39\lib\site-packages\OpenGL\platform__init__.py", line 35, in _load() File "C:\Python39\lib\site-packages\OpenGL\platform\init__.py", line 32, in _load plugin.install(globals()) File "C:\Python39\lib\site-packages\OpenGL\platform\baseplatform.py", line 92, in install namespace[ name ] = getattr(self,name,None) File "C:\Python39\lib\site-packages\OpenGL\platform\baseplatform.py", line 14, in get value = self.fget( obj ) File "C:\Python39\lib\site-packages\OpenGL\platform\egl.py", line 93, in GetCurrentContext return self.EGL.eglGetCurrentContext File "C:\Python39\lib\site-packages\OpenGL\platform\baseplatform.py", line 14, in get__ value = self.fget( obj ) File "C:\Python39\lib\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', "Could not find module 'EGL' (or one of its dependencies). Try using the full path with constructor syntax.", 'EGL', None)

mks0601 commented 2 years ago

Try comment out this: https://github.com/mks0601/I2L-MeshNet_RELEASE/blob/4c71b89713eccfb893607963696f368f4beb9fa6/common/utils/vis.py#L7

MhmdAliChamass99 commented 2 years ago

Thank you so much, it worked out but another error appears telling me that Torch not compiled with CUDA enabled, any thoughts on this please?

On Sat, Feb 5, 2022, 1:17 AM Gyeongsik Moon @.***> wrote:

Try comment out this: https://github.com/mks0601/I2L-MeshNet_RELEASE/blob/4c71b89713eccfb893607963696f368f4beb9fa6/common/utils/vis.py#L7

— Reply to this email directly, view it on GitHub https://github.com/mks0601/I2L-MeshNet_RELEASE/issues/104#issuecomment-1030422874, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATD5G6ZSFU233HRWIMCK3HLUZRM65ANCNFSM5NL57WPA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

mks0601 commented 2 years ago

Please re-install Torch with CUDA.

MhmdAliChamass99 commented 2 years ago

I really appreciate it, thank you!!

Do you mind me reaching you in case I face any more issues?

On Sat, Feb 5, 2022, 1:27 AM Gyeongsik Moon @.***> wrote:

Please re-install Torch with CUDA.

— Reply to this email directly, view it on GitHub https://github.com/mks0601/I2L-MeshNet_RELEASE/issues/104#issuecomment-1030427347, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATD5G6YV2IWRX7YWYS3NIJ3UZROGXANCNFSM5NL57WPA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

mks0601 commented 2 years ago

Sure, but please google the errors before asking me. Thanks!

MhmdAliChamass99 commented 2 years ago

Yes the one related to the Egl environment i googled it and it consumed so much of my time as i was commenting the ones found in offscreen.py. Thank you anyway!

On Sat, Feb 5, 2022, 1:31 AM Gyeongsik Moon @.***> wrote:

Sure, but please google the errors before asking me. Thanks!

— Reply to this email directly, view it on GitHub https://github.com/mks0601/I2L-MeshNet_RELEASE/issues/104#issuecomment-1030428937, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATD5G63C64IXKOWUQM6BUPDUZROVJANCNFSM5NL57WPA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>