Skip to content

Commit

Permalink
Minor compatibility fixes for running the script on a remote machine …
Browse files Browse the repository at this point in the history
…via ssh.
  • Loading branch information
Naeem Iqbal committed Nov 16, 2020
1 parent f16f0c4 commit bc39ee6
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions examples/discovery_of_latent_keypoints/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,28 @@ This example requires to install two additional libraries for rendering
pip install pyrender --user
pip install trimesh --user
```
If you are running the script on a remote machine via SSH, then might run
into the following error:

```
ValueError: Failed to initialize Pyglet window with an OpenGL >= 3+ context. If you're logged in via SSH, ensure that you're running your script with vglrun (i.e. VirtualGL). The internal error message was ""
```
To fix this, you need to run the PyOpenGL in a headless configuration which is not enabled by default. Just uncomment the following line(4) in <em>discover_latent_keypoints.py</em>
```
# os.environ["PYOPENGL_PLATFORM"] = 'egl'
```
This will use the GPU accelerated rending on your remote machine. To use CPU-accelerated rendering, your need to use
OSMesa instead of EGL. However, this is not tested yet.
```
# os.environ["PYOPENGL_PLATFORM"] = 'osmesa'
```

If you run into the following error:
```
tensorflow.python.framework.errors_impl.UnknownError: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above. [Op:Conv2D]
```
Either you are short on memory (reduce batch size) or uncomment the following line(5) in <em>discover_latent_keypoints.py</em>

```
# os.environ['TF_FORCE_GPU_ALLOW_GROWTH'] = 'true'
```

0 comments on commit bc39ee6

Please sign in to comment.