-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build a Docker image #22
Comments
Thanks. Alternatively, if you can figure out how to make it build and run on MacOSX, I'd also be interested to see what needs to be changed to make it work. |
* Creates an Ubuntu 14.04, tightvnc, bazel image with all the dependencies for building and running lab. * Does an initial compile using 'bazel build :deepmind_lab.so --define headless=osmesa' * Run headless with 'bazel run :random_agent --define headless=osmesa' Issues: * OpenGL currently doesn't work properly for some reason, so running the non-headless version doesn't work. See https://ubuntuforums.org/archive/index.php/t-2257096.html
#24 This is working failrly well, at least to build the image and run headless. I'm getting some odd errors related to OpenGL though. Mesa should fall back to using one of the software drivers if it can't find a hardware version, but things are acting strangely. After starting an
Using vncserver (tightvnc which is the default in 14.04) and tigervnc, I get this:
|
Do you expect deep mind lab to work like openai universe? Just import a python package and it does rest of magic of importing containers and starting the game? |
I didn't know universe could do all that :) Plan is to hook it up to universe to use those agents as an addition/alternative. I'd love to have it take advantage of any other feature to make is as simple as possible. Do you happen to know where the logic for that is in the source? |
@karpathy @nottombrown <- This folks would be the experts. I'm not entirely 100% on how to integrate a brand new environment. I believe openai/universe is a registry built upon openai/gym The registry of environment happens here: https://github.com/openai/universe/blob/master/universe/__init__.py I would expect setup to be something like this after installing docker.
|
@nojvek We haven't yet released the tools necessary to integrate new environments into If you're interested in getting beta access to our universe integration tools to help dockerize |
@nottombrown I just emailed you. |
@frankcarey @tkoeppe @nojvek |
* Creates an Ubuntu 14.04, tightvnc, bazel image with all the dependencies for building and running lab. * Does an initial compile using 'bazel build :deepmind_lab.so --define headless=osmesa' * Run headless with 'bazel run :random_agent --define headless=osmesa' Issues: * OpenGL currently doesn't work properly for some reason, so running the non-headless version doesn't work. See https://ubuntuforums.org/archive/index.php/t-2257096.html
* After much debugging, it seems xvfb (virtual frame buffer) needed to be implemented to get opengl working properly. * Switched to using our own from-stratch Dockerfile based on Ubuntu 14.04 * Switched to x11vnc instead of tightvnc since tightvnc didn't seem to work, but not sure if that's still an issue or not. * Added lots of documentation around the various settings used. * Using fluxbox instead of lxdm because it was lighter weight.
I've got this working well now. Checkout the last commits and comments in PR #24 |
@frankcarey yup, you have to wrap such things in xvfb (the same true for gym, universe and others, that use this approach) |
I saw that OSX isn't supported, so I'm working on creating a docker file that should make it easier to experiment with it.
The text was updated successfully, but these errors were encountered: