Comments (5)
you have two solutions : try with MKL_THREADING_LAYER=GNU
(see https://github.com/DLR-RM/stable-baselines3/blob/master/.gitlab-ci.yml) or change the default start method to fork (cf doc).
from rl-baselines3-zoo.
I don't follow, could you please be more specific? Where should I make those specific changes?
Also, would be fixing this doable? If not, handling the error and display a message to how to manually fix it sounds like a good option to me.
from rl-baselines3-zoo.
I don't follow, could you please be more specific? Where should I make those specific changes?
MKL_THREADING_LAYER=GNU
is an environment variable, so it works like that:
MKL_THREADING_LAYER=GNU python train.py ...
the start method can be specified here:
https://github.com/DLR-RM/rl-baselines3-zoo/blob/master/utils/exp_manager.py#L91
Also, would be fixing this doable? If not, handling the error and display a message to how to manually fix it sounds like a good option to me.
unfortunately, it may come from python and on some linux computers only, so I'm not sure how easy it is to catch...
from rl-baselines3-zoo.
Thanks! I tried both methods but unfortunately, I keep getting the same error :/
What I don't understand is why it's trying to create several pybullet
envs to create a single video. Isn't one env enough for that?
unfortunately, it may come from python and on some linux computers only, so I'm not sure how easy it is to catch...
I guessed it wasn't easy, at least this issue can be useful for the moment
from rl-baselines3-zoo.
So, the fix is here: #77
Different things:
- as mentioned in the doc (https://stable-baselines3.readthedocs.io/en/master/guide/vec_envs.html) the thread safe method need to be protected with the
__main__
(I wrote the code when we were still usingfork
as default) - the start method was not at the right place, for testing, it is defined here: https://github.com/DLR-RM/rl-baselines3-zoo/blob/master/utils/utils.py#L203
- we are not using multiple envs, but just one subproc env for rendering PyBullet envs (this is a hack), you can also pass
--no-render
if you just need the video without direct visual feedback (faster).
from rl-baselines3-zoo.
Related Issues (20)
- [Question] Support for Customized BaseFeaturesExtractor HOT 1
- [Bug]: video recording on Pybullet HOT 4
- Plotting Script Improvement HOT 1
- [Question] Training Donkey Car Without Simulator Rendering HOT 2
- Issue with 'feat/offline-RL' Branch for Donkey Car in rl-baselines3-zoo HOT 4
- [Feature Request] Call train from Python code HOT 2
- [Bug]: Cannot enjoy due to error Cannot convert space of type Discrete(7). Please upgrade your code to gymnasium. HOT 1
- [Feature Request] Store git hash of key repos/packages
- [Bug]: Nan Problems for SAC, TQC, for AntBulletEnv-v0, HalfCheetahBulletEnv-v0 HOT 9
- [Error]: I got unexpected error using enjoy() with pretrain model HOT 4
- Training DonkeyCar with TQC algorithm with pretrained AE
- [Bug]: Custom Sub-Hyperparameters during train.py -> Optimize HOT 1
- [Question] You must pass an environment when using `HerReplayBuffer` HOT 1
- [Question] RuntimeError: Unable to sample before the end of the first episode. We recommend choosing a value for learning_starts that is greater than the maximum number of timesteps in the environment. HOT 5
- [Question] Custom Eval Callback for train/optimize HOT 2
- [Bug]: TODO: add test dependencies in the `setup.py` HOT 1
- [Question] Does hyperparameter tuning support custom vectorized environments? HOT 6
- [Bug]: Training suddenly stops at 25000 timesteps and Optuna optimization immediately exits in my custom environment HOT 7
- [Question] exp_manager reward and GAE discount factors HOT 1
- [Bug]: Custom environment not found in gym registry, you maybe meant... error message HOT 1
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-baselines3-zoo.