GithubHelp home page GithubHelp logo

Comments (4)

yangqinhui0423 avatar yangqinhui0423 commented on May 25, 2024

Then I skip it and turn to run "bash scripts/render_batch.sh gen all". But I met "out of memory" error as follows:

**thuman2 START----------
processing all the subjects
D3D12: Removing Device.
Traceback (most recent call last):
  File "/home/ciciyang/miniconda3/envs/icon/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/ciciyang/miniconda3/envs/icon/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/ciciyang/code/ICON/scripts/render_single.py", line 187, in <module>
    opengl_util.render_result(rndr, 0, os.path.join(save_folder, subject, 'render', f'{y:03d}.png'))
  File "/home/ciciyang/code/ICON/lib/renderer/opengl_util.py", line 30, in render_result
    cam_render = rndr.get_color(shader_id)
  File "/home/ciciyang/code/ICON/lib/renderer/gl/render.py", line 301, in get_color
    data = glReadPixels(0, 0, self.width, self.height, GL_RGBA, GL_FLOAT, outputType=None)
  File "/home/ciciyang/miniconda3/envs/icon/lib/python3.8/site-packages/OpenGL/GL/images.py", line 370, in glReadPixels
    GL_1_1.glReadPixels(
  File "src/errorchecker.pyx", line 58, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError
OpenGL.error.GLError: GLError(
        err = 1285,
        description = b'out of memory',
        baseOperation = glReadPixels,
        cArguments = (
                0,
                0,
                512,
                512,
                GL_RGBA,
                GL_FLOAT,
                array([[[0., 0., 0., 0.],
        [0., 0., 0., 0.],
        [0., 0., 0., 0.],
        ...,
        [0., 0., 0., 0.],
...,
        )
)
D3D12: Removing Device.
Traceback (most recent call last):
  File "/home/ciciyang/miniconda3/envs/icon/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/ciciyang/miniconda3/envs/icon/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/ciciyang/code/ICON/scripts/render_single.py", line 187, in <module>
    opengl_util.render_result(rndr, 0, os.path.join(save_folder, subject, 'render', f'{y:03d}.png'))
  File "/home/ciciyang/code/ICON/lib/renderer/opengl_util.py", line 30, in render_result
    cam_render = rndr.get_color(shader_id)
  File "/home/ciciyang/code/ICON/lib/renderer/gl/render.py", line 301, in get_color
    data = glReadPixels(0, 0, self.width, self.height, GL_RGBA, GL_FLOAT, outputType=None)
  File "/home/ciciyang/miniconda3/envs/icon/lib/python3.8/site-packages/OpenGL/GL/images.py", line 370, in glReadPixels
    GL_1_1.glReadPixels(
  File "src/errorchecker.pyx", line 58, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError
OpenGL.error.GLError: GLError(
        err = 1285,
        description = b'out of memory',
        baseOperation = glReadPixels,
        cArguments = (
                0,
                0,
                512,
                512,
                GL_RGBA,
                GL_FLOAT,
                array([[[0., 0., 0., 0.],
        [0., 0., 0., 0.],
        [0., 0., 0., 0.],
        ...,
        [0., 0., 0., 0.],
...,
        )
)
D3D12: Removing Device.
Traceback (most recent call last):
  File "/home/ciciyang/miniconda3/envs/icon/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/ciciyang/miniconda3/envs/icon/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/ciciyang/code/ICON/scripts/render_single.py", line 187, in <module>
    opengl_util.render_result(rndr, 0, os.path.join(save_folder, subject, 'render', f'{y:03d}.png'))
  File "/home/ciciyang/code/ICON/lib/renderer/opengl_util.py", line 30, in render_result
    cam_render = rndr.get_color(shader_id)
  File "/home/ciciyang/code/ICON/lib/renderer/gl/render.py", line 301, in get_color
    data = glReadPixels(0, 0, self.width, self.height, GL_RGBA, GL_FLOAT, outputType=None)
  File "/home/ciciyang/miniconda3/envs/icon/lib/python3.8/site-packages/OpenGL/GL/images.py", line 370, in glReadPixels
    GL_1_1.glReadPixels(
  File "src/errorchecker.pyx", line 58, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError
D3D12: Removing Device.
OpenGL.error.GLError: GLError(
        err = 1285,
        description = b'out of memory',
        baseOperation = glReadPixels,
        cArguments = (
                0,
                0,
                512,
                512,
                GL_RGBA,
                GL_FLOAT,
                array([[[0., 0., 0., 0.],
        [0., 0., 0., 0.],
        [0., 0., 0., 0.],
        ...,
        [0., 0., 0., 0.],
...,
        )
)
Traceback (most recent call last):
  File "/home/ciciyang/miniconda3/envs/icon/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/ciciyang/miniconda3/envs/icon/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/ciciyang/code/ICON/scripts/render_single.py", line 219, in <module>
    opengl_util.render_result(
  File "/home/ciciyang/code/ICON/lib/renderer/opengl_util.py", line 30, in render_result
    cam_render = rndr.get_color(shader_id)
  File "/home/ciciyang/code/ICON/lib/renderer/gl/render.py", line 301, in get_color
    data = glReadPixels(0, 0, self.width, self.height, GL_RGBA, GL_FLOAT, outputType=None)
  File "/home/ciciyang/miniconda3/envs/icon/lib/python3.8/site-packages/OpenGL/GL/images.py", line 370, in glReadPixels
    GL_1_1.glReadPixels(
  File "src/errorchecker.pyx", line 58, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError
OpenGL.error.GLError: GLError(
        err = 1285,
        description = b'out of memory',
        baseOperation = glReadPixels,
        cArguments = (
                0,
                0,
                512,
                512,
                GL_RGBA,
                GL_FLOAT,
                array([[[0., 0., 0., 0.],
        [0., 0., 0., 0.],
        [0., 0., 0., 0.],
        ...,
        [0., 0., 0., 0.],
...,
        )
)
D3D12: Removing Device.
Traceback (most recent call last):
  File "/home/ciciyang/miniconda3/envs/icon/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/ciciyang/miniconda3/envs/icon/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/ciciyang/code/ICON/scripts/render_single.py", line 219, in <module>
    opengl_util.render_result(
  File "/home/ciciyang/code/ICON/lib/renderer/opengl_util.py", line 30, in render_result
    cam_render = rndr.get_color(shader_id)
  File "/home/ciciyang/code/ICON/lib/renderer/gl/render.py", line 301, in get_color
    data = glReadPixels(0, 0, self.width, self.height, GL_RGBA, GL_FLOAT, outputType=None)
  File "/home/ciciyang/miniconda3/envs/icon/lib/python3.8/site-packages/OpenGL/GL/images.py", line 370, in glReadPixels
    GL_1_1.glReadPixels(
  File "src/errorchecker.pyx", line 58, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError
OpenGL.error.GLError: GLError(
        err = 1285,
        description = b'out of memory',
        baseOperation = glReadPixels,
        cArguments = (
                0,
                0,
                512,
                512,
                GL_RGBA,
                GL_FLOAT,
                array([[[0., 0., 0., 0.],
        [0., 0., 0., 0.],
        [0., 0., 0., 0.],
        ...,
        [0., 0., 0., 0.],
...,
        )
)
xargs: python: terminated by signal 11
xargs: python: terminated by signal 11
thuman2 END----------**

I follow issue137 and change NUM_THREADS to 4,it seems doesn't work and the error is as follows:

**thuman2 START----------
processing all the subjects
xargs: python: terminated by signal 9
xargs: python: terminated by signal 9
thuman2 END----------**

from icon.

yangqinhui0423 avatar yangqinhui0423 commented on May 25, 2024

Then I checked "log/render/thuman2-{num_views}-{size}-{part}.txt". It seems it is stuck.
image

from icon.

yangqinhui0423 avatar yangqinhui0423 commented on May 25, 2024

solved

from icon.

YuliangXiu avatar YuliangXiu commented on May 25, 2024

@yangqinhui0423 It would be helpful if you could share some hints here, thanks :)

from icon.

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.