Coder Social home page Coder Social logo

Data Generation results about pifu HOT 23 OPEN

shunsukesaito avatar shunsukesaito commented on May 18, 2024
Data Generation results

from pifu.

Comments (23)

cathylacus avatar cathylacus commented on May 18, 2024 5

You need to install EGL related packages by running the following command (assuming you use ubuntu)
apt install libgl1-mesa-dri libegl1-mesa libgbm1
Otherwise, you don't need to switch by yourself. My code should automatically switch to eGPU and render images for you.

error:
Traceback (most recent call last):
File "/root/anaconda3/envs/PIFu/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/root/anaconda3/envs/PIFu/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/test/liwei/PIFu-master/PIFu-master/apps/render_data.py", line 282, in
initialize_GL_context(width=args.size, height=args.size, egl=args.egl)
File "/test/liwei/PIFu-master/PIFu-master/lib/renderer/gl/init_gl.py", line 23, in initialize_GL_context
create_opengl_context((width, height))
File "/test/liwei/PIFu-master/PIFu-master/lib/renderer/gl/glcontext.py", line 91, in create_opengl_context
egl.eglInitialize(egl_display, pointer(major), pointer(minor))
File "/root/anaconda3/envs/PIFu/lib/python3.6/site-packages/OpenGL/platform/baseplatform.py", line 415, in call
return self( *args, **named )
File "src/errorchecker.pyx", line 58, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError
OpenGL.raw.EGL._errors.EGLError: EGLError(
err = EGL_NOT_INITIALIZED,
baseOperation = eglInitialize,
cArguments = (
<OpenGL._opaque.EGLDisplay_pointer object at 0x7efff1427598>,
<OpenGL.raw.EGL._types.LP_c_int object at 0x7effef42e620>,
<OpenGL.raw.EGL._types.LP_c_int object at 0x7effef42e510>,
),
result = 0
)

from pifu.

shunsukesaito avatar shunsukesaito commented on May 18, 2024 1

Does your server have NVIDIA GPU? If so, run the commend with -e option. Also make sure you update nvidia driver to use eGPU option.

from pifu.

cathylacus avatar cathylacus commented on May 18, 2024 1

You need to install EGL related packages by running the following command (assuming you use ubuntu)
apt install libgl1-mesa-dri libegl1-mesa libgbm1
Otherwise, you don't need to switch by yourself. My code should automatically switch to eGPU and render images for you.

Now,New error is “OpenGL.raw.EGL._errors.EGLError: EGLError”

from pifu.

wangfudong avatar wangfudong commented on May 18, 2024 1

my error is “freeglut (foo): failed to open display ''”
My environment is a command Linux, a server without a graphical interface, so I can't generate training sets?

You have a server without a graphical interface, so I guess you can not directly run the second script of data generation. You can, 1) use a server with graphical interface; 2) rewrite the data generation code such that it runs without graphics display; 3) if your server suports or is allowed to use SSH X11 Forwarding, you can modify the SSH settings and use some tools like MobaxTerm to run the data-generation code.

from pifu.

shunsukesaito avatar shunsukesaito commented on May 18, 2024

Can you elaborate? What are the errors? Also please provide your environment (os, GPU type etc).

from pifu.

shunsukesaito avatar shunsukesaito commented on May 18, 2024

Can I get the results,like a zip file?

"the code creates folders named GEO, RENDER, MASK, PARAM, UV_RENDER, UV_MASK, UV_NORMAL, and UV_POS". Under each folder, image and npy files are generated, not as a zip file.

from pifu.

cathylacus avatar cathylacus commented on May 18, 2024

Can I get the results,like a zip file?

"the code creates folders named GEO, RENDER, MASK, PARAM, UV_RENDER, UV_MASK, UV_NORMAL, and UV_POS". Under each folder, image and npy files are generated, not as a zip file.

my error is “freeglut (foo): failed to open display ''”
My environment is a command Linux, a server without a graphical interface, so I can't generate training sets?

from pifu.

cathylacus avatar cathylacus commented on May 18, 2024

Does your server have NVIDIA GPU? If so, run the commend with -e option. Also make sure you update nvidia driver to use eGPU option.

Yes,I have NVIDIA GTX 2080ti,I try it,Thanks!

from pifu.

cathylacus avatar cathylacus commented on May 18, 2024

Also make sure you update nvidia driver to use eGPU option.

How do I make sure my nvidia driver to use eGPU option.Thanks!

from pifu.

shunsukesaito avatar shunsukesaito commented on May 18, 2024

You need to install EGL related packages by running the following command (assuming you use ubuntu)
apt install libgl1-mesa-dri libegl1-mesa libgbm1
Otherwise, you don't need to switch by yourself. My code should automatically switch to eGPU and render images for you.

from pifu.

cathylacus avatar cathylacus commented on May 18, 2024

You need to install EGL related packages by running the following command (assuming you use ubuntu)
apt install libgl1-mesa-dri libegl1-mesa libgbm1
Otherwise, you don't need to switch by yourself. My code should automatically switch to eGPU and render images for you.

Thanks!

from pifu.

shunsukesaito avatar shunsukesaito commented on May 18, 2024

Can you run the example in the following repository without any issue? If not, you may as well get help from egl community.
https://github.com/eduble/gl

from pifu.

cathylacus avatar cathylacus commented on May 18, 2024

Can you run the example in the following repository without any issue? If not, you may as well get help from egl community.
https://github.com/eduble/gl

I found my NVIDIA driver is 435.21,and “Warning: I found that outdated NVIDIA drivers may cause errors with EGL. If you want to try out the EGL version, please update your NVIDIA driver to the latest!!”,so is my driver not new enough?

