In 3d Locomotion Training Brain Chooses a Single Path Despite Altering New Objectives
I gave the agent access to the camera angle shown above at 120x120.
the reward always equals
reward = .72f - distance - Zdistance;
zdistance being distance on z axis and distance being distance in total on all axises. The values sent to the reward are always scaled to less
rotateCorrect = (Mathf.Abs(Quaternion.identity.x - QuadRotation.x) * 10f) - (Mathf.Abs(Quaternion.identity.y - QuadRotation.y) * 10f) - (Mathf.Abs(Quaternion.identity.z - QuadRotation.z) * 10f) + .67f;
reward = reward + rotateCorrect + .1f;
the second part is just making the rotation more realistic on hit. This fixes a weird issue where it abused the physics by rotation 120 degrees to hit which was unrealistic for later applications.
Preferably it would learn to adapt to changing targets but despite my efforts to induce different actions, no result occurs. Any suggestions.
Hi @elanrosen training an agent based on image input is not trivial. I couldn't solve a much easier environment as discussed in issue #198 . However, the GridWorld example is capable of learning a reasonable behavior. I might get some time to spare for my older issue to make further investigations.
thanks @MarcoMeter I retried the training but with a curved reward system instead of the linear one I showed above. I got much better results with the agent being able to successfully hit both the far left and far right targets.
Thank you for the discussion. We are closing this issue due to inactivity. Feel free to reopen it if you’d like to continue to discussion though.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.