Giter Site home page Giter Site logo

Comments (11)

xuxy09 avatar xuxy09 commented on June 15, 2024

Seems an OpenGL error. Can you try a reinstallation with the instructions here: https://pyrender.readthedocs.io/en/latest/install/index.html#installing-osmesa?

from rsc-net.

LiuXinqi12 avatar LiuXinqi12 commented on June 15, 2024

Frustratingly, I tried to use OSMesa to reinstallation , but other errors appeared, which seem to be related to pyrender and have not been resolved. mmatl/pyrender#81

when using os.environ['PYOPENGL_PLATFORM'] = 'osmesa'

Traceback (most recent call last):
  File "demo.py", line 54, in <module>
    img_renderer = Renderer(focal_length=constants.FOCAL_LENGTH, img_res=constants.IMG_RES, faces=smpl_neutral.faces)
  File "/home/disk/study/RSC-Net/utils/renderer.py", line 17, in __init__
    self.renderer = pyrender.OffscreenRenderer(viewport_width=224,viewport_height=224, point_size=1.0)
  File "/home/anaconda3/envs/rsc-net/lib/python3.7/site-packages/pyrender/offscreen.py", line 31, in __init__
    self._create()
  File "/home/anaconda3/envs/rsc-net/lib/python3.7/site-packages/pyrender/offscreen.py", line 150, in _create
    self._platform.make_current()
  File "/home/anaconda3/envs/rsc-net/lib/python3.7/site-packages/pyrender/platforms/osmesa.py", line 44, in make_current
    self.viewport_width, self.viewport_height
AssertionError

when using os.environ['PYOPENGL_PLATFORM'] = 'egl'

Traceback (most recent call last):
  File "demo.py", line 54, in <module>
    img_renderer = Renderer(focal_length=constants.FOCAL_LENGTH, img_res=constants.IMG_RES, faces=smpl_neutral.faces)
  File "/home/RSC-Net/utils/renderer.py", line 17, in __init__
    self.renderer = pyrender.OffscreenRenderer(viewport_width=224,viewport_height=224, point_size=1.0)
  File "/home/anaconda3/envs/rsc-net/lib/python3.7/site-packages/pyrender/offscreen.py", line 31, in __init__
    self._create()
  File "/home/anaconda3/envs/rsc-net/lib/python3.7/site-packages/pyrender/offscreen.py", line 149, in _create
    self._platform.init_context()
  File "/home/anaconda3/envs/rsc-net/lib/python3.7/site-packages/pyrender/platforms/egl.py", line 188, in init_context
    EGL_NO_CONTEXT, context_attributes
  File "/home/anaconda3/envs/rsc-net/lib/python3.7/site-packages/OpenGL/platform/baseplatform.py", line 409, in __call__
    return self( *args, **named )
  File "/home/anaconda3/envs/rsc-net/lib/python3.7/site-packages/OpenGL/error.py", line 232, in glCheckError
    baseOperation = baseOperation,
OpenGL.error.GLError: GLError(
	err = 12297,
	baseOperation = eglCreateContext,
	cArguments = (
		<OpenGL._opaque.EGLDisplay_pointer object at 0x7f15b00b1200>,
		<OpenGL._opaque.EGLConfig_pointer object at 0x7f15b00ca8c0>,
		<OpenGL._opaque.EGLContext_pointer object at 0x7f15b03379e0>,
		<OpenGL.arrays.lists.c_int_Array_7 object at 0x7f15b03604d0>,
	),
	result = <OpenGL._opaque.EGLContext_pointer object at 0x7f15b00b19e0>
)

from rsc-net.

xuxy09 avatar xuxy09 commented on June 15, 2024

Hi, I just write a new "demo_nr.py" which does not rely on Pyrender. You can use it in the same way as "demo.py". Let me know if this works for you.

from rsc-net.

LiuXinqi12 avatar LiuXinqi12 commented on June 15, 2024

It's working now, thank you very much!

from rsc-net.

MengHao666 avatar MengHao666 commented on June 15, 2024

Hi, I just write a new "demo_nr.py" which does not rely on Pyrender. You can use it in the same way as "demo.py". Let me know if this works for you.

Hi, does nerual_render only support render mesh in image of square size?

from rsc-net.

MengHao666 avatar MengHao666 commented on June 15, 2024

It's working now, thank you very much!

Hi, do u use neural_render in headless server? Have u succeeded in using pyrender in headless server?

from rsc-net.

xuxy09 avatar xuxy09 commented on June 15, 2024

Hi, I just write a new "demo_nr.py" which does not rely on Pyrender. You can use it in the same way as "demo.py". Let me know if this works for you.

Hi, does nerual_render only support render mesh in image of square size?

You can check this with the author of neural render.

from rsc-net.

xuxy09 avatar xuxy09 commented on June 15, 2024

It's working now, thank you very much!

Hi, do u use neural_render in headless server? Have u succeeded in using pyrender in headless server?

Yes, I can run pyrender on my server with OSMesa.

from rsc-net.

MengHao666 avatar MengHao666 commented on June 15, 2024

It's working now, thank you very much!

Hi, do u use neural_render in headless server? Have u succeeded in using pyrender in headless server?

Yes, I can run pyrender on my server with OSMesa.

I met some problems and really hope u can help me.Can u give me your email address?In this way, we can have further talk.

from rsc-net.

krips89 avatar krips89 commented on June 15, 2024

How did you solve this problem? Just saying that it works now does not help others.

from rsc-net.

YunjieYu avatar YunjieYu commented on June 15, 2024

It's working now, thank you very much!

Hi, do u use neural_render in headless server? Have u succeeded in using pyrender in headless server?

Yes, I can run pyrender on my server with OSMesa.

Hi, could you provide some suggestions on how to run pyrender on headless server with OSMesa? Thanks in advance!

from rsc-net.

Related Issues (13)

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.