from pifu.

shunsukesaito avatar shunsukesaito commented on May 18, 2024

Probably your driver is new enough. Can you run nvidia-smi from the command line and see this driver version? If you use VM, GPUs might not be visible from client side.
Also did you get the same error when you run the code in the repository above?

from pifu.

cathylacus avatar cathylacus commented on May 18, 2024

Probably your driver is new enough. Can you run nvidia-smi from the command line and see this driver version? If you use VM, GPUs might not be visible from client side.
Also did you get the same error when you run the code in the repository above?

I can use nvidia-smi and see this driver version,I run the egl example,and the error is:
1

from pifu.

cathylacus avatar cathylacus commented on May 18, 2024

Probably your driver is new enough. Can you run nvidia-smi from the command line and see this driver version? If you use VM, GPUs might not be visible from client side.
Also did you get the same error when you run the code in the repository above?

I run the generate folders is also the error.o(╥﹏╥)o

from pifu.

cathylacus avatar cathylacus commented on May 18, 2024

my error is “freeglut (foo): failed to open display ''”
My environment is a command Linux, a server without a graphical interface, so I can't generate training sets?

You have a server without a graphical interface, so I guess you can not directly run the second script of data generation. You can, 1) use a server with graphical interface; 2) rewrite the data generation code such that it runs without graphics display; 3) if your server suports or is allowed to use SSH X11 Forwarding, you can modify the SSH settings and use some tools like MobaxTerm to run the data-generation code.

Thank for your reporting!

from pifu.

adelekuzmiakova avatar adelekuzmiakova commented on May 18, 2024

my error is “freeglut (foo): failed to open display ''”
My environment is a command Linux, a server without a graphical interface, so I can't generate training sets?

Hi @cathylacus,

I'm just curious as to whether you were able to get the apps.render_data.py code running on your Linux server? I was running the same code on an AWS Linux instance which also does not have a graphical interface. Make sure you use -e argument:

python -m apps.render_data -i [path-to-obj-file] -o [dir-to-save] -e

Otherwise you can enable X11 forwarding from you Linux server; here's an example on how to do it. Hope this helps :)

from pifu.

cathylacus avatar cathylacus commented on May 18, 2024

my error is “freeglut (foo): failed to open display ''”
My environment is a command Linux, a server without a graphical interface, so I can't generate training sets?

Hi @cathylacus,

I'm just curious as to whether you were able to get the apps.render_data.py code running on your Linux server? I was running the same code on an AWS Linux instance which also does not have a graphical interface. Make sure you use -e argument:

python -m apps.render_data -i [path-to-obj-file] -o [dir-to-save] -e

Otherwise you can enable X11 forwarding from you Linux server; here's an example on how to do it. Hope this helps :)

Sorry,I already gave up this code.

from pifu.

cathylacus avatar cathylacus commented on May 18, 2024

my error is “freeglut (foo): failed to open display ''”
My environment is a command Linux, a server without a graphical interface, so I can't generate training sets?

Hi @cathylacus,

I'm just curious as to whether you were able to get the apps.render_data.py code running on your Linux server? I was running the same code on an AWS Linux instance which also does not have a graphical interface. Make sure you use -e argument:

python -m apps.render_data -i [path-to-obj-file] -o [dir-to-save] -e

Otherwise you can enable X11 forwarding from you Linux server; here's an example on how to do it. Hope this helps :)

You should try the code on an AWS Linux,I just have Command interface,So I give up the code.

from pifu.

Uuiiii avatar Uuiiii commented on May 18, 2024

python -m apps.prt_util -i {path_to_rp_dennis_posed_004_OBJ}
When I run this code, I get the following error:
1646787121(1)
@shunsukesaito

from pifu.

Yuhuoo avatar Yuhuoo commented on May 18, 2024

egl community

I also want to know the answer fixing the bug

from pifu.

BhaumikThakkar avatar BhaumikThakkar commented on May 18, 2024

You need to install EGL related packages by running the following command (assuming you use ubuntu)
apt install libgl1-mesa-dri libegl1-mesa libgbm1
Otherwise, you don't need to switch by yourself. My code should automatically switch to eGPU and render images for you.

error: Traceback (most recent call last): File "/root/anaconda3/envs/PIFu/lib/python3.6/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/root/anaconda3/envs/PIFu/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/test/liwei/PIFu-master/PIFu-master/apps/render_data.py", line 282, in initialize_GL_context(width=args.size, height=args.size, egl=args.egl) File "/test/liwei/PIFu-master/PIFu-master/lib/renderer/gl/init_gl.py", line 23, in initialize_GL_context create_opengl_context((width, height)) File "/test/liwei/PIFu-master/PIFu-master/lib/renderer/gl/glcontext.py", line 91, in create_opengl_context egl.eglInitialize(egl_display, pointer(major), pointer(minor)) File "/root/anaconda3/envs/PIFu/lib/python3.6/site-packages/OpenGL/platform/baseplatform.py", line 415, in call return self( *args, **named ) File "src/errorchecker.pyx", line 58, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError OpenGL.raw.EGL._errors.EGLError: EGLError( err = EGL_NOT_INITIALIZED, baseOperation = eglInitialize, cArguments = ( <OpenGL._opaque.EGLDisplay_pointer object at 0x7efff1427598>, <OpenGL.raw.EGL._types.LP_c_int object at 0x7effef42e620>, <OpenGL.raw.EGL._types.LP_c_int object at 0x7effef42e510>, ), result = 0 )

export MESA_GL_VERSION_OVERRIDE=3.3

from pifu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.