GitXplorerGitXplorer
o

retro-movies

public
27 stars
19 forks
0 issues

Commits

List of commits on branch master.
Verified
5f583c03a20c2e9bdb7df9200b131abdacec29d5

Merge pull request #2 from christopherhesse/update-readme

cchristopherhesse committed 6 years ago
Unverified
7beda921fd03e288db1eb3690701cea68963e74e

update README with repo status

cchristopherhesse committed 6 years ago
Verified
6383efd0fc5f1dc2b8b8ac4dc5644ce726e7e167

Merge pull request #1 from joshim5/retro-update

cchristopherhesse committed 6 years ago
Unverified
98ab2d88cd5bbff2909a34f2f2a1f420237c3b44

add statistics about movies

committed 6 years ago
Unverified
78f6b11e5a5b94d22a9bae68e5c8dc86fec5957d

update README

committed 6 years ago
Unverified
3bcce71d2829c5744e472d3b05affff7391a2607

update code for updated gym-retro codebase.

committed 6 years ago

README

The README file for this repository.

Status: Archive (code is provided as-is, no updates expected)

retro-movies

This is a collection of human demonstrations of gym-retro games in BK2 format. Right now it consists only of a single demonstration for each level of the Sonic Benchmark used by the Retro Contest. These recordings can be used to have the agent start playing from random points sampled from the course of each level, exposing the agent to a lot of areas it may not have seen if it only started from the beginning of the level.

To convert a movie to a video:

python -m retro.scripts.playback_movie human/SonicAndKnuckles3-Genesis/contest/SonicAndKnuckles3-Genesis-AngelIslandZone.Act1-0000.bk2
open human/SonicAndKnuckles3-Genesis/contest/SonicAndKnuckles3-Genesis-AngelIslandZone.Act1-0000.mp4

To get states from a movie, run get_states.py

python -m get_states.py

For convenience, we have included statistics on the movies already included in this repo.

To record your own movie (assuming you have gym-retro installed):

pip install pyglet
python human-recorder.py --game SonicAndKnuckles3CustomKevin-Genesis --scenario contest --state MushroomHillZone.Custom

Hit R or Left Bumper if you're using an Xbox controller to rewind time by a short amount.

When you hit ESC or the center Xbox button on the controller, the episode will be recorded to a file (it is not recorded until this point).