-
Notifications
You must be signed in to change notification settings - Fork 13
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
I encountered an issue in vis_std.py #32
Comments
Hi, thanks for reaching out! These 3 parameters are not referenced because they are not used anywhere, the main, important process is the pickle saving in this visualization function. Can you maybe please check the shape of the array and let me know what that is? |
Hi, I have encountered the same error. I would like to ask, in the final visualization of the mp4 or gif, do the other agents have predicted trajectories except ego vehicle which contains predicted trajectories? |
Yes, the other agents would also have predicted trajectories. HiVT is a multi-agent prediction model. |
When I run vis_std.py, "Line62:translated = hivt_trj[:,:,:,:2] - translation" error occurs, IndexError: too many indices for array: array is 3-dimensional, but 4 were indexed. I tried to output the matrix shape of hivt_trj, and it showed (6, 30, 4). I also see that several people are experiencing the same problem, like #14 . What can I do to solve this erroe? |
Can you maybe backtrack into hivt.py's visualization function, and see what is the input when doing model inference? |
I print the shape of all three variables y_hat/y_hat_agent/y_hat_agent_uncertainty: |
Uhmm I see, they indeed all have the correct shape. It seems that |
Ahhh nvm, I think I might know the reason. This visualization script might be created after the rebuttal, where the reviewers ask us to show trajectories of every agent. But the pickle saving here might only save the ego trajectories. There is a bit of version mismatch (sorry). Can you maybe try saving all the agent trajectories and try the viz script again? |
How can i save all the agent trajectories? |
So basically:
Please give it a try and let me know if I am wrong. Sorry it's been a while so my memory might not be exactly correct. |
I apologize for not getting back to you until now, I've changed some code based on your suggestions: Line164: y_hat_agent = y_hat[:, :, :, :2] Although the dimensions of hivt_trj are correct at this point, the mp4 file after visualization instead doesn't have any predicted trajectory, not even for ego vehicle. I don't know if my modification is in line with your suggestion, if not, please let me know. |
Uhmm, I am not quite sure about Line 207. But for debugging:
Hope this helps! |
I uploaded a sample here: https://drive.google.com/file/d/1mVkCBUQ37mHeWL3AShkj4ILioA2wBeJz/view?usp=drive_link that contains the results from HiVT + MapTR on the full val dataset. You can also find the results from mini val in the same folder. Can you maybe try comparing these against your results to see if the trajectories are under the same coordinate system? |
When I execute the following command, the program shows an error:
python vis_std.py --version trainval --dataroot ../nuscenes --split val --trj_pred HiVT --map MapTR
--trj_data ../trj_data/maptr/val/data --base_results /home/MapUncertaintyPrediction/HiVT_modified/maptr_bas_prediction_result.pkl
--unc_results /home/MapUncertaintyPrediction/HiVT_modified/maptr_unc_prediction_result.pkl
--boxes /home/MapUncertaintyPrediction/bbox.pkl --save_path /home/MapUncertaintyPrediction/results
Error:IndexError: too many indices for array: array is 3-dimensional, but 4 were indexed
I also referred to #14, but this problem is still not resolved. Could you provide some help? I want to know if these three parameters:
**global_y_hat_agent, pi_agent, seq_id**
are correct, and why they are not being referenced.The text was updated successfully, but these errors were encountered: