Closed liber145 closed 7 years ago
examples/botaction_recorder.py is for recording the actions of a built-in bot playing the game, not for human demonstrations. Currently there are no released examples of such environments, but there might be someday.
The ones to use for recording human demonstrations are examples/vnc_recorder.py and examples/reward_recorder.py.
Documentation's a bit thin on these. Basically, you start a remote env (see https://github.com/openai/universe/blob/master/doc/remotes.rst) and then start both a vnc_recorder and reward_recorder. Give both of them the same --logfile-dir /tmp/demo1234
. Then you connect your VNC client (TurboVNC works best) to the vnc_recorder's proxy port (typically localhost:5899
) and play the game. Then you should find files, something line /tmp/demo1234/rewards.jsonl
and /tmp/client.fbs
and /tmp/server.fbs
.
@tlbtlbtlb Thanks a lot!
I followed your steps, and I can get client.fbs
and server.fbs
in /tmp/demo1234/
now. But I could not find rewards.jsonl
anywhere.
I start vnc_recorder and reward_recorder, then connect VNC client to the default port by mac's built-in VNC and play the game. However, there is no output in the terminal of reward_recorder
. And in the terminal of vnc_recorder
, it shows that
[2017-02-06 15:23:48,187] [3] Closing [2017-02-06 15:23:48,188] [3] Copying rewards.demo into this connection's log dir [2017-02-06 15:23:48,188] /tmp/demo/rewards.demo does not exist; not copying into recording directory [2017-02-06 15:23:48,188] /tmp/demo/botactions.jsonl does not exist; not copying into recording directory [2017-02-06 15:23:48,188] /tmp/demo/env_id.txt does not exist; not copying into recording directory
There are some files not existed. I guess that I may do something wrong in the above operations.
Questions:
rewards.jsonl
file?clients.fbs
, sever.fbs
?It's misleading that these scripts are in the examples directory -- they aren't examples of anything you can actually do yet. There are major parts of this demo system we haven't finished or released, especially the code for reading and replaying the demos.
Hopefully we'll get this working soon so we can release the replay code and it'll be usable for demonstration learning. Until then, you're welcome to hack around of course and see what you can extract from the files, but we can't put much effort into supporting it.
OK. Thanks for your advice. The Universe is a very great job! I have learned something about docker and anaconda while using Universe, and I will keep learning how to use it. 👍
example/recorders/botaction_recorder.py
states thatI want to use it to record my actions when playing games. Following the example code in ReadMe, I can start the agent, connect to the server and play games successfully. And the output in the terminal states that
There is supposed to be three log files in
/tmp/demo
. However, afterdocker exec
into that running docker, I only getsystem_diagnostics.jsonl
there.I have a poor knowledge about the network. It is hard for me to get clear about communication actions between recorder and agent. Could anyone show me how to use
/example/recorders/*_recorder.py
?Expected behavior
Get
/tmp/demo/botactions.jsonl
and/tmp/demo/vnc_record.jsonl
in docker file system.Actual behavior
There is only
/tmp/demo/botactions.jsonl
in docker file system.Versions list