NotAnyMike / gym

An improvement of CarRacing-v0 from OpenAI Gym in order to make the environment complex enough for Hierarchical Reinforcement Learning
https://notanymike.github.io/
Other
70 stars 24 forks source link

Wrong segment of 1 tile #14

Open NotAnyMike opened 5 years ago

NotAnyMike commented 5 years ago

Sometimes a weird segment with very few tiles is created

Before trying to solve this, given that this error is very rare, implement:

Also i would be nice if:

We can use the closest commit before 8th may in the Take_center env

NotAnyMike commented 5 years ago

The solution was simple, mainly it happened with only one track (when the other track is not useful and gets eliminated) in that case, we just check if there the next and previous tiles match, if not it is deleted. In the case where the extra tiles occur in the second track, it only happens when the rest got removed, thus if the second track is shorter than 5, then delete the whole second track.

This was checked over 200 random tracks, and it appeared only once.

NotAnyMike commented 5 years ago

Looks like the porblem is solved, but still checking out if it is still out there