Comments (6)
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 theRenderMode.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.
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.
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.
hello sir, I have the same problem about the rendering speed, so how can I switch to use GPU to render?
from rlbench.
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.
You can now do GPU rendering: https://github.com/stepjam/RLBench/blob/master/README.md#running-headless
from rlbench.
Related Issues (20)
- Loading demos at different resolutions causes incorrect data
- Missing actions for some timestep when using dataset_generator
- Action Execution Failed
- Why are depth images striped?
- Open box with Domain randomization at episode >=2 failed
- Forward kinematics for robot arm HOT 1
- Real time plotting issue
- File invalid Error 404
- after installing RLBench, still no module named rlbench found HOT 2
- inhomogeneous shape error when running the immitation learning example
- Can you provide obs.delta_gripper_pose in the end effector frame
- cannot reshape array of size 16 into shape (3,4)
- Error: signal 11 when env.reset() HOT 2
- An error when running imitation_learning demo HOT 1
- Door handle slipping off of fingers
- Use RLBench without X server HOT 4
- How to record a video during eval?
- How can I use ur3 in gym.make? HOT 1
- Consistent resetting through np.random.Generator HOT 1
- Inverse kinematics solving failed.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rlbench.