Comments (9)
Hmmmmm, it seems that the code runs well on Colab but not locally!!
from deep-rl-class.
Hey there 👋 sorry for the delay. But you're the first to encounter this issue. That might be also the version of Cartpole you use. For this we use Gym not Gymnasium "You may be wondering why we install gym and not gymnasium, a more recent version of gym? Because the gym-games we are using are not updated yet with gymnasium."
from deep-rl-class.
No problem at all, as I said the problem comes when running this code locally, dk why, maybe I made a mistake.
from deep-rl-class.
I think it's because you might not use the same environment. Unit 4 uses gym == 0.21 not gymnasium 😄
from deep-rl-class.
Hmmm, you may be right yeah, I will check and confirm.
from deep-rl-class.
Hey there 👋 Did you found if it was because of that?
from deep-rl-class.
Sorry for being late, yeah, it is definitely because of inconsistent versions so I am closing this.
Thank you.
from deep-rl-class.
Even I have been running this locally and using gymnasium. I made respective changes for env.reset() and env.step(action).
Training and evaluation went fine.
However, I am struck at record_video() while pushing to Hub. I get an error "The image must have at least two spatial dimensions".
I did change eval_env to include render_mode.
eval_env = gym.make(env_id, render_mode="rgb_array")
Any suggestions ?
from deep-rl-class.
Restarted the system / notebook and this error does not show up. However, "push to hub" process takes up all the memory and finally crashes.
from deep-rl-class.
Related Issues (20)
- [UPDATE] An unproper description in the Prerequisites in unit1.ipynb HOT 1
- [QUESTION]Q-learning with Monte Carlo updating HOT 1
- [QUESTION] Why is Unit 7 missing HOT 1
- [HANDS-ON BUG] Bonus-Unit 1: Error while uploading the model
- [HANDS-ON BUG] Unit8 - part 1
- Unable to Publish to repo [HANDS-ON BUG] HOT 2
- [HANDS-ON BUG] HOT 3
- [HANDS-ON BUG] Unit 3 error while running "virtual_display = Display(visible=0, size=(1400, 900))" HOT 2
- [UPDATE] Some texts are too close to math signs
- [UPDATE] : Unit 3 DQN HOT 3
- BIG UPDATE April
- [HANDS-ON BUG] Unit 7 on Apple Silicon HOT 2
- [QUESTION] Missing Σ (sigma) symbol in Unit 4 "Gradient Ascent and the Policy-gradient Theorem"
- [HANDS-ON BUG] Deprecated Python 2 dependeny on the course can no longer be installed HOT 1
- FileNotFoundError: [Errno 2] No such file or directory: 'results/Huggy/configuration.yaml' HOT 1
- [HANDS-ON BUG]
- [HANDS-ON BUG] boolean is a digital number other than 1 or 0
- [UPDATE] untit1 hands on - add " render_mode='rgb_array' " to gym.make when initiating eval_env
- No google colab button available in the Unit-3 during hands on for Deep RL Course HOT 2
- [HANDS-ON BUG] HOT 4
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 deep-rl-class.