Giter VIP home page Giter VIP logo

Comments (13)

patterntrade avatar patterntrade commented on May 18, 2024 1

The GPU image doesn`t work, error msg like:

...
line 35, in
from tensorflow.python.keras import backend
File "/root/venv/lib/python3.5/site-packages/tensorflow/python/keras/backend/init.py", line 22, in
from tensorflow.python.keras._impl.keras.backend import abs
ImportError: cannot import name 'abs'

Resolved by in the container:
source venv/bin/activate
pip install keras
pip install --upgrade tensorflow-gpu

Now it works!

Thanks for setting up this repository and the docker images, very helpful.

Merry Christmas!

:-)

from rl-baselines-zoo.

araffin avatar araffin commented on May 18, 2024

Hello,
Did you try running experiments with the shell script?

./run_docker_gpu.sh python train.py --algo ppo2 --env CartPole-v1

I am not 100% that the gpu image works (i have to fix a bug where tf is installed without gpu support), however the cpu image works , it used for continuous integration.

Edit: for the files, that is normal (cf stable baselines doc where the command is explained)

from rl-baselines-zoo.

araffin avatar araffin commented on May 18, 2024

Ok, I'll try to update the image then.

from rl-baselines-zoo.

araffin avatar araffin commented on May 18, 2024

Hello again,
I updated the docker image, it should be fixed now, can you confirm this?

from rl-baselines-zoo.

patterntrade avatar patterntrade commented on May 18, 2024

from rl-baselines-zoo.

araffin avatar araffin commented on May 18, 2024

Are you using this dockerfile: https://github.com/araffin/rl-baselines-zoo/blob/master/docker/Dockerfile.gpu ?

Stable-Baselines is installed here

The built image: https://hub.docker.com/r/araffin/rl-baselines-zoo

EDIT: Oh, I see, since the beginning you seems to be using stable-baselines docker image instead of the rl zoo docker image.

from rl-baselines-zoo.

patterntrade avatar patterntrade commented on May 18, 2024

from rl-baselines-zoo.

araffin avatar araffin commented on May 18, 2024

The doc is already updated ... cf https://stable-baselines.readthedocs.io/en/master/guide/install.html#using-docker-images
"
If you are looking for docker images with stable-baselines already installed in it, we recommend using images from RL Baselines Zoo.

Otherwise, the following images contained all the dependencies for stable-baselines but not the stable-baselines package itself. They are made for development.
"

from rl-baselines-zoo.

patterntrade avatar patterntrade commented on May 18, 2024

from rl-baselines-zoo.

araffin avatar araffin commented on May 18, 2024

Ok, did you try the cpu image?
If it does not work with the cpu image, I'm afraid the problem may come from your machine, because the cpu image is tested at each push on Travic CI.
What you are seeing is the entrypoint.sh trying to create a fake X server in order to be able to launch any env that requires one.
Btw, why do you have to use sudo? Did you follow the post-installation?

from rl-baselines-zoo.

patterntrade avatar patterntrade commented on May 18, 2024

from rl-baselines-zoo.

patterntrade avatar patterntrade commented on May 18, 2024

from rl-baselines-zoo.

patterntrade avatar patterntrade commented on May 18, 2024

ADDITIONAL INFO> EXTRACTS FROM BUILD LOG GPU IMAGE

I edited the entrypoint.sh to not try and make a fake X server. Then I can build and run. I dont think the errors in the previous post are due to cartpole trying to display something, its in the code. Might it be an issue with the version of Tensorflow used?

Get:332 http://archive.ubuntu.com/ubuntu xenial/universe amd64 libopenmpi-dev amd64 1.10.2-8ubuntu1 [537 kB]
**debconf: delaying package configuration, since apt-utils is not installed**
Fetched 225 MB in 7min 7s (527 kB/s)

Successfully installed virtualenv-16.3.0
**You are using pip version 8.1.1, however version 19.0.1 is available.**
You should consider upgrading via the 'pip install --upgrade pip' command.
Using base prefix '/usr'
New python executable in /root

**Collecting joblib (from stable-baselines==2.4.0)
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /simple/joblib/**
  Downloading https://files.pythonhosted.org/packages/49/d9/4ea194a4c1d0148f9446054b9135f47218c23ccc6f649aeb09fab4c0925c/joblib-0.13.1-py2.py3-none-any.whl (278kB)

Successfully built html5lib
**tensorflow 1.12.0 has requirement tensorboard<1.13.0,>=1.12.0, but you'll have tensorboard 1.8.0 which is incompatible.**
Installing collected packages: html5lib, bleach, tensorboard, tensorflow-gpu

So docker build gave some warnings, but for some reason built the image anyway. I`m not sure that explains the issues in the previous entry or not.

Now, every time I try to build a new Docker image, it just uses local files. Not sure how I can force it to redo from download, or if that has any merit at all.

from rl-baselines-zoo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.