Open itzmestar opened 6 years ago
Hello, In the old version of baselines i had this function:
def get_session():
return tf.get_default_session()
I think, you can use tf.get_default_session() instead of U.get_session() I add some code to acktr_cont.py which can save/load model from checkpoints. If you don't want to make checkpoints, you can use acktr_cont.py from the baselines.
To run game simulation from checkpoint you can use
ai_runner.py --fname ./model/gathering.ckpt
Also i made little changes to baselines/acktr/policies.py, - in GaussianMlpPolicy i use tf.nn.elu activation function, instead of tf.nn.tanh. (Not sure that gathering.ckpt would work without this change)
thanks for the reply.
i got older version of baselines as well. running run_acktr.py with it gives another issue.
also i tried to run ai_runner.py which fails in module import:
Traceback (most recent call last):
File "ai_runner.py", line 7, in
I couldn't find this micro_env in pip either.
Check my latest commit, It should be working now (I made an update for latest versions of gym and baselines)
its working. thanks 👍
hi, I am trying to run run_acktr.py on python 3.6 but i get this error:
I have the latest openai/baselines code. I checked indeed 'baselines.common.tf_util' has make_session but no 'get_session' should I replace acktr_cont.py with the file from baselines??