-
Notifications
You must be signed in to change notification settings - Fork 767
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
problems about action range #604
Comments
You are printing the same input action twice, the one which is unscaled, in [-1, 1]. The scaled action is fed to the vehicle directly. After it has been executed, you can access it with |
Does the action input in |
Besides, I write So the 'action' is unscaled, and 'self.vehicle.action' is scaled action. However, the |
Hi, everyone!
I set env config as follows and trained a model:
However, when i reload the model and print the action and steering value, they are all not in the correct value range. I confused.... i write
print("acc: {}, steering: {}".format(action[0], action[1]))
indef _reward()
in highway_env.py and writeprint
in following functionI get the following result:
original acc: 0.1795186996459961, steering: -0.02994769811630249
actual acc: 0.1795186996459961, steering: -0.02994769811630249
acc: 0.1795186996459961, steering: -0.02994769811630249
original acc: 0.20840740203857422, steering: -0.02228790521621704
actual acc: 0.20840740203857422, steering: -0.02228790521621704
acc: 0.20840740203857422, steering: -0.02228790521621704
original acc: 0.2234337329864502, steering: -0.014497756958007812
actual acc: 0.2234337329864502, steering: -0.014497756958007812
acc: 0.2234337329864502, steering: -0.014497756958007812
original acc: 0.2373422384262085, steering: -0.007743716239929199
actual acc: 0.2373422384262085, steering: -0.007743716239929199
acc: 0.2373422384262085, steering: -0.007743716239929199
original acc: 0.25095176696777344, steering: -0.0019524693489074707
actual acc: 0.25095176696777344, steering: -0.0019524693489074707
acc: 0.25095176696777344, steering: -0.0019524693489074707
original acc: 0.2658735513687134, steering: 0.0023392438888549805
actual acc: 0.2658735513687134, steering: 0.0023392438888549805
acc: 0.2658735513687134, steering: 0.0023392438888549805
original acc: 0.2798728942871094, steering: 0.004693746566772461
actual acc: 0.2798728942871094, steering: 0.004693746566772461
acc: 0.2798728942871094, steering: 0.004693746566772461
original acc: 0.290974497795105, steering: 0.005937099456787109
actual acc: 0.290974497795105, steering: 0.005937099456787109
acc: 0.290974497795105, steering: 0.005937099456787109
original acc: 0.3005625009536743, steering: 0.0067664384841918945
actual acc: 0.3005625009536743, steering: 0.0067664384841918945
acc: 0.3005625009536743, steering: 0.0067664384841918945
I AM SO CONFUSED .......
The text was updated successfully, but these errors were encountered: