Comments (13)
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.
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.
Ok, I'll try to update the image then.
from rl-baselines-zoo.
Hello again,
I updated the docker image, it should be fixed now, can you confirm this?
from rl-baselines-zoo.
from rl-baselines-zoo.
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.
from rl-baselines-zoo.
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.
from rl-baselines-zoo.
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.
from rl-baselines-zoo.
from rl-baselines-zoo.
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, it
s 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)
- HER success_rate output [question]
- What is the best initial values for the parameters in the .yml? [question] HOT 4
- How is the trial value calculated for RL jobs? HOT 1
- update the baseline for new envs? [feature request] HOT 1
- Multithreaded training with SubprocVecEnv() not working HOT 11
- [feature request] Install Zoo as a package HOT 6
- Irreproducible zoo trials HOT 5
- BadZipFile when running PPO2. HOT 5
- Can we use it with Tenserflow 2.3.1 ? HOT 5
- Why during the evaluation VecNormalize stats arenot loaded from the current training stats? HOT 1
- [Question] Why do envs look different? HOT 3
- [Question] Why is ortho_init=False during hyperparameter searches? HOT 2
- [feature request] Hyperparameter optimization for pretrained agent
- Hyperparameter tuning using Custom env with RL-zoo and SB2 HOT 3
- SB3 v1.1 Breaking changes HOT 1
- [question] Transfer hyperparameters from optuna HOT 2
- [feature request]Add Mujoco-Gym since mujoco is free now HOT 2
- Missing (or can't find) Hyperparameters HOT 2
- Reproducible zoo result HOT 3
- I am getting ImportError in atari environment
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 rl-baselines-zoo.