Open zurzeit opened 1 year ago
I think I found the reason!
Because the log I chose consists 4 scenes. And in the file "/.../nuplan-devkit/nuplan/database/nuplan_db/nuplan_scenario_queries.py
function get_scenarios_from_db()
, there is a condition in the query "valid_scenes" which finds the scenes which has at least 2 scenes before and 2 scenes after itself. As a result, the log with only 4 scenes fails to find any possible scene and return 0 scenario.
I choose another .db in trainval with more than 4 scenes and the result came out successfully.
What is the reason behind to have the "valid_scenes" to check that condition?
My problem
Hello, I am trying to simulate the simple planner run on one of the .db in the training data. I copied the code from the 'nuplan_framework' and modify a little bit.
It is alright for me to run the '.db file' in the mini folder but fail to run in the trainval folder. I traced the output message from the terminal and this is what I found.
2023-01-03 17:51:10,291 INFO {/.../nuplan-devkit/nuplan/planning/script/builders/simulation_builder.py:57} Extracting scenarios 0...DONE!
It seems that I didn't get any scenario in the process. I also traced the code in the function 'get_scenarios_from_db()' and found that there is nothing output from the function 'execute_many(query, args, log_file)'. Hence, I am wondering if I miss anything in my code. Thank you in advance!Data folder architecture
My modification
'scenario_builder
from 'nuplan_mini' to 'nuplan'scenario_filter.map_names
to us-ma-bostonscenario_filter.scenario_types
to nullMy code