openai / procgen

Procgen Benchmark: Procedurally-Generated Game-Like Gym-Environments

Home Page:https://openai.com/blog/procgen-benchmark/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Selecting specific levels

henrikmarklund opened this issue · comments

Say I want to progressively add more levels to my train set. Is the easiest way to just reinitialize the environment, everytime I want to add new levels?

env = ProcGenEnv(num_levels=10, start_level=0)
env = ProcGenEnv(num_levels=20, start_level=0)
...
env = ProcGenEnv(num_levels=500, start_level=0)

And as my test set I have;
test_env = ProcGenEnv(num_levels=500, start_level=500)

Thanks,
Henrik

Yes, but I'd call env.close() first before re-initialization.

I hope that the authors will make it possible to do this kind of stuff via the reset function.

Excellent! Thank you!