Closed cysmith closed 3 years ago
Hi @cysmith, the --display-interval
parameter doesn't work in Docker, this something we should've mentioned in the documentation. Opening interactive windows from within Docker is not impossible but tricky, and I didn't include this functionality in the Docker run instructions or Docker image.
Matplotlib or imshow might be easier to get working but you probably need to make some changes to how run_sample.sh
invokes Docker to enable Docker to open windows on your host system.
This blog post might be helpful if you want to play with this yourself: https://developer.nvidia.com/blog/gpu-containers-runtime/. See section "OpenGL Graphics Container" that launches the nbody CUDA sample in a window.
I see. Thanks for the info. I will try these options and then try to get it working outside Docker.
I've been trying the examples. Everything works great except displaying the images. I am able to generate the videos. I get an error on line 69 of
samples/torch/util.py
saying:I tried adding
pip install PyOpenGL
to Dockerfile but it caused another error. Then I tried replacingutil.display_image
with OpenCVimshow
using a few different versions but this caused errors and does not seem a good direction.