Code Monkey home page Code Monkey logo

Comments (6)

Theohhhu avatar Theohhhu commented on June 2, 2024

Could you please provide me with the complete error tracing log?

from marllib.

Nafisanaznin avatar Nafisanaznin commented on June 2, 2024

sure. I am running the add_new_env.py file. And I have replaced mappo with iql. And the error log is the following,
erro1
error2
error3

from marllib.

Aequatio-Space avatar Aequatio-Space commented on June 2, 2024

I met a similar issue. To solve it, import a different ENV_REGISTRY
from marllib.envs.global_reward_env import COOP_ENV_REGISTRY as ENV_REGISTRY
instead of
from marllib.envs.base_env import ENV_REGISTRY

This Is because IQL algorithm is a (fake) VD network that uses run_vd.py to run, when it imports the ENV_REGISTRY, it comes from global_reward_env.

from marllib.envs.global_reward_env import COOP_ENV_REGISTRY as ENV_REGISTRY

In this add_new_env.py however, the ENV_REGISTRY comes from base_env.

from marllib.envs.base_env import ENV_REGISTRY

from marllib.

Nafisanaznin avatar Nafisanaznin commented on June 2, 2024

Thank you very much for your reply. But for some reason after replacing that line its telling me that my environment is not registered. Do I have to change something in my config file? Thanks in advance.

from marllib.

Aequatio-Space avatar Aequatio-Space commented on June 2, 2024

Thank you very much for your reply. But for some reason after replacing that line its telling me that my environment is not registered. Do I have to change something in my config file? Thanks in advance.

You can try to register both environment in the registries (base_env and global_reward_env). Also, If you can kindly provide the specific error screenshot you have encountered, I may get a better understanding of what's going on :)

from marllib.

Nafisanaznin avatar Nafisanaznin commented on June 2, 2024

I solved it afterwards. I had to change the init.py file in the marl folder. I had to make the ENV_REGISTRY as COOP_ENV_REGISTRY. After that it worked. Thanks for your help though!

from marllib.

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.