muupan / async-rl

Replicating "Asynchronous Methods for Deep Reinforcement Learning" (http://arxiv.org/abs/1602.01783)
MIT License
400 stars 81 forks source link

What to put in <path-to-rom> #30

Open FerranAlet opened 6 years ago

FerranAlet commented 6 years ago

In: python demo_a3c_ale.py [--use-lstm]

I've been looking at what to put in for quite a while but I have just found it's related to ALE. I've tried putting either 'breakout' or the path to the ALE repo in my desktop but neither works; what should I put?

Thanks!

Clanatia commented 6 years ago

if you want just input rom name ,

ale.py 50 line

change code

ale.loadROM(rom_filename) to

import atari_py self.game_path = atari_py.get_game_path(rom_filename) ale.loadROM(self.game_path)

and

cmd : python demo_a3c_ale.py space_invaders trained_model/space_invaders_lstm/80000000_finish.h5 --use-lstm

williamissirius commented 6 years ago

Correction:

ale.loadROM(self.game_path)

Should be:

le.loadROM(str.encode(self.game_path))