浏览代码

ignoring the Packages folder that is created in unity-environment for Unity version 2017.3

Print a message if someone tries to lauch ppo with the load flag but an invalid run-path
/tag-0.2.0
vincentpierre 7 年前
当前提交
ebaf5268
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 1
      .gitignore
  2. 3
      python/ppo.py

1
.gitignore


/unity-environment/[Oo]bj/
/unity-environment/[Bb]uild/
/unity-environment/[Bb]uilds/
/unity-environment/[Pp]ackages/
/unity-environment/Assets/AssetStoreTools*
# Tensorflow Model Info

3
python/ppo.py


if load_model:
print('Loading Model...')
ckpt = tf.train.get_checkpoint_state(model_path)
if ckpt == None:
print('The model {0} could not be found. Make sure you specified the right '
'--run-path'.format(model_path))
saver.restore(sess, ckpt.model_checkpoint_path)
else:
sess.run(init)

正在加载...
取消
保存