Giter Club home page Giter Club logo

Comments (6)

stepjam avatar stepjam commented on July 16, 2024

Hi timody,

Yes this penalty is to be expected. There's always going to be a penalty when calling the rendering, and yes, as you point out ideally you should be calling this only when needed. Alas, you have a few options:

  • You can decrease the size of the images by modifying this line.
  • You can swap to using the RenderMode.EXTERNAL_WINDOWED rather than the RenderMode.OPENGL3_WINDOWED here. The former wont have any shadows, and so it will be faster to render.
  • Ensure that you are using the GPU to render. Beware, if you use something like Xvfb, then it does not use hardware rendering, so this will dramatically slow down your rendering.
  • As you pointed out, you could replay the trajectories later. I actually plan to include support for 'reset to demonstrations' which would allow you to reset to a specific point in the demo. However, it is not supper high on the priority list at the moment.

Best,
Stephen

from rlbench.

timtody avatar timtody commented on July 16, 2024

Hi Stephen,

thanks for the tips! I'm going to try decreasing the image size and switch the render mode, as I don't need shadows for my purposes.
I'm aware of the issue with virtual frame buffers, thank you. Do you know how I can make sure that coppelia sim is using the gpu to render?
About replaying trajectories: what do you mean with demonstrations? If you give me a few pointers I could try making a pull request.

Best
Julius

from rlbench.

timtody avatar timtody commented on July 16, 2024

I tried your suggestions: switching the render mode yields a noticeable difference in appearance (no shadows) and improves render time. Yay! Changing the resolutions parameters, however, does not seem to actually change the resolution of the gym cam.

from rlbench.

superggb avatar superggb commented on July 16, 2024

hello sir, I have the same problem about the rendering speed, so how can I switch to use GPU to render?

from rlbench.

stepjam avatar stepjam commented on July 16, 2024

I'm assuming you mean when you run headless? This is related directly to CoppelisSim, and is not currently supported, you can track the issue here: stepjam/PyRep#150

from rlbench.

stepjam avatar stepjam commented on July 16, 2024

You can now do GPU rendering: https://github.com/stepjam/RLBench/blob/master/README.md#running-headless

from rlbench.

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.