AttributeError: 'Sequential' object has no attribute 'constraints'

745 views
Skip to first unread message

Anthony

unread,
Sep 12, 2017, 11:35:00 AM9/12/17
to Keras-users
When I try to run a a RL program (from here: https://github.com/stanfordnmbl/osim-rl/tree/master/scripts), I ge the following error:

Traceback (most recent call last): File "example.py", line 82, in <module> agent.compile(Adam(lr=.001, clipnorm=1.), metrics=['mae']) File "/opensim-rl/lib/python2.7/site-packages/rl/agents/ddpg.py", line 163, in compile updates = actor_optimizer.get_updates(self.actor.trainable_weights, self.actor.constraints, None) AttributeError: 'Sequential' object has no attribute 'constraints'

I read in a different question that it could be a problem with versions of Keras and TF. Yet I have the following: Keras==2.0.8, keras-rl==0.3.0, tensorflow==1.3.0, rl==2.4, osim-rl==1.4.1.

Do you know what this could be about?

jfen...@gmail.com

unread,
Sep 22, 2017, 2:35:08 AM9/22/17
to Keras-users
same

Anthony

unread,
Sep 22, 2017, 4:19:28 AM9/22/17
to Keras-users
Reply all
Reply to author
Forward
0 new messages