facebookresearch / CollaQ

A code implementation for our arXiv paper "Multi-agent Adhoc Team Play using Decompositional Q function"
Other
127 stars 24 forks source link

Could #11

Open zhoushiyang12 opened 3 years ago

zhoushiyang12 commented 3 years ago

Could you tell me the pytorch version ???Because, I think that couse this error.

I use : torch 1.7.1 torchvision 0.8.2

[INFO 22:03:34] my_main Saving models to results/models/M-M-M-2/qmix_interactive_reg__2020-12-21_22-02-55/38 [INFO 22:06:29] my_main Updated target network [ERROR 22:06:57] pymarl Failed after 0:04:02! Traceback (most recent calls WITHOUT Sacred internals): File "src/main.py", line 35, in my_main run(_run, config, _log) File "/media/ps/data/StarCraft2/CollaQ/src/run.py", line 48, in run run_sequential(args=args, logger=logger) File "/media/ps/data/StarCraft2/CollaQ/src/run.py", line 287, in run_sequential logger.print_recent_stats() File "/media/ps/data/StarCraft2/CollaQ/src/utils/logging.py", line 48, in print_recent_stats item = "{:.4f}".format(np.mean([x[1] for x in self.stats[k][-window:]])) File "/home/ps/anaconda3/envs/collaq/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 2920, in mean out=out, **kwargs) File "/home/ps/anaconda3/envs/collaq/lib/python3.6/site-packages/numpy/core/_methods.py", line 85, in _mean ret = ret.dtype.type(ret / rcount) AttributeError: 'torch.dtype' object has no attribute 'type' [INFO 22:06:57] absl Shutdown gracefully.

4ever-Rain commented 3 years ago

You can try torch 1.4.0