coreylynch / async-rl

Tensorflow + Keras + OpenAI Gym implementation of 1-step Q Learning from "Asynchronous Methods for Deep Reinforcement Learning"
MIT License
1.01k stars 174 forks source link

ValueError: need more than 4 values to unpack #14

Open nanxintin opened 7 years ago

nanxintin commented 7 years ago

When I try to run the a3c.py, I came across some problem. “”“ Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 754, in run self.target(*self.args, **self.__kwargs) File "a3c.py", line 71, in actor_learner_thread s, a, R, minimize, p_network, v_network = graph_ops ValueError: need more than 4 values to unpack “‘’” Follow by the solution in the Stackoverflow, I add a comma in the code. but it failed. I would appreciate it if anyone can help me.

fgvbrt commented 7 years ago

It looks like a3c is currently in progress and it shouldn't be working. As you can see build_graph https://github.com/coreylynch/async-rl/blob/master/a3c.py#L170 returns 4 values but then you trying to unpack it with 6 values https://github.com/coreylynch/async-rl/blob/master/a3c.py#L70

nanxintin commented 7 years ago

@fgvbrt Thank you for your reply and you are right. It seems that the author is too busy to update the A3C project in the short term.