{"action":"created","issue":{"url":"https://api.github.com/repos/openai/evolution-strategies-starter/issues/1","repository_url":"https://api.github.com/repos/openai/evolution-strategies-starter","labels_url":"https://api.github.com/repos/openai/evolution-strategies-starter/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/openai/evolution-strategies-starter/issues/1/comments","events_url":"https://api.github.com/repos/openai/evolution-strategies-starter/issues/1/events","html_url":"https://github.com/openai/evolution-strategies-starter/issues/1","id":217320613,"number":1,"title":"Problems with viz.py","user":{"login":"truell20","id":4297743,"avatar_url":"https://avatars1.githubusercontent.com/u/4297743?v=3","gravatar_id":"","url":"https://api.github.com/users/truell20","html_url":"https://github.com/truell20","followers_url":"https://api.github.com/users/truell20/followers","following_url":"https://api.github.com/users/truell20/following{/other_user}","gists_url":"https://api.github.com/users/truell20/gists{/gist_id}","starred_url":"https://api.github.com/users/truell20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/truell20/subscriptions","organizations_url":"https://api.github.com/users/truell20/orgs","repos_url":"https://api.github.com/users/truell20/repos","events_url":"https://api.github.com/users/truell20/events{/privacy}","received_events_url":"https://api.github.com/users/truell20/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-03-27T17:38:28Z","updated_at":"2017-04-18T00:51:31Z","closed_at":null,"body":"I'm having a bit of trouble with `viz.py`\r\n\r\nWhen I run it like so:\r\n\r\n    sudo python3 -m scripts.viz Humanoid-v1 /tmp/es_master_25626/snapshot_iter00000_rew279.h5 --record --stochastic\r\n\r\nI get errors like this:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py\", line 1021, in _do_call\r\n    return fn(*args)\r\n  File \"/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py\", line 1003, in _run_fn\r\n    status, run_metadata)\r\n  File \"/usr/lib/python3.5/contextlib.py\", line 66, in __exit__\r\n    next(self.gen)\r\n  File \"/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/errors_impl.py\", line 469, in raise_exception_on_not_ok_status\r\n    pywrap_tensorflow.TF_GetCode(status))\r\ntensorflow.python.framework.errors_impl.FailedPreconditionError: Attempting to use uninitialized value MujocoPolicy/ob_mean\r\n\t [[Node: MujocoPolicy/ob_mean/read = Identity[T=DT_FLOAT, _class=[\"loc:@MujocoPolicy/ob_mean\"], _device=\"/job:localhost/replica:0/task:0/cpu:0\"](MujocoPolicy/ob_mean)]]\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.5/runpy.py\", line 184, in _run_module_as_main\r\n    \"__main__\", mod_spec)\r\n  File \"/usr/lib/python3.5/runpy.py\", line 85, in _run_code\r\n    exec(code, run_globals)\r\n  File \"/home/truell20/evolution-strategies/scripts/viz.py\", line 40, in <module>\r\n    main()\r\n  File \"/usr/local/lib/python3.5/dist-packages/click/core.py\", line 722, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"/usr/local/lib/python3.5/dist-packages/click/core.py\", line 697, in main\r\n    rv = self.invoke(ctx)\r\n  File \"/usr/local/lib/python3.5/dist-packages/click/core.py\", line 895, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n  File \"/usr/local/lib/python3.5/dist-packages/click/core.py\", line 535, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/home/truell20/evolution-strategies/scripts/viz.py\", line 30, in main\r\n    rews, t = pi.rollout(env, render=True, random_stream=(np.random if stochastic else None))\r\n  File \"/home/truell20/evolution-strategies/es_distributed/policies.py\", line 78, in rollout\r\n    ac = self.act(ob[None], random_stream=random_stream)[0]\r\n  File \"/home/truell20/evolution-strategies/es_distributed/policies.py\", line 197, in act\r\n    a = self._act(ob)\r\n  File \"/home/truell20/evolution-strategies/es_distributed/tf_util.py\", line 137, in <lambda>\r\n    return lambda *inputs : f(*inputs)[0]\r\n  File \"/home/truell20/evolution-strategies/es_distributed/tf_util.py\", line 152, in __call__\r\n    results = get_session().run(self.outputs_update, feed_dict=feed_dict)[:-1]\r\n  File \"/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py\", line 766, in run\r\n    run_metadata_ptr)\r\n  File \"/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py\", line 964, in _run\r\n    feed_dict_string, options, run_metadata)\r\n  File \"/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py\", line 1014, in _do_run\r\n    target_list, options, run_metadata)\r\n  File \"/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py\", line 1034, in _do_call\r\n    raise type(e)(node_def, op, message)\r\ntensorflow.python.framework.errors_impl.FailedPreconditionError: Attempting to use uninitialized value MujocoPolicy/ob_mean\r\n\t [[Node: MujocoPolicy/ob_mean/read = Identity[T=DT_FLOAT, _class=[\"loc:@MujocoPolicy/ob_mean\"], _device=\"/job:localhost/replica:0/task:0/cpu:0\"](MujocoPolicy/ob_mean)]]\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/openai/evolution-strategies-starter/issues/comments/294639147","html_url":"https://github.com/openai/evolution-strategies-starter/issues/1#issuecomment-294639147","issue_url":"https://api.github.com/repos/openai/evolution-strategies-starter/issues/1","id":294639147,"user":{"login":"truell20","id":4297743,"avatar_url":"https://avatars1.githubusercontent.com/u/4297743?v=3","gravatar_id":"","url":"https://api.github.com/users/truell20","html_url":"https://github.com/truell20","followers_url":"https://api.github.com/users/truell20/followers","following_url":"https://api.github.com/users/truell20/following{/other_user}","gists_url":"https://api.github.com/users/truell20/gists{/gist_id}","starred_url":"https://api.github.com/users/truell20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/truell20/subscriptions","organizations_url":"https://api.github.com/users/truell20/orgs","repos_url":"https://api.github.com/users/truell20/repos","events_url":"https://api.github.com/users/truell20/events{/privacy}","received_events_url":"https://api.github.com/users/truell20/received_events","type":"User","site_admin":false},"created_at":"2017-04-18T00:51:31Z","updated_at":"2017-04-18T00:51:31Z","body":"?"}}
{"actor":{"display_login":"truell20"}}