Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion a3c/train.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import print_function
from __future__ import division
from scipy.misc import imresize
from skimage.color import rgb2gray
from multiprocessing import *
Expand Down Expand Up @@ -265,7 +267,7 @@ def generate_experience_proc(mem_queue, weight_dict, no):
# -----
env = gym.make(args.game)
agent = ActingAgent(env.action_space, n_step=args.n_step)

# -----
if frames > 0:
print(' %5d> Loaded weights from file' % (pid,))
agent.load_net.load_weights('model-%s-%d.h5' % (args.game, frames))
Expand Down