DQN_DDQN_Dueling_and_DDPG_Tensorflow
DQN_DDQN_Dueling_and_DDPG_Tensorflow copied to clipboard
AttributeError: 'TimeLimit' object has no attribute 'monitor'
[2018-04-23 15:16:46,849] Making new env: Seaquest-v0
Traceback (most recent call last):
File "gym_dqn_atari.py", line 58, in
gym version is 0.9.2
Unfortunately this code is a bit old and deprecated. You can solve the problem by removing all references to 'monitor' from the code.
@spiglerg I through the following steps to solve the issue: change self.monitor = self.env.monitor to: self.monitor = Monitor(self.env,"./test/",force=True) ,and also add title including module: from gym.wrappers.monitoring import Monitor
In gym_dqn_atari.py file, change env.monitor.start(outdir+'/'+ENV_NAME,force = True, video_callable=multiples_video_schedule) to: Monitor(env, outdir+'/'+ENV_NAME,force = True)
The program can run.
@spiglerg How can the program restore the Q-learning weight by continuing train the program, whether the program can do this?