Comments (5)
Sorry for my mistake, I rechecked after your comment, image was fxiangucsd/sapien-rl-env
and not fxiangucsd/sapien-build-env
.
But yes fxiangucsd/sapien-rl-env
this image works fine, only thing required is just to install sapien using pip install sapien
.
from sapien.
Here are the minimal steps I found to enable offscreen rendering.
First, make sure at least graphics,utility,compute
are added to NVIDIA_DRIVER_CAPABILITIES
when building the Docker.
ENV NVIDIA_DRIVER_CAPABILITIES graphics,utility,compute,display
Next, install the libglvnd-dev
package. (in fact, libegl1
+ libxext6
should also work)
Next, you need to make sure both /usr/share/vulkan/icd.d/nvidia_icd.json
and /usr/share/glvnd/egl_vendor.d/10_nvidia.json
exist. If not, copy it from the corresponding location on the host machine into the Docker. These files should be provided by the driver, but many servers seem to miss them somehow.
Let me know if this works for you.
from sapien.
Thanks for the reply, I will try the solution and update.
Also I tried to use fxiangucsd/sapien-build-env
image to create a docker container and when I installed sapien in it using pip it worked. I got output.png when running offline example.
So I guess issue is with adding graphics
to NVIDIA_DRIVER_CAPABILITIES
. I will check the above things and then revert back.
Also please add these instructions somewhere in the readme or documentation.
from sapien.
I am quite surprised that sapien-build-env docker works, as it is not designed to run SAPIEN but for compiling only.
I just figured out the capability thing yesterday, and it is now in the readme on the dev branch. I'll also provide the ICD files with SAPIEN in the next release (as a temporary hack for people with a partial driver installation).
from sapien.
Here are the minimal steps I found to enable offscreen rendering.
First, make sure at least
graphics,utility,compute
are added toNVIDIA_DRIVER_CAPABILITIES
when building the Docker.ENV NVIDIA_DRIVER_CAPABILITIES graphics,utility,compute,display
Next, install the
libglvnd-dev
package. (in fact,libegl1
+libxext6
should also work)Next, you need to make sure both
/usr/share/vulkan/icd.d/nvidia_icd.json
and/usr/share/glvnd/egl_vendor.d/10_nvidia.json
exist. If not, copy it from the corresponding location on the host machine into the Docker. These files should be provided by the driver, but many servers seem to miss them somehow.Let me know if this works for you.
Thx, this works for me. I did not use docker.
I used sudo find / -name nvidia_icd.json
to locate and copy the file and used export
to append the nvidia environment variables.
from sapien.
Related Issues (20)
- ERROR:utils.logger:failed to remove body: invalid body HOT 4
- Can't build from source HOT 3
- Can't build from source HOT 1
- Question regarding PartNet Mobility Dataset HOT 1
- Getting RuntimeError: Cannot find a suitable rendering device when runing example after pip installation HOT 3
- Sapien2.2 on not the first GPU reports errors HOT 1
- Unexpected/unrealistic Behavior from the Depth Sensor
- Problem for examples/basic/physics.py HOT 2
- How to light up the background?
- How to not display the xyz axis of the world frame in the rendered picture. HOT 1
- The sapien examples cannot work HOT 3
- Object loaded from URDF does not move HOT 1
- Cannot find the URDF files, how to download them manually?
- Issue: IndexError: _Map_base::at HOT 4
- Wrong Camera Intrinsic Matrix? HOT 1
- How to record video in SAPIEN simulation environment HOT 2
- GPU 0 is always used in a multi-GPU setup HOT 6
- pip install sapien failed HOT 3
- PBR material not working on meshes HOT 3
- Getting "RuntimeError: Cannot find cuda device suitable for rendering cuda:0" when training an RL agent HOT 3
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 sapien.