ShiyuHuang commited on
Commit
b6f77bf
·
1 Parent(s): 2a9fe3c

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +19 -1
README.md CHANGED
@@ -1,3 +1,4 @@
 
1
  ---
2
  language: en
3
  license: apache-2.0
@@ -36,6 +37,22 @@ Code accompanying the paper
36
  [[paper](https://arxiv.org/abs/2302.07515)] [[videos](https://www.youtube.com/watch?v=U9REh0otmVU)] [[code](https://github.com/OpenRL-Lab/TiZero)]
37
 
38
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  ### Submit TiZero to JIDI(及第评测平台)
40
 
41
  JIDI is a public evaluation platform for RL agents. You can submit your agent of GRF at: [http://www.jidiai.cn/env_detail?envid=34](http://www.jidiai.cn/env_detail?envid=34).
@@ -54,4 +71,5 @@ Please cite our paper if you use our codes or our weights in your own work:
54
  journal={arXiv preprint arXiv:2302.07515},
55
  year={2023}
56
  }
57
- ```
 
 
1
+ ````
2
  ---
3
  language: en
4
  license: apache-2.0
 
37
  [[paper](https://arxiv.org/abs/2302.07515)] [[videos](https://www.youtube.com/watch?v=U9REh0otmVU)] [[code](https://github.com/OpenRL-Lab/TiZero)]
38
 
39
 
40
+ ### Installation
41
+
42
+ - Follow the instructions in [gfootball](https://github.com/google-research/football#on-your-computer) to set up the environment.
43
+ - `pip install gfootball`
44
+ - `pip install tizero` (or clone this repo and `pip install -e .`).
45
+ - test the installation by `python3 -m gfootball.play_game --action_set=full`.
46
+
47
+ ### Convert dump file to video
48
+
49
+ After the installation, you can use tizero to convert a dump file to a video file.
50
+ The usage is `tizero dump2video <dump_file> <output_dir> --episode_length <the length> --render_type <2d/3d>`.
51
+
52
+ You can download an example dump file from [here](http://jidiai.cn/daily_6484285/daily_6484285.dump).
53
+ And then execute `tizero dump2video daily_6484285.dump ./` in your terminal. By default, the episode length is 3000 and the render type is 2d.
54
+ Wait a minute, you will get a video file named `daily_6484285.avi` in your current directory.
55
+
56
  ### Submit TiZero to JIDI(及第评测平台)
57
 
58
  JIDI is a public evaluation platform for RL agents. You can submit your agent of GRF at: [http://www.jidiai.cn/env_detail?envid=34](http://www.jidiai.cn/env_detail?envid=34).
 
71
  journal={arXiv preprint arXiv:2302.07515},
72
  year={2023}
73
  }
74
+ ```
75
+ ````