Skip to content
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

Simple way to run the project #78

Open
hijkzzz opened this issue Jul 30, 2020 · 2 comments
Open

Simple way to run the project #78

hijkzzz opened this issue Jul 30, 2020 · 2 comments

Comments

@hijkzzz
Copy link

hijkzzz commented Jul 30, 2020

Install dependencies

conda create -n pymarl python=3.7 -y
conda activate pymarl

conda install pytorch==1.6.0 torchvision cudatoolkit=10.2 -c pytorch -y
pip install sacred numpy scipy matplotlib seaborn pyyaml pygame pytest probscale imageio snakeviz tensorboard-logger
pip install git+https://github.com/oxwhirl/smac.git

Modify line 49 of src/utils/logging.py

import torch as th
item = "{:.4f}".format(th.mean(th.tensor([x[1] for x in self.stats[k][-window:]])))

Then it can run with PyTorch 1.6.

@Sud0x67
Copy link

Sud0x67 commented Mar 22, 2021

thanks very much for this

@hijkzzz
Copy link
Author

hijkzzz commented Mar 22, 2021

thanks very much for this

We also recommend using our modified version:
https://github.com/hijkzzz/pymarl2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants