facebookresearch / ELF

An End-To-End, Lightweight and Flexible Platform for Game Research
Other
2.09k stars 285 forks source link

KeyError: 'Batch(): specified key: res or last_res not found!' #131

Closed HFly1 closed 5 years ago

HFly1 commented 5 years ago

0%| | 0/5000 [00:00<?, ?it/s]Traceback (most recent call last): File "train.py", line 40, in runner.run() File "/home/fly/Documents/ELF-master/rlpytorch/runner/single_process.py", line 56, in run self.GC.Run() File "/home/fly/Documents/ELF-master/elf/utils_elf.py", line 381, in Run res = self._call(self.infos) File "/home/fly/Documents/ELF-master/elf/utils_elf.py", line 362, in _call reply = self._cbinfos.gid File "/home/fly/Documents/ELF-master/rlpytorch/trainer/trainer.py", line 154, in actor return self.evaluator.actor(batch) File "/home/fly/Documents/ELF-master/rlpytorch/trainer/trainer.py", line 73, in actor state_curr = m.forward(batch.hist(0)) File "./rts/game_MC/model_unit_cmd.py", line 55, in forward s, res = x["s"], x["res"] File "/home/fly/Documents/ELF-master/elf/utils_elf.py", line 114, in getitem raise KeyError("Batch(): specified key: %s or %s not found!" % (key, key_with_last)) KeyError: 'Batch(): specified key: res or last_res not found!'

HFly1 commented 5 years ago

fly@fly-System-Product-Name:~/Documents/ELF-master$ sh ./train_minirts_unitcmd.sh --gpu 0

HFly1 commented 5 years ago

How do i do?