Git Product home page Git Product logo

rosewang2008 / gym-cooking Goto Github PK

View Code? Open in Web Editor NEW
176.0 3.0 36.0 9.54 MB

gym-cooking: Code for "Too many cooks: Bayesian inference for coordinating multi-agent collaboration", Winner of the CogSci 2020 Computational Modeling Prize in High Cognition, and a NeurIPS 2020 CoopAI Workshop Best Paper.

License: MIT License

Python 99.57% Shell 0.43%
machine-learning reinforcement-learning multiagent-reinforcement-learning

gym-cooking's People

Contributors

rosewang2008 avatar sarahawu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gym-cooking's Issues

Request for action space specificiation

Greetings.

I was quite inspired by your work on theory of mind and it;s integration with AI agents.
Thank you very much for publishing the experiments, as well as the experiment simulator.

Regarding the latter, I was hoping you could provide a bit more details regarding the action space for the overcooked environment featured in this repository.

I went as far as looking into the OvercookedEnvironment class's step method, but it is not clear what I should feed when calling env.step(action_dict).

The paper mentions an action space size 5 to move the agent: North, East, West, South, Stay still.
I tried passing action_dict={"agent-1": 0,1,2,3,4... etc...} but it did not seem to work consistently.

For a bit more context, I am trying to use this environment with off-the-shelf RL algorithms such as those provided in Stable Baselines 3, so it would be really helpful to have a specification for env.action_space.

Looking forward to hear from you.
Best regards.

Minor typo

Congratulations on your nice paper and the award! I noticed a small typo in the folder gym_cooking/misc/game/graphics - plate.png should be renamed to Plate.png

Unable to run example command: ModuleNotFoundError

Hello,

I've forked and clone your repo and tried to run the command python main.py --num-agents 2 --level partial-divider_salad --model1 bd --model2 bd but am not able to run it successfully:

image

Will it be possible for you to help?

Thank you.

Missing `misc` module

Hi,
This looks great, I can't wait to try it!
However, when I tried to run as described in the documentation, I get an error about a missing module misc.

(gym) $ python main.py --num-agents 4 --level partial-divider_salad --model1 greedy --model2 bd --model3 fb --model4 dc
Traceback (most recent call last):
  File "main.py", line 7, in <module>
    from misc.game.gameplay import GamePlay
ModuleNotFoundError: No module named 'misc'

am I missing something? or doing something wrong here?
thanks!

Two variables with the same name mixup

Hi Rose,

Great project! I really enjoyed the images visualizing each step.

However, I ran into the following error when trying to run experiments with the --with-image-obs and --record commands:
Capture

I believe the issue lies in the following part of the overcooked_environment.py file, where the new_obs variable is used for two different objects - the OvercookedEnvironment and a GameImage:
Capturee

When I renamed the new_obs variables on lines 210 and 213, everything worked fine.

No run_experiments.sh file

README suggests a run_experiments.sh file, looks like it's sitting in your .gitignore and thus not pushed to GitHub.

Does the environment support an order queue (just like in original game?)

IIUC, the environment support only one recipe for one layout.
So my goal is to have multiple recipes for one layout in combination with order queue that prioritize earlier order with higher reward.

Is there a specific file that support this feature? If not is there a recommended way to implement this?

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.