Code Monkey home page Code Monkey logo

Comments (9)

k0T0z avatar k0T0z commented on June 19, 2024

Hmmmmm, it seems that the code runs well on Colab but not locally!!

from deep-rl-class.

simoninithomas avatar simoninithomas commented on June 19, 2024

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.

k0T0z avatar k0T0z commented on June 19, 2024

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.

simoninithomas avatar simoninithomas commented on June 19, 2024

I think it's because you might not use the same environment. Unit 4 uses gym == 0.21 not gymnasium 😄

from deep-rl-class.

k0T0z avatar k0T0z commented on June 19, 2024

Hmmm, you may be right yeah, I will check and confirm.

from deep-rl-class.

simoninithomas avatar simoninithomas commented on June 19, 2024

Hey there 👋 Did you found if it was because of that?

from deep-rl-class.

k0T0z avatar k0T0z commented on June 19, 2024

Sorry for being late, yeah, it is definitely because of inconsistent versions so I am closing this.
Thank you.

from deep-rl-class.

ra9hur avatar ra9hur commented on June 19, 2024

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 ?

unit4.zip

from deep-rl-class.

ra9hur avatar ra9hur commented on June 19, 2024

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)

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.