Skip to content

Commit

Permalink
+folder for saved weights
Browse files Browse the repository at this point in the history
  • Loading branch information
rmeertens committed Jul 4, 2017
1 parent a56069b commit e63a99e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BrainDQN_Nature.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self,actions):
self.saver = tf.train.Saver()
self.session = tf.InteractiveSession()
self.session.run(tf.global_variables_initializer())
checkpoint = tf.train.get_checkpoint_state(".")
checkpoint = tf.train.get_checkpoint_state("./savedweights")
if checkpoint and checkpoint.model_checkpoint_path:
self.saver.restore(self.session, checkpoint.model_checkpoint_path)
print "Successfully loaded:", checkpoint.model_checkpoint_path
Expand Down Expand Up @@ -128,7 +128,7 @@ def trainQNetwork(self):

# save network every 100000 iteration
if self.timeStep % 10000 == 0:
self.saver.save(self.session, 'network' + '-dqn', global_step = self.timeStep)
self.saver.save(self.session, './savedweights/network' + '-dqn', global_step = self.timeStep)

if self.timeStep % UPDATE_TIME == 0:
self.copyTargetQNetwork()
Expand Down
1 change: 1 addition & 0 deletions savedweights/info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
In this folder all saved weights will appear

0 comments on commit e63a99e

Please sign in to comment.