Skip to content
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

cannot visualize trajectory #8

Open
ZijianHan opened this issue Mar 9, 2020 · 11 comments
Open

cannot visualize trajectory #8

ZijianHan opened this issue Mar 9, 2020 · 11 comments

Comments

@ZijianHan
Copy link

Hi, when I run the viz python script I got the error:

File "argoverse-api/argoverse/utils/manhattan_search.py", line 90, in find_all_polygon_bboxes_overlapping_query_bbox
overlaps_left = (query_min_x <= bboxes_x2) & (bboxes_x2 <= query_max_x)
ValueError: operands could not be broadcast together with shapes (2,) (4952,)

Is this some error in argoverse api or am I using the wrong commnd by :
python eval_forecasting_helper.py --viz --gt trajectory_predict/const_vel_traj_predict.pkl --forecast trajectory_predict/lstm_social_traj.pkl --horizon 30 --obs_len 20 --features features_pre/forecasting_features_test.pkl

@ZSL98
Copy link

ZSL98 commented May 30, 2020

Hi, have you solved this error?

@zyz111
Copy link

zyz111 commented Aug 22, 2020

@ZijianHan
Hi, when I run the viz python script I got the same error.Could you please tell me your solution of solveing the problem. Thank you very much!

@zyz111
Copy link

zyz111 commented Aug 22, 2020

@ZijianHan @ZSL98
File "argoverse-api/argoverse/utils/manhattan_search.py", line 90, in find_all_polygon_bboxes_overlapping_query_bbox
overlaps_left = (query_min_x <= bboxes_x2) & (bboxes_x2 <= query_max_x)
ValueError: operands could not be broadcast together with shapes (2,) (4952,)

Hi, when I run the viz python script I got the same error.Could you please tell me your solution of solveing the problem, and I have the urgent need for the solution. Thank you very much!

@ZijianHan
Copy link
Author

ZijianHan commented Aug 22, 2020 via email

@jagjeet-singh
Copy link
Owner

Hi, I'm not able to reproduce this error.
Could you please explain what are you passing into the gt argument?

@zyz111
Copy link

zyz111 commented Aug 23, 2020

Hi, sorry I dont have a solution for it, as I haven't been working on this project for some time. Zijian Han zyz111 [email protected] 于2020年8月22日周六 下午12:19写道:

@ZijianHan https://github.com/ZijianHan @ZSL98 https://github.com/ZSL98 File "argoverse-api/argoverse/utils/manhattan_search.py", line 90, in find_all_polygon_bboxes_overlapping_query_bbox overlaps_left = (query_min_x <= bboxes_x2) & (bboxes_x2 <= query_max_x) ValueError: operands could not be broadcast together with shapes (2,) (4952,) Hi, when I run the viz python script I got the same error.Could you please tell me your solution of solveing the problem, and I have the urgent need for the solution. Thank you very much! — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#8 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG5HW2LABZ56CLPJZ5R7ICTSB6LUJANCNFSM4LEDRPNA .

Hi, sorry I dont have a solution for it, as I haven't been working on this project for some time. Zijian Han zyz111 [email protected] 于2020年8月22日周六 下午12:19写道:

@ZijianHan https://github.com/ZijianHan @ZSL98 https://github.com/ZSL98 File "argoverse-api/argoverse/utils/manhattan_search.py", line 90, in find_all_polygon_bboxes_overlapping_query_bbox overlaps_left = (query_min_x <= bboxes_x2) & (bboxes_x2 <= query_max_x) ValueError: operands could not be broadcast together with shapes (2,) (4952,) Hi, when I run the viz python script I got the same error.Could you please tell me your solution of solveing the problem, and I have the urgent need for the solution. Thank you very much! — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#8 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG5HW2LABZ56CLPJZ5R7ICTSB6LUJANCNFSM4LEDRPNA .

Hi, sorry I dont have a solution for it, as I haven't been working on this project for some time. Zijian Han zyz111 [email protected] 于2020年8月22日周六 下午12:19写道:

@ZijianHan https://github.com/ZijianHan @ZSL98 https://github.com/ZSL98 File "argoverse-api/argoverse/utils/manhattan_search.py", line 90, in find_all_polygon_bboxes_overlapping_query_bbox overlaps_left = (query_min_x <= bboxes_x2) & (bboxes_x2 <= query_max_x) ValueError: operands could not be broadcast together with shapes (2,) (4952,) Hi, when I run the viz python script I got the same error.Could you please tell me your solution of solveing the problem, and I have the urgent need for the solution. Thank you very much! — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#8 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG5HW2LABZ56CLPJZ5R7ICTSB6LUJANCNFSM4LEDRPNA .

Thank you!

@zyz111
Copy link

zyz111 commented Aug 23, 2020

@ZijianHan
Thank you !

@zyz111
Copy link

zyz111 commented Aug 23, 2020

@jagjeet-singh
hi, because the downloaded data set is a .cvs file and the gt data required .pkl file, and I don’t know how to convert between them. So, the generated lstm_social_traj.pkl file is regarded as a gt file.

python eval_forecasting_helper.py --viz --gt trajectory_predict/lstm_social_traj.pkl --forecast trajectory_predict/lstm_map_traj.pkl --horizon 30 --obs_len 20 --features features_pre/forecasting_features_test.pkl

Could you please tell me your method or the gt argument, thank you very much!

@abojja9
Copy link

abojja9 commented Aug 24, 2020

You can use something as below to generate the ground_truth pkl file from the generated features.

import pandas as pd
import os
import pickle

df = pd.read_pickle("./forecasting_features/forecasting_features_val.pkl")
save_path = "./ground_truth_data"
if not os.path.exists(save_path):
    os.makedirs(save_path)
    
val_gt = {}
for i in range(len(df)):
    seq_id = df.iloc[i]['SEQUENCE']
    curr_arr = df.iloc[i]['FEATURES'][20:][:, 3:5]
    val_gt[seq_id] = curr_arr

with open(save_path + '/ground_truth_val.pkl', 'wb') as f:
    pickle.dump(val_gt, f)

@TimHo0331
Copy link

@abojja9
Thank you!

@Sanjeeev-K
Copy link

@abojja9 Super helpful! thanks mate!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants