tambetm/simple_dqn

Memory Error

Closed this issue · 3 comments

Traceback (most recent call last):
File "src/main.py", line 102, in
mem = ReplayMemory(args.replay_size, args)
File "/home/shawn/simple_dqn/src/replay_memory.py", line 12, in init
self.screens = np.empty((self.size, args.screen_height, args.screen_width), dtype = np.uint8)
MemoryError

What is wrong with this? can anyone help me?

Probably you don't have enough RAM. Try adding --replay_size 100000 to command line.

Awesome! Thanks a milllllllllion!!! It does works!

You are welcome. Probably the results with smaller replay memory are not that good, so you might want to find the highest value that works on your computer.