Closed n0xtua closed 1 year ago
Can someone please guide me on what could be the cause of this error?
Hi @n00b-c0dr,
The error from _get_dist
on line 570 in file SMARTS/smarts/env/gymnasium/wrappers/metric/costs.py
appears to be from an older code version. Please use the latest code version from the master branch, as the Metrics has since been updated.
To efficiently debug this, please provide a minimum working example to reproduce the error.
In general, this type of error is thrown when distance computation on the underlying map file fails. The Metrics has been tested to work on all training scenarios listed in Driving SMARTS 2023.1 & 2023.2 and Driving SMARTS 2023.3.
Please paste any error messages in text format, instead of image format, to help us easily search for the errors.
Thank you for your reply. Sorry for pasting the error screenshot, I'll keep in mind the correct format. We have been building our project using SMARTS v1.1.0 for a while now and it never gave that error until now. We prefer to stick to that version as it will require us to change our whole code if we change the SMARTS version. I will look into the points you mentioned and if required, I will reopen the issue for further help.
High Level Description
I am using SMARTS to train a PPO Model (using sb3), and I have created a script that uses the benchmark metrics to evaluate my model every few thousand time steps of training. I am using functions from smarts/env/gymnasium/wrappers/metric/ to evaluate my trained model. I am facing the same error on multiple scenarios in sumo/intersection/
Version
v 1.1.0
Operating System
Ubuntu 18.04.6
Problems
After a few epochs of alternating training and evaluation, I face an error while one the evaluation loops is running.