Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strong diverging behaviors regarding realtime_mode being true or false upon inference #83

Open
MarcoMeter opened this issue Apr 18, 2019 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@MarcoMeter
Copy link
Contributor

I trained a model which can get a mean reward of 7 for solving seed 34 if realtime_mode is disabled.
If I set realtime_mode to true to observe the agent playing, the mean reward for multiple episodes is 1.7.

Did anybody else observe such a huge difference on version 1.3?

@KarolisRam
Copy link

I noticed that a deterministic policy can give different results on same seed with different realtime_mode settings back in 1.2, so different scores are not surprising.
If i remember correctly, doing 1 or 2 steps forward with realtime_mode=True would often snap the agent back to the original position repeatedly, while realtime_mode=False worked fine. I made one of my agents stutter step to combat this :)

@MarcoMeter
Copy link
Contributor Author

I guess I'll implement a video recorder to observe the agent's performance during inference.
I'm using a stochastic policy.

@awjuliani awjuliani self-assigned this Apr 18, 2019
@awjuliani awjuliani added the bug Something isn't working label Apr 18, 2019
@awjuliani
Copy link
Contributor

Hi all,

Thanks for bringing this to our attention. There should be no differences between the two modes, but clearly that is not the case. We will look into this.

@kwea123
Copy link

kwea123 commented Apr 19, 2019

I noticed that sometimes when the communication between python and unity becomes slow (for example when the policy network runs slowly), it results in unexpected behavior, for example warping (suddenly appears in a totally different position).

@BerkayDemirel
Copy link

Anyone managed to find a solution / work around for this bug? Tried stutter stepping but it seems to make it even worse, showing walking animation but snapping back to the same place.

@nmichlo
Copy link

nmichlo commented Nov 16, 2019

I have just noticed that in realtime mode doors open instantly, while when realtime mode is not enabled doors take multiple steps to actually open, often up to a second of in-game time.

Additionally, as mentioned by others when realtime mode is not enabled, animations do not play properly.

EDIT: workaround at the moment is totally ignoring realtime mode and rather using a custom window to handle interaction/visualisation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants