Search Unity

imitation learning question/issue about speed, no-ops, and on-key-down

Discussion in 'ML-Agents' started by zergy, May 6, 2020.

  1. zergy

    zergy

    Joined:
    Jul 28, 2015
    Posts:
    1
    Hi,

    doing GAIL with ml-agents here.

    my understanding of imitation learning is you use a player brain and add a DemonstrationRecorder object to the agent. You run it in the IDE and it records a file.

    My issue is when I setup a player brain, the time passed are counted as no-op steps, and when I press "W" to move, it moves multiple times instead of 1 time (like a on-key-down). So my data will be very bad with too many no-ops and too many multiple "W"s instead of 1. I want to only record single moves with no no-ops.

    I have timescale set at 1, using mlagents v0.10.1 w/ TF 1.14