-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Melting Pot scenarios #114
Comments
Thanks for reporting this, what is the difference between a substrate and a scenario? @elliottower should be able to advise on updating the environment Could you post the follow up pickle error? |
Broadly speaking, a scenario is a substrate with a background population controlling some of the player roles. More formally, it is an instance of a substrate (the underlying substrate can be recovered with the
And this is the error once the adjustments to
|
Thanks for pointing this out, not sure exactly how we would get around the pickling error—I remember running pickle errors previously as well, the lab2d objects don’t seem to be able to be serialized easily via pickle at least. If it’s not possible to fix the pickling problem I wouldn’t be against adding support for scenarios and just having a disclaimer about the inability to pickle it. |
Is there a quick way to circumvent the pickling steps and make the code run? |
I suspect not using supersuit |
Yeah unfortunately the supersuit vec env wrapper I believe uses pickling for the multi processing, so can’t really get away from that problem. Maybe if you set number of cpus to one it won’t actually do the pickling? |
Currently,
MeltingPotCompatibilityV0
works only when the inputenv
is a substrate, rather than a scenario. This is becauseself._env.observation_spec()[0]
has no attribute"WORLD.RGB"
. This can be rectified by replacing lines 90-92 ofmeltingpot_compability.py
withand lines 129-131 with
However, the code still runs into a pickling error later down the line. What would be the best way to fix this and add the feature?
The text was updated successfully, but these errors were encountered: