Open arbaazkhan2 opened 3 years ago
Only agents listed in the tracks_to_predict field should be included in the submission proto. You will get an error if other agents are included in the predictions.
Thanks! Also follow up how do we actually save the proto? Is there a built in method to write the proto to disk?
The protocol buffer object has a method called SerializeToString() that you can use to convert it to a binary string. You can then write this string to disk using python file I/O or whichever file library you are using.
Hi, I had a question about generating a proto;
According to an older reply the pseudo code for generating a proto was given as :
' for scenario in scenarios: my_predictions = predict(scenario) scenario_predictions = motion_submission_pb2.ChallengeScenarioPredictions() scenario_predictions.scenario_id = scenario.scenario_id
` In my case my predictions for a given dataset file are of the shape : [num_batches x num_agents x 80 x 2]
My question was in the above code, what agents is the online checker looking for? Do we have to set num_agents to 128? or is it only those agents from the tracks_to_predict mask or is it agents from the samples_valid mask?